[asterisk-bugs] [JIRA] (ASTERISK-28377) Core dump hanging up unanswered channel

David Dhuyvetter (JIRA) noreply at issues.asterisk.org
Tue Apr 9 11:51:47 CDT 2019


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

David Dhuyvetter commented on ASTERISK-28377:
---------------------------------------------

Modified teardown_bridge to be:

def teardown_bridge(channel, outgoing, bridge):
    """Tear down bridge"""
    bridge.removeChannel(channel=channel.id)
    bridge.removeChannel(channel=outgoing.id)
    safe_hangup(outgoing)
    safe_hangup(channel)
    safe_bridge_destroy(bridge)

Same result: 

[2019-04-09 16:44:11.662283]     -- Channel SIP/199.180.210.71-00000007 left 'simple_bridge' stasis-bridge <41a77cc6-88fa-42ee-b49e-fabdfe49b4b4>
[2019-04-09 16:44:11.785439]     -- Channel SIP/199.68.168.27-00000006 left 'simple_bridge' stasis-bridge <41a77cc6-88fa-42ee-b49e-fabdfe49b4b4>
[2019-04-09 16:44:11.785595] WARNING[390][C-00000004]: bridge.c:1853 bridge_impart_internal: Channel SIP/199.68.168.27-00000006 has a PBX thread and cannot be imparted into bridge eee9859b-892e-492d-a272-cf213669e9b4
FRACK!, Failed assertion bad magic number 0x0 for object 0x8fbe1a (0) at line 1029 in dial_bridge_after_cb of stasis/control.c
[2019-04-09 16:44:16.330194] ERROR[390][C-00000004]: stasis/control.c:1029 dial_bridge_after_cb: FRACK!, Failed assertion bad magic number 0x0 for object 0x8fbe1a (0)
[2019-04-09 16:44:16.331352] ERROR[390][C-00000004]:   Got 17 backtrace records
# 0: /usr/sbin/asterisk(__ast_assert_failed+0x84) [0x5bc26c]
# 1: /usr/sbin/asterisk() [0x45ebb8]
# 2: /usr/sbin/asterisk(__ao2_lock+0x64) [0x45ec1e]
# 3: /usr/lib64/asterisk/modules/res_stasis.so(+0x17868) [0x7fd938019868]
# 4: /usr/lib64/asterisk/modules/res_stasis.so(+0x17a36) [0x7fd938019a36]
# 5: /usr/sbin/asterisk() [0x47abe0]
# 6: /usr/sbin/asterisk() [0x47acbc]
# 7: /usr/sbin/asterisk() [0x47ad03]
# 8: /usr/sbin/asterisk(ast_datastore_free+0x4a) [0x4d374c]
# 9: /usr/sbin/asterisk() [0x49b670]
#10: /usr/sbin/asterisk(__ao2_ref+0x5da) [0x45fa02]
#11: /usr/sbin/asterisk(ast_hangup+0x47b) [0x49cccd]
#12: /usr/sbin/asterisk() [0x52c6d4]
#13: /usr/sbin/asterisk() [0x52ca3f]
#14: /usr/sbin/asterisk() [0x5b9632]
#15: /lib64/libpthread.so.0(+0x7dd5) [0x7fd95c3eedd5]
#16: /lib64/libc.so.6(clone+0x6d) [0x7fd95b790ead]

Segmentation fault



> Core dump hanging up unanswered channel
> ---------------------------------------
>
>                 Key: ASTERISK-28377
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28377
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Sorcery
>    Affects Versions: 16.2.1, 16.3.0
>         Environment: x86_64 x86_64 x86_64 GNU/Linux (Centos 7.6.1810) running in a docker container on same OS
>            Reporter: David Dhuyvetter
>            Assignee: David Dhuyvetter
>         Attachments: bridge.py, console_28377.txt, core.517.tar.gz, debug_log_28377.txt, extensions.conf
>
>
> Using ARI
> 1) accept inbound channel
> 2) create outbound channel
> 3) bridge inbound channel to outbound
> 4) dial outbound and let dial timeout expire
> 5) hangup outbound channel and destroy bridge
> 5) hangup inbound channel
> This results in either messages like:
> [2019-04-09 14:58:14.291878] WARNING[401][C-00000001]: bridge.c:1851 bridge_impart_internal: Channel SIP/199.68.168.27-00000000 has a PBX thread and cannot be imparted into bridge 65da81c3-613f-4ad4-a094-98f6e4e6e2c9
> FRACK!, Failed assertion user_data is NULL (0) at line 942 in dial_bridge_after_cb of stasis/control.c
> [2019-04-09 14:58:14.307946] ERROR[401][C-00000001]: stasis/control.c:942 dial_bridge_after_cb: FRACK!, Failed assertion user_data is NULL (0)
> [2019-04-09 14:58:14.308661] ERROR[401][C-00000001]:   Got 11 backtrace records
> # 0: /usr/sbin/asterisk(__ao2_lock+0x1ed) [0x45d59d]
> # 1: /usr/lib64/asterisk/modules/res_stasis.so(+0x151f0) [0x7f8e86f0d1f0]
> # 2: /usr/sbin/asterisk() [0x477251]
> # 3: /usr/sbin/asterisk(ast_datastore_free+0x1c) [0x4ca98c]
> # 4: /usr/sbin/asterisk() [0x499e39]
> # 5: /usr/sbin/asterisk(__ao2_ref+0x25c) [0x45de5c]
> # 6: /usr/sbin/asterisk() [0x52046e]
> # 7: /usr/sbin/asterisk() [0x5210db]
> # 8: /usr/sbin/asterisk() [0x59a149]
> # 9: /lib64/libpthread.so.0(+0x7dd5) [0x7f8eaf191dd5]
> #10: /lib64/libc.so.6(clone+0x6d) [0x7f8eae533ead]
> or Segmentation Fault, or both



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



More information about the asterisk-bugs mailing list