[Home]

Summary:ASTERISK-28931: stasis.c:1475 publish_msg: FRACK!, Failed assertion bad magic number 0x0 for object
Reporter:Diogo Hartmann (dhart)Labels:
Date Opened:2020-06-03 08:42:47Date Closed:2020-06-18 12:00:01
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/Stasis
Versions:17.3.0 Frequency of
Occurrence
Frequent
Related
Issues:
is related toASTERISK-29187 stasis.c: FRACK!, Failed assertion bad magic number 0x0 for object in publish_msg
Environment:GCE Server running on a Debian Jessie instance, dedicated to asterisk server onlyAttachments:
Description:Asterisk is crashing with the following 2 FRACK backtraces:

[Jun  3 08:40:19] ERROR[463272][C-000112d4]: stasis.c:1471 publish_msg: FRACK!, Failed assertion bad magic number 0x0 for object 0x7f8eb802ec70 (0)
FRACK!, Failed assertion bad magic number 0x0 for object 0x7f8eb802ec70 (0) at line 1471 in publish_msg of stasis.c
FRACK!, Failed assertion bad magic number 0x0 for object 0x7f8eb802ec70 (0) at line 1475 in publish_msg of stasis.c
[Jun  3 08:40:19] ERROR[463272][C-000112d4]:   Got 18 backtrace records
# 0: asterisk __ao2_ref()
# 1: asterisk <unknown>()
# 2: asterisk bridge_topics_destroy()
# 3: asterisk <unknown>()
# 4: asterisk __ao2_ref()
# 5: asterisk <unknown>()
# 6: asterisk __ao2_ref()
# 7: asterisk ast_bridge_depart()
# 8: [0x7f8efdee76b2] res_stasis.so res_stasis.c:1575 stasis_app_exec()
# 9: [0x7f8efcef92e9] app_stasis.so app_stasis.c:105 app_exec()
#10: asterisk pbx_exec()
#11: asterisk <unknown>()
#12: asterisk <unknown>()
#13: asterisk ast_pbx_run()
#14: [0x7f8efce8a8e0] res_ari_channels.so resource_channels.c:1049 ari_originate_dial()
#15: asterisk <unknown>()
#16: [0x7f8f16848f27] libpthread.so.0 :0 __libpthread_freeres()
#17: [0x7f8f164a22ef] libc.so.6 :0 clone()

[Jun  3 08:40:19] ERROR[463272][C-000112d4]: stasis.c:1475 publish_msg: FRACK!, Failed assertion bad magic number 0x0 for object 0x7f8eb802ec70 (0)
[Jun  3 08:40:19] ERROR[463272][C-000112d4]:   Got 18 backtrace records
# 0: asterisk __ao2_lock()
# 1: asterisk <unknown>()
# 2: asterisk bridge_topics_destroy()
# 3: asterisk <unknown>()
# 4: asterisk __ao2_ref()
# 5: asterisk <unknown>()
# 6: asterisk __ao2_ref()
# 7: asterisk ast_bridge_depart()
# 8: [0x7f8efdee76b2] res_stasis.so res_stasis.c:1575 stasis_app_exec()
# 9: [0x7f8efcef92e9] app_stasis.so app_stasis.c:105 app_exec()
#10: asterisk pbx_exec()
#11: asterisk <unknown>()
#12: asterisk <unknown>()
#13: asterisk ast_pbx_run()
#14: [0x7f8efce8a8e0] res_ari_channels.so resource_channels.c:1049 ari_originate_dial()
#15: asterisk <unknown>()
#16: [0x7f8f16848f27] libpthread.so.0 :0 __libpthread_freeres()
#17: [0x7f8f164a22ef] libc.so.6 :0 clone()
Comments:By: Asterisk Team (asteriskteam) 2020-06-03 08:42:48.644-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.

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.

By: George Joseph (gjoseph) 2020-06-03 09:42:29.964-0500

Is Asterisk actually crashing and restarting or is it just printing the messages to the log?

If it's crashing, please follow the instructions linked below to get backtraces.
https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace


By: Diogo Hartmann (dhart) 2020-06-03 10:59:22.899-0500

It's really crashing. After that the `ps aux` show the asterisks process in "defunct" status. I'll have a loog at the link and post the info here asap.

By: Asterisk Team (asteriskteam) 2020-06-18 12:00:01.134-0500

Suspended due to lack of activity. This issue will be automatically re-opened if the reporter posts a comment. If you are not the reporter and would like this re-opened please create a new issue instead. If the new issue is related to this one a link will be created during the triage process. Further information on issue tracker usage can be found in the Asterisk Issue Guidlines [1].

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