<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - clang-tblgen crashing on x86_64 x32 ABI"
   href="https://bugs.llvm.org/show_bug.cgi?id=48452">48452</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-tblgen crashing on x86_64 x32 ABI
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: X86
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>glaubitz@physik.fu-berlin.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>craig.topper@gmail.com, harald@gigawatt.nl, jrtc27@jrtc27.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, pengfei.wang@intel.com, spatel+llvm@rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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>
<span class="quote">>::opt<llvm::cl::desc, llvm::cl::ValuesClass> (</span >
    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)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>