[LLVMbugs] [Bug 10850] New: llvm-as crash on file that uses libc++'s hash
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Sep 2 15:47:02 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10850
Summary: llvm-as crash on file that uses libc++'s hash
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: llvm-as
AssignedTo: unassignedbugs at nondot.org
ReportedBy: alonzakai at gmail.com
CC: llvmbugs at cs.uiuc.edu
The attachment is a tiny program using libc++'s hash implementation. It crashes
when processed with
llvm-as src.cpp.o.ll.pre -o=src.cpp.o
A debug build gives this stack:
Program received signal SIGSEGV, Segmentation fault.
0x080585fe in llvm::Value::getType (this=0x0) at
/home/alon/Dev/llvm-svn/include/llvm/Value.h:108
108 Type *getType() const { return VTy; }
(gdb) where
#0 0x080585fe in llvm::Value::getType (this=0x0) at
/home/alon/Dev/llvm-svn/include/llvm/Value.h:108
#1 0x08133dc9 in LoadInst (this=0x82999c4, Ptr=0x0, Name=0x0,
isVolatile=false, InsertBef=0x0)
at /home/alon/Dev/llvm-svn/lib/VMCore/Instructions.cpp:1027
#2 0x080b894e in llvm::IRBuilder<true, llvm::ConstantFolder,
llvm::IRBuilderDefaultInserter<true> >::CreateLoad (this=0xbfffec60, Ptr=0x0,
Name=0x821bf94 "exn") at
/home/alon/Dev/llvm-svn/include/llvm/Support/IRBuilder.h:754
#3 0x080b6c73 in llvm::UpgradeExceptionHandling (M=0x827abb0) at
/home/alon/Dev/llvm-svn/lib/VMCore/AutoUpgrade.cpp:518
#4 0x0807b825 in llvm::LLParser::ValidateEndOfModule (this=0xbffff0bc) at
/home/alon/Dev/llvm-svn/lib/AsmParser/LLParser.cpp:124
#5 0x0807ad72 in llvm::LLParser::Run (this=0xbffff0bc) at
/home/alon/Dev/llvm-svn/lib/AsmParser/LLParser.cpp:42
#6 0x08072bb1 in llvm::ParseAssembly (F=0x827ab80, M=0x0, Err=...,
Context=...) at /home/alon/Dev/llvm-svn/lib/AsmParser/Parser.cpp:38
#7 0x08072d1f in llvm::ParseAssemblyFile (Filename=..., Err=..., Context=...)
at /home/alon/Dev/llvm-svn/lib/AsmParser/Parser.cpp:52
#8 0x0804c7b3 in main (argc=3, argv=0xbffff484) at
/home/alon/Dev/llvm-svn/tools/llvm-as/llvm-as.cpp:97
(gdb)
This is on latest LLVM svn. This appears to be a regression since the same
automatic test (in the emscripten test suite) worked on 2.9.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list