[asterisk-bugs] [JIRA] (ASTERISK-23328) Asterisk crash in ast_cdr_setapp() at cdr.c

David Hajek (JIRA) noreply at issues.asterisk.org
Mon Feb 24 10:34:04 CST 2014


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

David Hajek commented on ASTERISK-23328:
----------------------------------------

We do some investigation as well. Our dialplan was this:

;; This context is called from Queue() 
;; Our member interface is similar to this: Local/10001 at dakqueue/n
[dakqueue]
exten => _X.,1,DoSomething()
exten => _X.,n,Dial(...,M(answer))
exten => h,1,DoCleanup()

[macro-answer]
exten => s,1,DoSometing()
exten => s,2,Macro(somethingelse)
exten => s,3,Gosub(cleanup)

We rewrote macro-answer to remove Macro(somethingelse) and Gosub(cleanup). We think that calling Gosub() from Macro() can be a bad idea. Can you confirm? Can you imagine this can be the issue?

We will keep running this configuration for couple of days and I will get back with results. Next step can be to completly get rid of Macro() and use Gosub() only.




                
> Asterisk crash in ast_cdr_setapp() at cdr.c
> -------------------------------------------
>
>                 Key: ASTERISK-23328
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23328
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: CDR/cdr_adaptive_odbc, CDR/General
>    Affects Versions: 1.8.25.0
>         Environment: OS: Linux CentOS 5.5
> Kernel: 2.6.18-348.16.1.el5PAE
> Hardware: Dell PowerEdge R210 II
>            Reporter: David Hajek
>            Assignee: Matt Jordan
>            Severity: Critical
>         Attachments: backtrace.txt, callfile.txt
>
>
> We are experiencing random asterisk crash (segfaults) on a busy server, which is doing about 50k calls a day. We see asterisk crash every other day.
> This server is running a callcenter and in addition to regular in/out calls this server is processing callfiles (about 3 per second). Some AGI dialplan scripts are processed using FastAGI over tcp sockets.
> We see that all crashes are in ast_cdr_setapp() - we tried both 1.8.24 and 1.8.25.
> For CDR we use cdr_adaptive_odbc with MySQL backend.

--
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