[asterisk-bugs] [JIRA] (ASTERISK-23328) Asterisk crash in ast_cdr_setapp()

Matt Jordan (JIRA) noreply at issues.asterisk.org
Wed Feb 19 08:14:03 CST 2014


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

Matt Jordan commented on ASTERISK-23328:
----------------------------------------

If you still have the {{core}} file, using gdb, can you print out what chan points to in frame 1? The commands should be:

{noformat}
# frame 1
# p *chan
{noformat}

Somehow, when the channel is returning from the AGI it no longer has a valid CDR object on it. I can see that occurring for two reasons:
# The channel has already been destroyed, which would indicate a ref counting problem somewhere. If that happens to be the case, it will be important to understand the sequence of events that led up to the crash. A DEBUG log may be necessary, or at least steps that reproduce the problem.
# A masquerade occurred and the channel that replaced the channel in the AGI never had a CDR object allocated on it - or something equally strange.

Dumping what chan pointed to will help determine what occurred.
                
> Asterisk crash in ast_cdr_setapp()
> ----------------------------------
>
>                 Key: ASTERISK-23328
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23328
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    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
>            Severity: Critical
>         Attachments: backtrace.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