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

David Hajek (JIRA) noreply at issues.asterisk.org
Thu Feb 27 09:28:03 CST 2014


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

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

Yes, AGI (where it crashed) was called from [macro-answer] context. Actually there are two AGI scripts called.

;; This is how it looks when it crashes
[macro-answer]
exten => s,1,AGI(script1)
exten => s,n,AGI(cc/dialer_set_user.php) ;; It always crashed here
exten => s,n,Macro(somework)
exten => s,n,Gosub(somework)

;; This is after rewriten
[macro-answer]
exten => s,1,AGI(script1)
exten => s,n,AGI(cc/dialer_set_user.php)
exten => s,n,SomeDialPlanWorkHere   ; No Macro
exten => s,n,SomeOtherDialPlanWorkHere ; No Gosub

Its a bit early to do some final resolutions, but its running for 6 days without crash. 

Regarding calling Gosub from Macro I'm refering to http://www.voip-info.org/wiki/view/Asterisk+cmd+Macro

"You really shouldn't be calling a Gosub routine from Macro. We've already had to deal with some really odd interactions between the two. If you're going to make the jump to Gosub, go completely over and only use Gosub. Don't use Macro in conjunction with Gosub (Tilghman, May 2010)." 






                
> 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: David Hajek
>            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