[asterisk-bugs] [JIRA] (ASTERISK-25404) segfault/crash in chan_pjsip_hangup ... at chan_pjsip.c

Chet Stevens (JIRA) noreply at issues.asterisk.org
Fri Sep 25 07:32:33 CDT 2015


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

Chet Stevens commented on ASTERISK-25404:
-----------------------------------------

Ok, I have the system running for backtraces with debug now. You might have a better idea but it looks like from the debug log that the last thing that occurred before the segfault was a call inbound via SIP trunk, rang a group of phones, that went to voicemail:

{noformat}
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] pbx.c: Executing [7027995472 at inbound:1] NoOp("PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000", "") in new stack
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] pbx.c: Executing [7027995472 at inbound:2] Set("PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000", "CDR(userfield)=7027995472") in new stack
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] pbx.c: Executing [7027995472 at inbound:3] Goto("PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000", "inbound_extensions,7027995472,1") in new stack
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] pbx.c: Goto (inbound_extensions,7027995472,1)
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] pbx.c: Executing [7027995472 at inbound_extensions:1] NoOp("PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000", "") in new stack
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] pbx.c: Executing [7027995472 at inbound_extensions:2] Set("PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000", "CALLERID(name)=702-799-5472") in new stack
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] pbx.c: Executing [7027995472 at inbound_extensions:3] Dial("PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000", "PJSIP/5749_line&PJSIP/5750_line&PJSIP/5751_line&PJSIP/5752_line&PJSIP/5753_line&PJSIP/5755_line&PJSIP/5756_line&PJSIP/5761_line&PJSIP/5775_line&PJSIP/5777_line&PJSIP/5782_line&PJSIP/5785_line,20,i") in new stack
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: Called PJSIP/5749_line
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: Called PJSIP/5750_line
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: Called PJSIP/5751_line
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: Called PJSIP/5753_line
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: Called PJSIP/5755_line
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: Called PJSIP/5756_line
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: Called PJSIP/5761_line
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: Called PJSIP/5775_line
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: Called PJSIP/5777_line
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: Called PJSIP/5782_line
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: Called PJSIP/5785_line
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5751_line-00000003 connected line has changed. Saving it until answer for PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5756_line-00000006 connected line has changed. Saving it until answer for PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5753_line-00000004 connected line has changed. Saving it until answer for PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5750_line-00000002 connected line has changed. Saving it until answer for PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5749_line-00000001 connected line has changed. Saving it until answer for PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5775_line-00000008 connected line has changed. Saving it until answer for PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5755_line-00000005 connected line has changed. Saving it until answer for PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5761_line-00000007 connected line has changed. Saving it until answer for PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5782_line-0000000a connected line has changed. Saving it until answer for PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5777_line-00000009 connected line has changed. Saving it until answer for PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5785_line-0000000b connected line has changed. Saving it until answer for PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5753_line-00000004 is ringing
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5756_line-00000006 is ringing
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5761_line-00000007 is ringing
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5749_line-00000001 is ringing
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5750_line-00000002 is ringing
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5777_line-00000009 is ringing
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5751_line-00000003 is ringing
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5782_line-0000000a is ringing
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5755_line-00000005 is ringing
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5785_line-0000000b is ringing
[Sep 18 19:15:11] VERBOSE[17799][C-00000001] app_dial.c: PJSIP/5775_line-00000008 is ringing
[Sep 18 19:15:31] VERBOSE[17799][C-00000001] app_dial.c: Nobody picked up in 20000 ms
[Sep 18 19:15:31] VERBOSE[17799][C-00000001] pbx.c: Executing [7027995472 at inbound_extensions:4] VoiceMail("PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000", "5750 at default,u") in new stack
[Sep 18 19:15:31] VERBOSE[17799][C-00000001] res_rtp_asterisk.c: 0x7f01342579a0 -- Probation passed - setting RTP source address to 10.250.82.22:10010
[Sep 18 19:15:31] VERBOSE[17799][C-00000001] file.c: <PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000> Playing '/var/spool/asterisk/voicemail/default/5750/unavail.slin' (language 'en')
[Sep 18 19:15:31] VERBOSE[18107][C-00000001] pbx.c: Executing [7027995472 at inbound_extensions:4] VoiceMail("PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000", "5750 at default,u") in new stack
[Sep 18 19:15:31] VERBOSE[18107][C-00000001] file.c: <PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000> Playing '/var/spool/asterisk/voicemail/default/5750/unavail.slin' (language 'en')
[Sep 18 19:15:34] VERBOSE[17799][C-00000001] res_rtp_asterisk.c: 0x7f01342579a0 -- Probation passed - setting RTP source address to 10.250.82.22:10010
[Sep 18 19:15:36] VERBOSE[17799][C-00000001] pbx.c: Spawn extension (inbound_extensions, 7027995472, 4) exited non-zero on 'PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000'
[Sep 18 19:15:36] VERBOSE[18107][C-00000001] pbx.c: Spawn extension (inbound_extensions, 7027995472, 4) exited non-zero on 'PJSIP/0110-Instr-Dsgn-Prof-Lrng-Ctr-00000000'
{noformat}

Could it be something with how the caller disconnected while in voicemail I wonder?

> segfault/crash in chan_pjsip_hangup ... at chan_pjsip.c
> -------------------------------------------------------
>
>                 Key: ASTERISK-25404
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25404
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip
>    Affects Versions: 13.1.0
>         Environment: certified/13.1-cert3-rc1 (snapshot asterisk-20702e0 dated 17 Sep 2015. Also experienced with snapshot asterisk-5b06b6f dated 7 Sep 2015).
> PJSIP with PJProject 2.4.5
> DAHDI 2.10.2
> libpri version: 1.4.15
> Digium Phone Module for Asterisk Version 13.0_2.2.0
> Digium Phone firmware 2_0_1_0_74452
> Ubuntu 14.04.2 LTS (GNU/Linux 3.16.0-43-generic x86_64)
> ProLiant DL380 Gen9. 16 GB memory 
> Wildcard AEX2400: wctdm24xxp+ 
>            Reporter: Chet Stevens
>            Assignee: Chet Stevens
>            Severity: Critical
>         Attachments: backtrace.txt, debug.zip
>
>
> We are experiencing frequent crashes of Asterisk (6 times on 9/18/15). kern.log shows segfault with chan_pjsip.so:
> {noformat}
> Sep 18 19:15:36 0651-Facilities-Audit-Campus kernel: [6164166.327465] asterisk[18107]: segfault at 0 ip 00007f00a7f3e7f4 sp 00007effaf26eb00 error 4 in chan_pjsip.so[7f00a7f37000+f000]
> {noformat}
> A backtrace and debug for the minute of the crash with previous 100k lines will be attached.



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



More information about the asterisk-bugs mailing list