[asterisk-bugs] [JIRA] (ASTERISK-26017) dial: Crash when executing pre-dial handler

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Thu Jun 30 11:39:56 CDT 2016


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

Richard Mudgett commented on ASTERISK-26017:
--------------------------------------------

Your backtrace appears to contain a memory corruption. We need one or both of the following items to continue investigation of the issue:
1. Valgrind output. See https://wiki.asterisk.org/wiki/display/AST/Valgrind for instructions on how to use Valgrind with Asterisk.
2. MALLOC_DEBUG output. See https://wiki.asterisk.org/wiki/display/AST/MALLOC_DEBUG+Compiler+Flag for instructions on how to use the MALLOC_DEBUG option.

Note that MALLOC_DEBUG and Valgrind are mutually exclusive options. Valgrind output is preferable, but will be more system resource intensive and may be difficult to get on a production system. In such a case, you may have better luck getting the necessary output from MALLOC_DEBUG.

The crash happened while we were getting a channel snapshot.  Since it happened inside a memory allocation, memory corruption is almost a certainty.

> dial: Crash when executing pre-dial handler
> -------------------------------------------
>
>                 Key: ASTERISK-26017
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26017
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 13.9.1
>            Reporter: Mateusz
>            Assignee: Unassigned
>              Labels: crash
>         Attachments: 2016-06-29backtrace.txt, backtrace-27-may.txt, backtrace.txt, newest_backtrace.txt
>
>
> Hi, 
> in our company we are using an pre-dial macro and in the very last step in this macro ( Return() ) we occasionally get an segmentation fault. 
> We have checked three version of Asterisk. 
> Out handler:
> {code}
>  exten => outbound,1,NoOp()
> same => n,Set(CHANNEL(userfield)=${CHANNEL(userfield)}|calls_id:${ARG1})
> same => n,CELGenUserEvent(DIALED_AT)
> same => n,Return()
> {code}
> I have attached an backtrace. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list