[asterisk-bugs] [JIRA] (ASTERISK-23220) STACK_PEEK function with no arguments causes crash/core dump

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Fri Jan 31 16:45:03 CST 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-23220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=214730#comment-214730 ] 

Richard Mudgett commented on ASTERISK-23220:
--------------------------------------------

@Corey - Patch looks good to me.  Ship it.
                
> STACK_PEEK function with no arguments causes crash/core dump
> ------------------------------------------------------------
>
>                 Key: ASTERISK-23220
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23220
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_stack
>    Affects Versions: 11.4.0
>         Environment: Centos 6.4, amd64
>            Reporter: James Sharp
>         Attachments: ASTERISK-23220.patch
>
>
> When setting up to use STACK_PEEK, I inadvertently left the arguments out of the dialplan.  When the dialplan reached this point in execution, Asterisk crashed with a core.  I realize that it was my error in the configuration, but I feel the system should flag an error rather than crash in a blaze of core dumps.  If this is a true bug, I can rebuild the system with DONT_OPTIMIZE to get a full backtrack.
> The offending dialplan entry is this:
> {noformat}
> exten => 9998,1,Set(FOO=${STACK_PEEK()})
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list