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

Abhay Gupta (JIRA) noreply at issues.asterisk.org
Fri Mar 22 09:43:47 CDT 2019


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

Abhay Gupta commented on ASTERISK-27756:
----------------------------------------

I tried to analyse the gdb again and strangely this is what i see that after_bridge_cb_failed function is called in bridge_after.c which sets node->failed to null and then enters stasis/control.c dial_bridge_after_callback and channel is NULL as far as i understand from the below backtrace and asterisk have not crashed from the time i also added the line as shown by Morten above 

#0  ast_channel_internal_bridge_channel (chan=chan at entry=0x0) at channel_internal_api.c:1212
#1  0x00000000004c6606 in ast_channel_get_bridge_channel (chan=chan at entry=0x0) at channel.c:10593
#2  0x00007ff6575b8736 in dial_bridge_after_cb (data=0x7ff4bc0082a8, chan=0x0) at stasis/control.c:936
#3  dial_bridge_after_cb_failed (reason=<optimized out>, data=0x7ff4bc0082a8) at stasis/control.c:951
#4  0x0000000000474c41 in after_bridge_cb_failed (node=0x7ff4bc009b80) at bridge_after.c:70
#5  after_bridge_cb_run_discard (reason=AST_BRIDGE_AFTER_CB_REASON_DESTROY, after_bridge=0x7ff4bc009a50) at bridge_after.c:99
#6  after_bridge_cb_destroy (data=0x7ff4bc009a50) at bridge_after.c:117
#7  0x00000000004f3dfc in ast_datastore_free (datastore=datastore at entry=0x7ff4bc009cd0) at datastore.c:68
#8  0x00000000004b653e in ast_channel_destructor (obj=0x7ff5280165c8) at channel.c:2255
#9  0x000000000045b253 in __ao2_ref (user_data=user_data at entry=0x7ff5280165c8, delta=delta at entry=-1, tag=tag at entry=0x6230a0 "", file=file at entry=0x62cf26 "channel.c", line=line at entry=2657, 
    func=func at entry=0x63c510 <__PRETTY_FUNCTION__.21555> "ast_hangup") at astobj2.c:576
#10 0x00000000004b7be9 in ast_hangup (chan=chan at entry=0x7ff5280165c8) at channel.c:2657


> 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