[LLVMbugs] [Bug 15807] New: Segfault in llvm-tblgen for ARMGenAsmMatcher prevents compilation of 3.2 and 3.3 trunk

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Apr 21 16:57:07 PDT 2013


            Bug ID: 15807
           Summary: Segfault in llvm-tblgen for ARMGenAsmMatcher prevents
                    compilation of 3.2 and 3.3 trunk
           Product: libraries
           Version: trunk
          Hardware: Other
                OS: other
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: s_bugzilla at nedprod.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Tried building clang + LLVM release 3.2 and trunk 3.3. Both fail with this

My configuration: Samsung ARM Chromebook running Ubuntu inside a chroot via

Configure used: ./configure --build=armv7l-unknown-linux-gnueabihf \
--host=armv7l-unknown-linux-gnueabihf \
--target=armv7l-unknown-linux-gnueabihf --with-cpu=cortex-a9 \
--with-float=hard --with-abi=aapcs-vfp --with-fpu=neon \
--enable-targets=arm --enable-optimized --enable-assertions

Segfaults here in build process:
make[3]: Leaving directory `/home/ned/clang-3.2-staging/lib/MC/MCDisassembler'
make[2]: Leaving directory `/home/ned/clang-3.2-staging/lib/MC'
Stack dump:
0.      Program arguments:
/home/ned/clang-3.2-staging/Release+Asserts/bin/llvm-tblgen -I
/home/ned/llvm-3.2.src/lib/Target/ARM -I /home/ned/llvm-3.2.
src/include -I /home/ned/llvm-3.2.src/include -I
/home/ned/llvm-3.2.src/lib/Target -gen-asm-matcher -o
make[3]: ***
Segmentation fault (core dumped)
make[3]: Target `all' not remade because of errors.
make[3]: Target `all' not remade because of errors.

Running gdb on this yields:
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
For bug reporting instructions, please see:
Reading symbols from
/home/ned/clang-3.2-staging/Release+Asserts/bin/llvm-tblgen...(no debugging
symbols found)...done.
(gdb) run
Starting program: /home/ned/clang-3.2-staging/Release+Asserts/bin/llvm-tblgen
-I=/home/ned/llvm-3.2.src/lib/Target/ARM -I=/home/ned/llvm-3.2.src/inclu
de -I=/home/ned/llvm-3.2.src/include -I=/home/ned/llvm-3.2.src/lib/Target
-gen-asm-matcher -o /home/ned/clang-3.2-staging/lib/Target/ARM/Release+Asser
ts/ARMGenAsmMatcher.inc.tmp /home/ned/llvm-3.2.src/lib/Target/ARM/ARM.td
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x001ca860 in llvm::StringRef::lower() const ()
(gdb) bt
#0  0x001ca860 in llvm::StringRef::lower() const ()
#1  0x0002c1dc in (anonymous namespace)::MatchableInfo::initialize((anonymous
namespace)::AsmMatcherInfo const&, llvm::SmallPtrSet<llvm::Record*, 16u>
&, int, std::string&) ()
#2  0x0001aae8 in (anonymous namespace)::AsmMatcherInfo::buildInfo() ()
#3  0x0000b9a4 in (anonymous
namespace)::AsmMatcherEmitter::run(llvm::raw_ostream&) ()
#4  0x0000b858 in llvm::EmitAsmMatcher(llvm::RecordKeeper&, llvm::raw_ostream&)
#5  0x0014a340 in (anonymous namespace)::LLVMTableGenMain(llvm::raw_ostream&,
llvm::RecordKeeper&) ()
#6  0x0015bd24 in llvm::TableGenMain(char*, bool (*)(llvm::raw_ostream&,
llvm::RecordKeeper&)) ()
#7  0x0014a22c in main ()

Not sure what's gone wrong here. Could be a weirdness in the Chromebook kernel,
could be the chroot, could be something ARM-specific.

I attach a core dump for your information.


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/20130421/4190c5bb/attachment.html>

More information about the llvm-bugs mailing list