[asterisk-bugs] [Asterisk 0016504]: Segfault in res_agi with no second paramter to EXEC

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Dec 22 18:48:44 CST 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16504 
====================================================================== 
Reported By:                bklang
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16504
Category:                   Resources/res_agi
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 236065 
Request Review:              
====================================================================== 
Date Submitted:             2009-12-22 18:48 CST
Last Modified:              2009-12-22 18:48 CST
====================================================================== 
Summary:                    Segfault in res_agi with no second paramter to EXEC
Description: 
This crash occurs reliably, usually on the second invocation of the AGI
script.  The AGI script is called via FastAGI to a network socket on
localhost.

This has been tested with the AGI EXEC command to reliably crash Asterisk.
 The problem occurs when a command is passed to EXEC with no arguments.  In
my case, the command was
"EXEC NoCDR " (including the trailing space)

If I supply any string for the command argument the segfault does not
occur. For example:
"EXEC NoCDR x"

gdb log output attached (bt;bt full; thread apply all bt full)
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-22 18:48 bklang         New Issue                                    
2009-12-22 18:48 bklang         Asterisk Version          => SVN             
2009-12-22 18:48 bklang         Regression                => No              
2009-12-22 18:48 bklang         SVN Branch (only for SVN checkouts, not tarball
releases) => 1.6.1           
2009-12-22 18:48 bklang         SVN Revision (number only!) => 236065          
======================================================================




More information about the asterisk-bugs mailing list