[llvm-bugs] [Bug 51151] New: scudo_tsd_exclusive: non-local variable '__scudo::TSD' declared '__thread' needs dynamic initialization

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 21 00:43:17 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51151

            Bug ID: 51151
           Summary: scudo_tsd_exclusive: non-local variable '__scudo::TSD'
                    declared '__thread' needs dynamic initialization
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: sylvestre at debian.org
                CC: llvm-bugs at lists.llvm.org

cd
"/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/build-llvm/projects/compiler-rt/lib/scudo"
&& /usr/lib/ccache/g++-7 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Dclang_rt_scudo_minimal_dynamic_i386_EXPORTS
-I"/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/build-llvm/projects/compiler-rt/lib/scudo"
-I"/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/compiler-rt/lib/scudo"
-I"/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/build-llvm/include"
-I"/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/llvm/include"
-I"/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/compiler-rt/lib/scudo/.."
-g -O2
-fdebug-prefix-map=/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0=.
-fstack-protector-strong -Wformat -Werror=format-security -fPIC
-fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall
-Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough
-Wno-maybe-uninitialized -Wno-noexcept-type -Wdelete-non-virtual-dtor
-Wno-comment -Wmisleading-indentation -ffunction-sections -fdata-sections -Wall
-std=c++14 -Wno-unused-parameter -O2 -DNDEBUG -g1 -fPIC  -m32 -fno-lto -fPIC
-fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables
-fno-stack-protector -fvisibility=hidden -fno-lto -O3 -g -Wno-variadic-macros
-nostdinc++ -fbuiltin -fno-rtti -fno-omit-frame-pointer -DGWP_ASAN_HOOKS
-std=c++14 -o
CMakeFiles/clang_rt.scudo_minimal-dynamic-i386.dir/scudo_allocator.cpp.o -c
"/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/compiler-rt/lib/scudo/scudo_allocator.cpp"
/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/compiler-rt/lib/scudo/scudo_tsd_exclusive.cpp:25:22:
error: non-local variable '__scudo::TSD' declared '__thread' needs dynamic
initialization
 THREADLOCAL ScudoTSD TSD;
                      ^~~
/build/llvm-toolchain-snapshot-13~++20210721091418+90cb5297adf0/compiler-rt/lib/scudo/scudo_tsd_exclusive.cpp:25:22:
note: C++11 'thread_local' allows dynamic initialization and destruction
projects/compiler-rt/lib/scudo/CMakeFiles/clang_rt.scudo_minimal-x86_64.dir/build.make:162:
recipe for target
'projects/compiler-rt/lib/scudo/CMakeFiles/clang_rt.scudo_minimal-x86_64.dir/scudo_tsd_exclusive.cpp.o'
failed

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210721/6fa46699/attachment-0001.html>


More information about the llvm-bugs mailing list