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

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jul 14 13:37:12 CDT 2010


The following issue has been set as RELATED TO issue 0017636. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16504 
====================================================================== 
Reported By:                bklang
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   16504
Category:                   Resources/res_agi
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-12-22 18:48 CST
Last Modified:              2010-07-14 13:37 CDT
====================================================================== 
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)
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0017636 Manager GetVar on unset variable causes...
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-14 13:37 lmadsen        Relationship added       related to 0017636  
======================================================================




More information about the asterisk-bugs mailing list