Summary: | ASTERISK-24921: [patch]RAII reentrancy issue when compiled with clang | ||
Reporter: | Diederik de Groot (dkdegroot) | Labels: | |
Date Opened: | 2015-03-27 09:51:17 | Date Closed: | 2015-05-06 07:31:27 |
Priority: | Major | Regression? | Yes |
Status: | Closed/Complete | Components: | Core/General |
Versions: | 13.2.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | clang-3.6 | Attachments: | ( 0) RAII_clang_backtrace.txt |
Description: | clang version of the RAII macro is not re-entrant proof. It will destruct the pointer on the first exit of the recursion and multiple time (double-free). | ||
Comments: | By: Diederik de Groot (dkdegroot) 2015-03-27 09:52:56.315-0500 Backtrace Showing one instance of this issue By: Diederik de Groot (dkdegroot) 2015-03-27 10:00:51.548-0500 Related to: ASTERISK-2085 / https://reviewboard.asterisk.org/r/4370/ BTW: refcounting would possible help to solve the issue, but don't want to go there just yet. By: Diederik de Groot (dkdegroot) 2015-03-27 10:07:22.015-0500 This patch resolves the issue https://reviewboard.asterisk.org/r/4543/ By: Matt Jordan (mjordan) 2015-05-06 07:31:20.845-0500 This should have been resolved by 09c7c678a331e360463408b7be9671131154daea. |