[asterisk-bugs] [JIRA] (ASTERISK-29577) Scope Tracing: illegal storage on function

Sean Bright (JIRA) noreply at issues.asterisk.org
Tue Aug 17 09:21:33 CDT 2021


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=255927#comment-255927 ] 

Sean Bright commented on ASTERISK-29577:
----------------------------------------

It would be better to do something similar to [what is being done by {{RAII_VAR(...)}} when clang is used|https://github.com/asterisk/asterisk/blob/0564d1228049d27ee4a0216662512e3f64a8a85e/include/asterisk/utils.h#L900-L918].

> Scope Tracing: illegal storage on function
> ------------------------------------------
>
>                 Key: ASTERISK-29577
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29577
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Logging
>    Affects Versions: 16.20.0, 18.6.0
>         Environment: Clang 12.0.0-3 of Ubuntu 21.04
>            Reporter: Alexander Traud
>              Labels: patch
>         Attachments: remove_scope_trace.patch
>
>
> This issue was introduced with [GERRIT-14463|https://gerrit.asterisk.org/14463]. The current implementation of the macro SCOPE_TRACE is not portable, for example the compiler Clang errors on it.
> *Steps to Reproduce* (see {{contrib/scripts/install_prereq}}):
> {code}
> sudo apt install make clang libblocksruntime-dev pkg-config
> sudo apt install libedit-dev libjansson-dev libsqlite3-dev uuid-dev libxml2-dev
> CC=clang CXX=clang++ ./configure --enable-dev-mode=noisy
> make
> {code}
> I could limit SCOPE_TRACE to the compiler GCC. Or we ignore this issue because nobody (?) is using Clang with the Developer Mode of Asterisk. Not sure about that one. Any suggestions?
> Until decided, the attached patch simply disables just SCOPE_TRACE, for those using Asterisk:
> # not in normal mode but in developer mode
> # not with compiler GCC but with Clang



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list