[Home]

Summary:ASTERISK-26830: SEGV in stasis_message_router_publish_sync
Reporter:Badalian Vyacheslav (slavon)Labels:
Date Opened:2017-03-01 15:35:15.000-0600Date Closed:2020-01-14 11:13:33.000-0600
Priority:MinorRegression?
Status:Closed/CompleteComponents:
Versions:13.14.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:SEGV was caught ...

{code}
==108030==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000018 (pc 0x00000075a578 bp 0x7f68d5de80d0 sp 0x7f68d5de7f90 T103516)
   #0 0x75a577 in publish_msg .../asterisk-13.14.0/main/stasis.c:830
   #1 0x774f86 in stasis_message_router_publish_sync .../asterisk-13.14.0/main/stasis_message_router.c:288
   #2 0x7f692ef51610 in cdr_write .../asterisk-13.14.0/funcs/func_cdr.c:568
   #3 0x6f182c in ast_func_write .../asterisk-13.14.0/main/pbx_functions.c:711
   #4 0x6facde in pbx_builtin_setvar_helper .../asterisk-13.14.0/main/pbx_variables.c:1036
   #5 0x6faec7 in pbx_builtin_setvar .../asterisk-13.14.0/main/pbx_variables.c:1104
   #6 0x6e97a4 in pbx_exec .../asterisk-13.14.0/main/pbx_app.c:485
   #7 0x6d65c4 in pbx_extension_helper .../asterisk-13.14.0/main/pbx.c:2884
   #8 0x6d9bda in ast_spawn_extension .../asterisk-13.14.0/main/pbx.c:4110
   #9 0x7f693eebaea9 in gosub_run .../asterisk-13.14.0/apps/app_stack.c:1057
   #10 0x45b8d9 in ast_app_exec_sub .../asterisk-13.14.0/main/app.c:435
   #11 0x6f2339 in ast_pbx_hangup_handler_run .../asterisk-13.14.0/main/pbx_hangup_handler.c:88
   #12 0x6db656 in __ast_pbx_run .../asterisk-13.14.0/main/pbx.c:4504
   #13 0x6dcbd3 in ast_pbx_run_args .../asterisk-13.14.0/main/pbx.c:4653
   #14 0x6dcbd3 in ast_pbx_run .../asterisk-13.14.0/main/pbx.c:4662
   #15 0x6dcbd3 in pbx_outgoing_exec .../asterisk-13.14.0/main/pbx.c:7504
   #16 0x7b2cbf in dummy_start .../asterisk-13.14.0/main/utils.c:1235
   #17 0x7f6961492dc4 in start_thread (/lib64/libpthread.so.0+0x7dc4)
   #18 0x7f696083773c in clone (/lib64/libc.so.6+0xf773c)

SUMMARY: AddressSanitizer: SEGV .../asterisk-13.14.0/main/stasis.c:830 in publish_msg
Thread T103516 created by T103515 here:
   #0 0x7f696376c4a8 in pthread_create (/lib64/libasan.so.3+0x314a8)
   #1 0x7bceb4 in ast_pthread_create_stack .../asterisk-13.14.0/main/utils.c:1288
   #2 0x7bd150 in ast_pthread_create_detached_stack .../asterisk-13.14.0/main/utils.c:1308
   #3 0x6ca5c9 in pbx_outgoing_attempt .../asterisk-13.14.0/main/pbx.c:7698
   #4 0x6e41b3 in ast_pbx_outgoing_exten .../asterisk-13.14.0/main/pbx.c:7766
   #5 0x692fff in fast_originate .../asterisk-13.14.0/main/manager.c:5104
   #6 0x7b2cbf in dummy_start .../asterisk-13.14.0/main/utils.c:1235
   #7 0x7f6961492dc4 in start_thread (/lib64/libpthread.so.0+0x7dc4)

Thread T103515 created by T22932 here:
   #0 0x7f696376c4a8 in pthread_create (/lib64/libasan.so.3+0x314a8)
   #1 0x7bceb4 in ast_pthread_create_stack .../asterisk-13.14.0/main/utils.c:1288
   #2 0x7bd150 in ast_pthread_create_detached_stack .../asterisk-13.14.0/main/utils.c:1308
   #3 0x690050 in action_originate .../asterisk-13.14.0/main/manager.c:5568
   #4 0x67ba84 in process_message .../asterisk-13.14.0/main/manager.c:6322
   #5 0x68309d in do_message .../asterisk-13.14.0/main/manager.c:6535
   #6 0x68309d in session_do .../asterisk-13.14.0/main/manager.c:6656
   #7 0x793e1f in handle_tcptls_connection .../asterisk-13.14.0/main/tcptls.c:742
   #8 0x7b2cbf in dummy_start .../asterisk-13.14.0/main/utils.c:1235
   #9 0x7f6961492dc4 in start_thread (/lib64/libpthread.so.0+0x7dc4)

Thread T22932 created by T23 here:
   #0 0x7f696376c4a8 in pthread_create (/lib64/libasan.so.3+0x314a8)
   #1 0x7bceb4 in ast_pthread_create_stack .../asterisk-13.14.0/main/utils.c:1288
   #2 0x7bd150 in ast_pthread_create_detached_stack .../asterisk-13.14.0/main/utils.c:1308
   #3 0x793455 in ast_tcptls_server_root .../asterisk-13.14.0/main/tcptls.c:793
   #4 0x7b2cbf in dummy_start .../asterisk-13.14.0/main/utils.c:1235
   #5 0x7f6961492dc4 in start_thread (/lib64/libpthread.so.0+0x7dc4)

Thread T23 created by T0 here:
   #0 0x7f696376c4a8 in pthread_create (/lib64/libasan.so.3+0x314a8)
   #1 0x7bceb4 in ast_pthread_create_stack .../asterisk-13.14.0/main/utils.c:1288
   #2 0x7923b6 in ast_tcptls_server_start .../asterisk-13.14.0/main/tcptls.c:1190
   #3 0x6960f7 in __init_manager .../asterisk-13.14.0/main/manager.c:9295
   #4 0x4387f1 in asterisk_daemon .../asterisk-13.14.0/main/asterisk.c:4686
   #5 0x4387f1 in main .../asterisk-13.14.0/main/asterisk.c:4446
   #6 0x7f6960761b34 in __libc_start_main (/lib64/libc.so.6+0x21b34)
{code}
Comments:By: Asterisk Team (asteriskteam) 2017-03-01 15:35:17.126-0600

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].

By: Joshua C. Colp (jcolp) 2017-03-01 15:53:23.835-0600

Do you have an actual backtrace to go with this, or merely the output from the address sanitizer?

By: Badalian Vyacheslav (slavon) 2017-03-01 17:04:39.089-0600

Very rare story. It appears on the test machine. It is running in a circle of 20 bots to call each other.

By: Joshua C. Colp (jcolp) 2017-03-02 08:32:16.170-0600

This isn't really enough to go on. Ideally seeing an actual backtrace and console log would provide the insight we need to see what is going on.

By: Asterisk Team (asteriskteam) 2017-03-16 12:00:01.716-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