[Home]

Summary:ASTERISK-29610: ARI channels/move command causes segfault if app name is null
Reporter:Kenny Anderson (KenDFish)Labels:
Date Opened:2021-08-24 02:36:53Date Closed:2021-09-07 12:00:06
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/General
Versions:16.20.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Asterisk 16.20 (and possibly other version) running on Debian 10Attachments:
Description:If I (accidentially) send a ARI channel move command (https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Channels+REST+API#Asterisk16ChannelsRESTAPI-move) with the app name as null, Asterisk segfaults:

{{kernel: [44537.949162] asterisk[13478]: segfault at 0 ip 00007fb1c4926676 sp 00007fb10716cb38 error 4 in libc-2.24.so[7fb1c48a6000+195000]}}

Of course, the answer is not to send through a null app name to the move command, but then again ARI should return an HTTP error rather than crash.
Comments:By: Asterisk Team (asteriskteam) 2021-08-24 02:36:57.396-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/].

By: Benjamin Keith Ford (bford) 2021-08-24 07:45:03.058-0500

Can you provide the backtrace? Information on how to do so can be found here: https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace

By: Asterisk Team (asteriskteam) 2021-09-07 12:00:05.772-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