[asterisk-bugs] [JIRA] (ASTERISK-29846) channels: bad ao2 ref causes crash

N A (JIRA) noreply at issues.asterisk.org
Sat Jan 22 14:32:07 CST 2022


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

N A commented on ASTERISK-29846:
--------------------------------

Here are some additional backtraces from just restarting Asterisk (as part of a normal patch -> install -> restart). The signs are all definitely pointing towards PJSIP as causing the issue here:

Core debug is still 5.
[2022-01-22 20:28:08] ERROR[28680]:   Got 11 backtrace records
# 0: [0x563ab7a0ca2c] asterisk utils.c:2727 __ast_assert_failed()
# 1: [0x563ab7883ec8] asterisk astobj2.c:212 log_bad_ao2()
# 2: [0x563ab788484f] asterisk astobj2.c:501 __ao2_ref()
# 3: [0x563ab7886f33] asterisk astobj2_container.c:494 ao2_iterator_init()
# 4: [0x563ab78ec063] asterisk cli.c:1152 handle_chanlist()
# 5: [0x563ab78f26ff] asterisk cli.c:3020 ast_cli_command_full()
# 6: [0x563ab78f2894] asterisk cli.c:3048 ast_cli_command_multiple_full()
# 7: [0x563ab787bf21] asterisk asterisk.c:1442 netconsole()
# 8: [0x563ab7a09cb7] asterisk utils.c:1572 dummy_start()
# 9: [0x7fa8f2328fa3] libpthread.so.0 pthread_create.c:487 start_thread()
#10: [0x7fa8f1dbc4cf] libc.so.6 clone.S:97 clone()

[2022-01-22 20:28:08] ERROR[28680]: cli.c:1153 handle_chanlist: FRACK!, Failed assertion user_data is NULL (0)


[2022-01-22 20:28:09]   == Manager registered action PJSIPShowAuths
[2022-01-22 20:28:09] ERROR[28680]:   Got 10 backtrace records
# 0: [0x563ab7a0ca2c] asterisk utils.c:2727 __ast_assert_failed()
# 1: [0x563ab7883ec8] asterisk astobj2.c:212 log_bad_ao2()
# 2: [0x563ab78871cb] asterisk astobj2_container.c:563 __ao2_iterator_next()
# 3: [0x563ab78ec661] asterisk cli.c:1153 handle_chanlist()
# 4: [0x563ab78f26ff] asterisk cli.c:3020 ast_cli_command_full()
# 5: [0x563ab78f2894] asterisk cli.c:3048 ast_cli_command_multiple_full()
# 6: [0x563ab787bf21] asterisk asterisk.c:1442 netconsole()
# 7: [0x563ab7a09cb7] asterisk utils.c:1572 dummy_start()
# 8: [0x7fa8f2328fa3] libpthread.so.0 pthread_create.c:487 start_thread()
# 9: [0x7fa8f1dbc4cf] libc.so.6 clone.S:97 clone()

[2022-01-22 20:28:09] ERROR[28680]: astobj2_container.c:499 ao2_iterator_restart: FRACK!, Failed assertion user_data is NULL (0)
[2022-01-22 20:28:09]   == Manager registered action PJSIPShowAors

[2022-01-22 20:28:09]  Loading res_pjsip_endpoint_identifier_ip.so.
[2022-01-22 20:28:09] ERROR[28680]:   Got 11 backtrace records
# 0: [0x563ab7a0ca2c] asterisk utils.c:2727 __ast_assert_failed()
# 1: [0x563ab7883ec8] asterisk astobj2.c:212 log_bad_ao2()
# 2: [0x563ab7886fad] asterisk astobj2_container.c:499 ao2_iterator_restart()
# 3: [0x563ab78870df] asterisk astobj2_container.c:540 ao2_iterator_destroy()
# 4: [0x563ab78ec67f] asterisk cli.c:1204 handle_chanlist()
# 5: [0x563ab78f26ff] asterisk cli.c:3020 ast_cli_command_full()
# 6: [0x563ab78f2894] asterisk cli.c:3048 ast_cli_command_multiple_full()
# 7: [0x563ab787bf21] asterisk asterisk.c:1442 netconsole()
# 8: [0x563ab7a09cb7] asterisk utils.c:1572 dummy_start()
# 9: [0x7fa8f2328fa3] libpthread.so.0 pthread_create.c:487 start_thread()
#10: [0x7fa8f1dbc4cf] libc.so.6 clone.S:97 clone()

[2022-01-22 20:28:09] ERROR[28680]: astobj2_container.c:540 ao2_iterator_destroy: FRACK!, Failed assertion user_data is NULL (0)
[2022-01-22 20:28:09] ERROR[28680]:   Got 11 backtrace records
# 0: [0x563ab7a0ca2c] asterisk utils.c:2727 __ast_assert_failed()
# 1: [0x563ab7883ec8] asterisk astobj2.c:212 log_bad_ao2()
# 2: [0x563ab788484f] asterisk astobj2.c:501 __ao2_ref()
# 3: [0x563ab788710e] asterisk astobj2_container.c:541 ao2_iterator_destroy()
# 4: [0x563ab78ec67f] asterisk cli.c:1204 handle_chanlist()
# 5: [0x563ab78f26ff] asterisk cli.c:3020 ast_cli_command_full()
# 6: [0x563ab78f2894] asterisk cli.c:3048 ast_cli_command_multiple_full()
# 7: [0x563ab787bf21] asterisk asterisk.c:1442 netconsole()
# 8: [0x563ab7a09cb7] asterisk utils.c:1572 dummy_start()
# 9: [0x7fa8f2328fa3] libpthread.so.0 pthread_create.c:487 start_thread()
#10: [0x7fa8f1dbc4cf] libc.so.6 clone.S:97 clone()

[2022-01-22 20:28:09] ERROR[28680]: cli.c:1216 handle_chanlist: FRACK!, Failed assertion user_data is NULL (0)
[2022-01-22 20:28:09]   == res_pjsip_endpoint_identifier_ip.so => (PJSIP IP endpoint identifier)


[2022-01-22 20:28:09] ERROR[28680]:   Got 10 backtrace records
# 0: [0x563ab7a0ca2c] asterisk utils.c:2727 __ast_assert_failed()
# 1: [0x563ab7883ec8] asterisk astobj2.c:212 log_bad_ao2()
# 2: [0x563ab788484f] asterisk astobj2.c:501 __ao2_ref()
# 3: [0x563ab78ec7fa] asterisk cli.c:1218 handle_chanlist()
# 4: [0x563ab78f26ff] asterisk cli.c:3020 ast_cli_command_full()
# 5: [0x563ab78f2894] asterisk cli.c:3048 ast_cli_command_multiple_full()
# 6: [0x563ab787bf21] asterisk asterisk.c:1442 netconsole()
# 7: [0x563ab7a09cb7] asterisk utils.c:1572 dummy_start()
# 8: [0x7fa8f2328fa3] libpthread.so.0 pthread_create.c:487 start_thread()
# 9: [0x7fa8f1dbc4cf] libc.so.6 clone.S:97 clone()

[2022-01-22 20:28:09]     -- Remote UNIX connection disconnected


> channels: bad ao2 ref causes crash
> ----------------------------------
>
>                 Key: ASTERISK-29846
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29846
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: General
>    Affects Versions: 18.9.0
>         Environment: Debian 10
>            Reporter: N A
>            Assignee: N A
>
> Currently, Asterisk crashes randomly every few days, not seemingly linked to anything going on at the moment. In fact, prior to this crash, the system was completely idle (no calls) for the previous 34 minutes.
> Here is a backtrace from right before the last crash, useful as it has line numbers:
> 01:35:03 ERROR[13076] : Got 10 backtrace records
> # 0: [0x55ca492928cc] asterisk utils.c:2727 __ast_assert_failed()
> # 1: [0x55ca49109db3] asterisk astobj2.c:212 log_bad_ao2()
> # 2: [0x55ca4910a73a] asterisk astobj2.c:501 __ao2_ref()
> # 3: [0x55ca4917269a] asterisk cli.c:1218 handle_chanlist()
> # 4: [0x55ca4917859f] asterisk cli.c:3020 ast_cli_command_full()
> # 5: [0x55ca49178734] asterisk cli.c:3048 ast_cli_command_multiple_full()
> # 6: [0x55ca49101e0c] asterisk asterisk.c:1424 netconsole()
> # 7: [0x55ca4928fb57] asterisk utils.c:1572 dummy_start()
> # 8: [0x7f257c305fa3] libpthread.so.0 pthread_create.c:487 start_thread()
> # 9: [0x7f257bd994cf] libc.so.6 clone.S:97 clone()



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



More information about the asterisk-bugs mailing list