[asterisk-bugs] [Asterisk 0012648]: [patch] Asterisk leaves zombie agi processes when running under linux 2.6

noreply at bugs.digium.com noreply at bugs.digium.com
Wed May 14 15:05:32 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12648 
====================================================================== 
Reported By:                gkloepfer
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   12648
Category:                   Resources/res_agi
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.19 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 115937 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             05-14-2008 12:06 CDT
Last Modified:              05-14-2008 15:05 CDT
====================================================================== 
Summary:                    [patch] Asterisk leaves zombie agi processes when
running under linux 2.6
Description: 
[Note: re-open, duplicate of Problem ID 0005238]

I have actually found a way to duplicate this bug.  If a long-running AGI
script is executing by one user and another user hangs-up on an AGI script,
a zombie will be left running.  This can be duplicated by using the
following dialplan code:

exten =>_X.,1,Answer
exten =>_X.,n,AGI(time-request.agi)
exten =>_X.,n,Hangup

(time-request.agi is an AGI script that says the time every 10 seconds
until the user hangs-up or presses a button on the keypad ... any
long-running AGI script like this should work).
====================================================================== 

---------------------------------------------------------------------- 
 gkloepfer - 05-14-08 15:05  
---------------------------------------------------------------------- 
That seems to work, and I definitely think it's a better fix than mine
since it actually addresses (rather than hides) the problem.

The only downside to this I can think of is if the AGI script traps SIGHUP
and tries to do something more than 1ms long before exiting.  I can't think
of too many AGI scripts that would do this, and really we wouldn't want
this kind of thing holding open an Asterisk thread anyway... 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-14-08 15:05  gkloepfer      Note Added: 0086868                          
======================================================================




More information about the asterisk-bugs mailing list