[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 16:07:13 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 16:07 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).
====================================================================== 

---------------------------------------------------------------------- 
 Corydon76 - 05-14-08 16:07  
---------------------------------------------------------------------- 
Actually, the AGI script could continue to do something for up to 100ms
long (the length of a standard Unix context switch).  usleep(1) is a trick
that we use that simply means "yield the processor and don't come back
immediately". 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-14-08 16:07  Corydon76      Note Added: 0086877                          
======================================================================




More information about the asterisk-bugs mailing list