[asterisk-bugs] [JIRA] (ASTERISK-27756) bridge: Failure to impart a channel results in bad data causing crash

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Tue Dec 25 21:19:47 CST 2018


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

Richard Mudgett edited comment on ASTERISK-27756 at 12/25/18 9:19 PM:
----------------------------------------------------------------------

Any progress on this issue?
I'm having the same problem but I'm running asterisk 14.7.2 and running it with kubuntu 18.10 and from my logs it seems that the problem is also with Channel/SIP and not just PJSIP. After that I get segmentation fault and asterisk crashed. These are the logs I see:
{noformat}
asterisk  > Dec 24 23:17:44 xxx asterisk[14953]: WARNING[15119][C-00000001]: bridge.c:1819 in bridge_impart_internal: Channel SIP/yyy-00000000 has a PBX thread and cannot be imparted into bridge 2cd90e8e-5f91-4d6f-85c1-57cc
asterisk  > 177ca1ea
asterisk  > Dec 24 23:17:44 xxx asterisk[14953]: ERROR[15119][C-00000001]: stasis/control.c:898 in dial_bridge_after_cb: FRACK!, Failed assertion bad magic number 0x0 for object 0x7f7b18000fb0 (0)
asterisk  > Dec 24 23:17:44 xxx asterisk[14953]: ERROR[15119][C-00000001]: stasis/control.c:900 in dial_bridge_after_cb: FRACK!, Failed assertion bad magic number 0x0 for object 0x7f7b18000fb0 (0)
asterisk  > Dec 24 23:18:10 xxx asterisk[14953]: WARNING[15160][C-00000002]: bridge.c:1819 in bridge_impart_internal: Channel SIP/yyy-00000001 has a PBX thread and cannot be imparted into bridge 2cd90e8e-5f91-4d6f-85c1-57cc177ca1ea
asterisk  > Dec 24 23:18:11 xxx asterisk[14953]: WARNING[15160][C-00000002]: bridge.c:1819 in bridge_impart_internal: Channel SIP/yyy-00000001 has a PBX thread and cannot be imparted into bridge 2cd90e8e-5f91-4d6f-85c1-57cc177ca1ea
asterisk  > Dec 24 23:18:11 xxx asterisk[13969]: /usr/sbin/safe_asterisk: line 171: 14953 Segmentation fault      (core dumped) nice -n $PRIORITY "${ASTSBINDIR}/asterisk" -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
{noformat}

I'm running this dial plan:
{noformat}
exten => _.,1,Noop(**** Activating call for CLID: ${CALLERID(num)} ****)
 same =>    n,Stasis(myStasisApp)
 same =>    n,Hangup()
{noformat}



was (Author: naamag):
Any progress on this issue?
I'm having the same problem but I'm running asterisk 14.7.2 and running it with kubuntu 18.10 and from my logs it seems that the problem is also with Channel/SIP and not just PJSIP. After that I get segmentation fault and asterisk crashed. These are the logs I see:

asterisk  > Dec 24 23:17:44 xxx asterisk[14953]: WARNING[15119][C-00000001]: bridge.c:1819 in bridge_impart_internal: Channel SIP/yyy-00000000 has a PBX thread and cannot be imparted into bridge 2cd90e8e-5f91-4d6f-85c1-57cc
asterisk  > 177ca1ea
asterisk  > Dec 24 23:17:44 xxx asterisk[14953]: ERROR[15119][C-00000001]: stasis/control.c:898 in dial_bridge_after_cb: FRACK!, Failed assertion bad magic number 0x0 for object 0x7f7b18000fb0 (0)
asterisk  > Dec 24 23:17:44 xxx asterisk[14953]: ERROR[15119][C-00000001]: stasis/control.c:900 in dial_bridge_after_cb: FRACK!, Failed assertion bad magic number 0x0 for object 0x7f7b18000fb0 (0)
asterisk  > Dec 24 23:18:10 xxx asterisk[14953]: WARNING[15160][C-00000002]: bridge.c:1819 in bridge_impart_internal: Channel SIP/yyy-00000001 has a PBX thread and cannot be imparted into bridge 2cd90e8e-5f91-4d6f-85c1-57cc177ca1ea
asterisk  > Dec 24 23:18:11 xxx asterisk[14953]: WARNING[15160][C-00000002]: bridge.c:1819 in bridge_impart_internal: Channel SIP/yyy-00000001 has a PBX thread and cannot be imparted into bridge 2cd90e8e-5f91-4d6f-85c1-57cc177ca1ea
asterisk  > Dec 24 23:18:11 xxx asterisk[13969]: /usr/sbin/safe_asterisk: line 171: 14953 Segmentation fault      (core dumped) nice -n $PRIORITY "${ASTSBINDIR}/asterisk" -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}

I'm running this dial plan:
exten => _.,1,Noop(**** Activating call for CLID: ${CALLERID(num)} ****)
 same =>    n,Stasis(myStasisApp)
 same =>    n,Hangup()



> bridge: Failure to impart a channel results in bad data causing crash
> ---------------------------------------------------------------------
>
>                 Key: ASTERISK-27756
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27756
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_stasis
>    Affects Versions: 15.2.0, 15.3.0
>         Environment: Ubuntu 16.04 with asterisk 15.2.0 using ARI for bridge. 
>            Reporter: Abhay Gupta
>            Assignee: Unassigned
>            Severity: Minor
>              Labels: pjsip
>         Attachments: ari.txt, btfull.txt, btthread.txt, bt.txt, full, Full_main_ERROR_Log
>
>
> The is a incoming call on IAX channel and at times we get this message on trying to bridge this channel 
> [Mar 21 12:43:31] WARNING[1685][C-000066a0] bridge.c: Channel IAX2/2_1-10099 has a PBX thread and cannot be imparted into bridge 3cdd7200-ed20-403d-a6d9-53c2db73ed2c
>  at this time asterisk crashes with the following message . 
> [Mar 21 12:43:37] ERROR[1685][C-000066a0] stasis/control.c: FRACK!, Failed assertion bad magic number 0x0 for object 0x8f2ed2 (0)
> The ari log at the time of error is attached where the same IAX channel comes is stasis bridge command is fired and then asterisk crashes .



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



More information about the asterisk-bugs mailing list