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

Alexander Traud (JIRA) noreply at issues.asterisk.org
Sat Aug 14 10:51:33 CDT 2021


Alexander Traud created ASTERISK-29577:
------------------------------------------

             Summary: 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: 18.6.0, 16.20.0
         Environment: Clang 12.0.0-3 of Ubuntu 21.04
            Reporter: Alexander Traud
         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