[Home]

Summary:ASTERISK-27030: Asterisk crashes with Segfault in res_ari
Reporter:Mark Farmer (farmorg)Labels:
Date Opened:2017-06-02 06:08:34Date Closed:2017-06-02 10:42:23
Priority:MajorRegression?
Status:Closed/CompleteComponents:Resources/res_ari
Versions:14.5.0 Frequency of
Occurrence
Related
Issues:
duplicatesASTERISK-27026 res_ari: Crash when no ari.conf configuration file exists
Environment:CentOS Linux release 7.3.1611Attachments:
Description:After installing 14.5.0, Asterisk crashes with the following messages in the logs:
{noformat}
[2017-06-01 12:50:05] WARNING[63897] loader.c: Error loading module 'res_ari_device_states.so': /usr/lib64/asterisk/modules/res_ari_device_states.so: undefined symbol: ast_ari_response_alloc_failed
[2017-06-01 12:50:05] WARNING[63897] loader.c: Module 'res_ari_device_states.so' could not be loaded.
[2017-06-01 12:50:05] WARNING[63897] loader.c: Error loading module 'res_ari_channels.so': /usr/lib64/asterisk/modules/res_ari_channels.so: undefined symbol: ast_ari_response_created
[2017-06-01 12:50:05] WARNING[63897] loader.c: Module 'res_ari_channels.so' could not be loaded.
[2017-06-01 12:50:05] WARNING[63897] loader.c: Error loading module 'res_ari_bridges.so': /usr/lib64/asterisk/modules/res_ari_bridges.so: undefined symbol: ast_ari_response_created
[2017-06-01 12:50:05] WARNING[63897] loader.c: Module 'res_ari_bridges.so' could not be loaded.
[2017-06-01 12:50:05] WARNING[63897] loader.c: Error loading module 'res_ari_applications.so': /usr/lib64/asterisk/modules/res_ari_applications.so: undefined symbol: ast_ari_response_alloc_failed
[2017-06-01 12:50:05] WARNING[63897] loader.c: Module 'res_ari_applications.so' could not be loaded.
[2017-06-01 12:50:05] WARNING[63897] loader.c: Error loading module 'res_ari_recordings.so': /usr/lib64/asterisk/modules/res_ari_recordings.so: undefined symbol: ast_ari_response_alloc_failed
[2017-06-01 12:50:05] WARNING[63897] loader.c: Module 'res_ari_recordings.so' could not be loaded.
[2017-06-01 12:50:05] WARNING[63897] loader.c: Error loading module 'res_ari_asterisk.so': /usr/lib64/asterisk/modules/res_ari_asterisk.so: undefined symbol: ast_ari_response_alloc_failed
[2017-06-01 12:50:05] WARNING[63897] loader.c: Module 'res_ari_asterisk.so' could not be loaded.
[2017-06-01 12:50:05] WARNING[63897] loader.c: Error loading module 'res_ari_playbacks.so': /usr/lib64/asterisk/modules/res_ari_playbacks.so: undefined symbol: ast_ari_response_alloc_failed
[2017-06-01 12:50:05] WARNING[63897] loader.c: Module 'res_ari_playbacks.so' could not be loaded.
[2017-06-01 12:50:05] WARNING[63897] loader.c: Error loading module 'res_ari_endpoints.so': /usr/lib64/asterisk/modules/res_ari_endpoints.so: undefined symbol: ast_ari_response_alloc_failed
[2017-06-01 12:50:05] WARNING[63897] loader.c: Module 'res_ari_endpoints.so' could not be loaded.
[2017-06-01 12:50:05] WARNING[63897] loader.c: Error loading module 'res_ari_sounds.so': /usr/lib64/asterisk/modules/res_ari_sounds.so: undefined symbol: ast_ari_response_alloc_failed
[2017-06-01 12:50:05] WARNING[63897] loader.c: Module 'res_ari_sounds.so' could not be loaded.
[2017-06-01 12:50:05] WARNING[63897] loader.c: Error loading module 'res_ari_events.so': /usr/lib64/asterisk/modules/res_ari_events.so: undefined symbol: ast_ari_websocket_session_create
[2017-06-01 12:50:05] WARNING[63897] loader.c: Module 'res_ari_events.so' could not be loaded.
{noformat}
And:
{noformat}
kernel: asterisk[43936]: segfault at 48 ip 00007f9042af7af2 sp 00007ffeb24c1e60 error 4 in res_ari.so[7f9042af2000+e000]
{noformat}
Adding noload = res_ari to modules.conf allows Asterisk to run.

After uninstalling 14.5.0 & installing 14.4.1 all is good again.
Comments:By: Asterisk Team (asteriskteam) 2017-06-02 06:08:35.230-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].

By: Joshua C. Colp (jcolp) 2017-06-02 06:14:46.747-0500

Thank you for the crash report. However, we need more information to investigate the crash. Please provide:

1. A backtrace generated from a core dump using the instructions provided on the Asterisk wiki [1].
2. Specific steps taken that lead to the crash.
3. All configuration information necesary to reproduce the crash.

Thanks!

[1]: https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace



By: Joshua C. Colp (jcolp) 2017-06-02 06:15:33.137-0500

As well - are you using a custom modules.conf at all? What is the complete console output at start?

By: Joshua C. Colp (jcolp) 2017-06-02 10:42:06.972-0500

Based on the information provided this is actually a duplicate of ASTERISK-27026.