[llvm-bugs] [Bug 48452] New: clang-tblgen crashing on x86_64 x32 ABI
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Dec 9 03:33:04 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48452
Bug ID: 48452
Summary: clang-tblgen crashing on x86_64 x32 ABI
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: glaubitz at physik.fu-berlin.de
CC: craig.topper at gmail.com, harald at gigawatt.nl,
jrtc27 at jrtc27.com, llvm-bugs at lists.llvm.org,
llvm-dev at redking.me.uk, pengfei.wang at intel.com,
spatel+llvm at rotateright.com
Just tried a full bootstrap on Debian x32 which failed with clang-tblgen
segfaulting with the following backtrace:
(gdb) r
Starting program:
/glaubitz/llvm-project/build/tools/clang/stage2-bins/bin/clang-tblgen
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnux32/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x0056089b in std::call_once<void (&)()> (__once=..., __f=@0x560540: {void
(void)} 0x560540 <initializeMutex()>)
at /usr/lib/gcc/x86_64-linux-gnux32/10/../../../../include/c++/10/mutex:722
722 __once_call = []{ (*(decltype(__callable)*)__once_callable)(); };
(gdb) bt
#0 0x0056089b in std::call_once<void (&)()> (__once=..., __f=@0x560540: {void
(void)} 0x560540 <initializeMutex()>)
at /usr/lib/gcc/x86_64-linux-gnux32/10/../../../../include/c++/10/mutex:722
#1 0x0056082a in llvm::call_once<void (&)()> (flag=..., F=@0x560540: {void
(void)} 0x560540 <initializeMutex()>)
at /glaubitz/llvm-project/llvm/include/llvm/Support/Threading.h:121
#2 0x005603f4 in getManagedStaticMutex () at
/glaubitz/llvm-project/llvm/lib/Support/ManagedStatic.cpp:29
#3 0x005602bd in llvm::ManagedStaticBase::RegisterManagedStatic (this=0x7d70e0
<GlobalParser>,
Creator=0x53c5b0 <llvm::object_creator<(anonymous
namespace)::CommandLineParser>::call()>,
Deleter=0x53c5e0 <llvm::object_deleter<(anonymous
namespace)::CommandLineParser>::call(void*)>) at
/glaubitz/llvm-project/llvm/lib/Support/ManagedStatic.cpp:37
#4 0x0053c5a0 in llvm::ManagedStatic<(anonymous namespace)::CommandLineParser,
llvm::object_creator<(anonymous namespace)::CommandLineParser>,
llvm::object_deleter<(anonymous namespace)::CommandLineParser> >::operator*
(this=0x7d70e0 <GlobalParser>) at
/glaubitz/llvm-project/llvm/include/llvm/Support/ManagedStatic.h:89
#5 0x0052eeb3 in llvm::ManagedStatic<(anonymous namespace)::CommandLineParser,
llvm::object_creator<(anonymous namespace)::CommandLineParser>,
llvm::object_deleter<(anonymous namespace)::CommandLineParser> >::operator->
(this=0x7d70e0 <GlobalParser>) at
/glaubitz/llvm-project/llvm/include/llvm/Support/ManagedStatic.h:94
#6 0x0052ee7c in llvm::cl::AddLiteralOption (O=..., Name=...) at
/glaubitz/llvm-project/llvm/lib/Support/CommandLine.cpp:437
#7 0x0051bbad in llvm::cl::parser<ActionType>::addLiteralOption<int>
(this=0x7d6ae8 <(anonymous namespace)::Action+104>, Name=..., V=@0x7ddbb8: 0,
HelpStr=...)
at /glaubitz/llvm-project/llvm/include/llvm/Support/CommandLine.h:847
#8 0x0051ba42 in llvm::cl::ValuesClass::apply<llvm::cl::opt<ActionType, false,
llvm::cl::parser<ActionType> > > (this=0xffffd960, O=...)
at /glaubitz/llvm-project/llvm/include/llvm/Support/CommandLine.h:676
#9 0x0051b9bb in
llvm::cl::applicator<llvm::cl::ValuesClass>::opt<llvm::cl::opt<ActionType,
false, llvm::cl::parser<ActionType> > > (M=..., O=...)
at /glaubitz/llvm-project/llvm/include/llvm/Support/CommandLine.h:1244
#10 0x0051b94b in llvm::cl::apply<llvm::cl::opt<ActionType, false,
llvm::cl::parser<ActionType> >, llvm::cl::ValuesClass> (O=0x7d6a80 <(anonymous
namespace)::Action>,
M=...) at
/glaubitz/llvm-project/llvm/include/llvm/Support/CommandLine.h:1298
#11 0x0051b0dc in llvm::cl::apply<llvm::cl::opt<ActionType, false,
llvm::cl::parser<ActionType> >, llvm::cl::desc, llvm::cl::ValuesClass> (
O=0x7d6a80 <(anonymous namespace)::Action>, M=..., Ms=...) at
/glaubitz/llvm-project/llvm/include/llvm/Support/CommandLine.h:1294
#12 0x0051936b in llvm::cl::opt<ActionType, false, llvm::cl::parser<ActionType>
>::opt<llvm::cl::desc, llvm::cl::ValuesClass> (
this=0x7d6a80 <(anonymous namespace)::Action>, Ms=..., Ms=...) at
/glaubitz/llvm-project/llvm/include/llvm/Support/CommandLine.h:1485
#13 0x00408806 in __cxx_global_var_init () at
/glaubitz/llvm-project/clang/utils/TableGen/TableGen.cpp:94
#14 0x004088b8 in _GLOBAL__sub_I_TableGen.cpp () at
/glaubitz/llvm-project/clang/utils/TableGen/TableGen.cpp:246
#15 0x0067d47b in __libc_csu_init ()
#16 0xf7ac1d39 in __libc_start_main (main=<optimized out>, argc=1,
argv=<optimized out>, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>,
stack_end=0xffffdaf8) at ../csu/libc-start.c:264
#17 0x0040999b in _start ()
(gdb)
--
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/20201209/3c933802/attachment.html>
More information about the llvm-bugs
mailing list