[Home]

Summary:ASTERISK-28232: core: RAII using clang use-after-scope issue
Reporter:Diederik de Groot (dkdegroot)Labels:Clang Raii SanitizeAddress
Date Opened:2019-01-05 11:40:08.000-0600Date Closed:2019-01-11 08:27:32.000-0600
Priority:MinorRegression?Yes
Status:Closed/CompleteComponents:Core/General
Versions:11.0.0 13.0.0 16.0.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:clangAttachments:
Description:When using clang as the compiler and activating address sanitizer, every time RAII_VAR tries to unwind, address-sanitizer reports an issue with use-after-scope. This makes sense, because the two variables used in the RAII_VAR macro are declared in the wrong order. Reversing the order, solves the issue.
Comments:By: Asterisk Team (asteriskteam) 2019-01-05 11:40:09.692-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].

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: Friendly Automation (friendly-automation) 2019-01-11 08:27:32.968-0600

Change 10866 merged by Friendly Automation:
RAII: Change order or variables in clang version

[https://gerrit.asterisk.org/10866|https://gerrit.asterisk.org/10866]

By: Friendly Automation (friendly-automation) 2019-01-11 08:29:40.286-0600

Change 10868 merged by Joshua C. Colp:
RAII: Change order or variables in clang version

[https://gerrit.asterisk.org/10868|https://gerrit.asterisk.org/10868]

By: Friendly Automation (friendly-automation) 2019-01-11 08:29:59.732-0600

Change 10854 merged by Friendly Automation:
RAII: Change order or variables in clang version

[https://gerrit.asterisk.org/10854|https://gerrit.asterisk.org/10854]