[Home]

Summary:ASTERISK-29481: Asterisk Randomly Crash with astobj2.c: FRACK!, Failed assertion bad magic number
Reporter:Asoka Wardhana (asoka.wardhana)Labels:
Date Opened:2021-06-17 11:27:34Date Closed:2021-06-17 11:27:35
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:13.38.2 Frequency of
Occurrence
Frequent
Related
Issues:
Environment:Ubuntu 14.04 , Intel(R) Xeon(R) CPU E5-2407 v2 @ 2.40GHz, 16 GB MemAttachments:
Description:We upgrade Asterisk from 11.22.0 to 13.38.2, SIP User using TCP Transport, when using 11.22.0 no issue, but after upgrade to 13.38.2 Asterisk randomly crash with information on full log :

[Jun 17 19:45:04] ERROR[29771] astobj2.c: FRACK!, Failed assertion bad magic number 0x0 for object 0x3bd1468 (0)
[Jun 17 19:45:05] ERROR[29771] : Got 18 backtrace records
# 0: [0x612635] asterisk utils.c:2487 __ast_assert_failed()
# 1: [0x45e291] asterisk astobj2.c:137 INTERNAL_OBJ()
# 2: [0x45e938] asterisk astobj2.c:404 internal_ao2_ref()
# 3: [0x45edfc] asterisk astobj2.c:524 __ao2_ref()
# 4: [0x45f9ef] asterisk astobj2_container.c:405 internal_ao2_traverse()
# 5: [0x45fce8] asterisk astobj2_container.c:469 __ao2_callback_data()
# 6: [0x7f1c6ee1e8a4] chan_sip.so chan_sip.c:5745 sip_find_peer_full()
# 7: [0x7f1c6ee1eaf7] chan_sip.so chan_sip.c:5803 sip_find_peer()
# 8: [0x7f1c6ee5af43] chan_sip.so chan_sip.c:17852 register_verify()
# 9: [0x7f1c6ee94bc0] chan_sip.so chan_sip.c:28803 handle_request_register()
#10: [0x7f1c6ee96425] chan_sip.so chan_sip.c:29111 handle_incoming()
#11: [0x7f1c6ee96e06] chan_sip.so chan_sip.c:29279 handle_request_do()
#12: [0x7f1c6ee1557e] chan_sip.so chan_sip.c:3093 _sip_tcp_helper_thread()
#13: [0x7f1c6ee14053] chan_sip.so chan_sip.c:2622 sip_tcp_worker_fn()
#14: [0x5fb299] asterisk tcptls.c:857 handle_tcptls_connection()
#15: [0x60f489] asterisk utils.c:1239 dummy_start()
#16: [0x7f1cea5af182] libpthread.so.0 :0 __pthread_get_minstack()
#17: [0x7f1ce986f47d] libc.so.6 :0 clone()

This is information after running asterisk script ast_coredumper:

Info.txt :

!@!@!@! info.txt !@!@!@!

Asterisk 13.38.2 built by <error: Cannot access memory at address 0x7f1ceb4ab200> @ <ast_say_number_full_pl+694> on a <error: Cannot access memory at address 0x7f1cea5b6bd0> running <error: Cannot

System started: 1970-01-01 07:00:00
Last reload: 1970-01-01 07:00:00

Build options = OPTIONAL_API

tps_singletons - 'gdb.Value' object cannot be interpreted as an integer
TaskProcessors not found

bridges - Cannot access memory at address 0x28
Bridges not found

channels - 'gdb.Value' object cannot be interpreted as an integer
Channels not found

Unable to retrieve channel summary

locks.txt :

!@!@!@! locks.txt !@!@!@!

$4 = {si_signo = 6, si_errno = 0, si_code = -6, _sifields = {_pad = {28198, 1001, 0 <repeats 26 times>}, _kill = {si_pid = 28198, si_uid = 1001}, _timer = {si_tid = 28198, si_overrun = 1001, si_sigval = {sival_i
Signal        Stop<>Print<->Pass to program>Description
SIGABRT       Yes<->Yes>Yes><-->Aborted


thread1.txt :

!@!@!@! thread1.txt !@!@!@!

$1 = {si_signo = 6, si_errno = 0, si_code = -6, _sifields = {_pad = {28198, 1001, 0 <repeats 26 times>}, _kill = {si_pid = 28198, si_uid = 1001}, _timer = {si_tid = 28198, si_overrun = 1001, si_sigval = {sival_i
Signal        Stop<>Print<->Pass to program>Description
SIGABRT       Yes<->Yes>Yes><-->Aborted

Thread 1 (LWP 29771):
#0  0x00007f1ce97abcc9 in ?? ()
No symbol table info available.
#1  0x00007f1ce97af0d8 in ?? ()
No symbol table info available.
#2  0x0000000000000020 in ?? ()
No symbol table info available.
#3  0x0000000000000000 in ?? ()
No symbol table info available.





Comments:By: Asterisk Team (asteriskteam) 2021-06-17 11:27:35.146-0500

Per the Asterisk versions page [1], the maintenance (bug fix) support for the Asterisk branch you are using has ended. For continued maintenance support please move to a supported branch of Asterisk. After testing with a supported branch, if you find this problem has not been resolved, please open a new issue against the latest version of that Asterisk branch.

Thanks!

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions

By: Asterisk Team (asteriskteam) 2021-06-17 11:27:35.862-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].