[LLVMbugs] [Bug 6087] New: SEGV when self-building RegisterInfoEmitter.cpp

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jan 19 18:14:53 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6087

           Summary: SEGV when self-building RegisterInfoEmitter.cpp
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: pawel.worach at gmail.com
                CC: llvmbugs at cs.uiuc.edu


self-build ends up in a SEGV when building TableGen.

clang version 1.1 (trunk 93965)
Target: x86_64-apple-darwin10

llvm[2]: Compiling RegisterInfoEmitter.cpp for Debug build
0  clang             0x0000000100eaabc2 PrintStackTrace(void*) + 34
1  clang             0x0000000100eab44c SignalHandler(int) + 652
2  libSystem.B.dylib 0x00007fff87253eaa _sigtramp + 26
3  clang             0x00000001002346e0 (anonymous
namespace)::CXXNameMangler::mangleTemplateArg(clang::TemplateArgument const&) +
240
4  clang             0x0000000100e4e95b llvm::Value::getContext() const + 43
5  clang             0x0000000100e4f426 llvm::ValueHandleBase::AddToUseList() +
38
6  clang             0x0000000100e2be1b
llvm::MDNode::MDNode(llvm::LLVMContext&, llvm::Value* const*, unsigned int,
bool) + 171
7  clang             0x0000000100e2bfa7
llvm::MDNode::getMDNode(llvm::LLVMContext&, llvm::Value* const*, unsigned int,
llvm::MDNode::FunctionLocalness) + 343
8  clang             0x0000000100cf778e
llvm::DIFactory::CreateSubprogram(llvm::DIDescriptor, llvm::StringRef,
llvm::StringRef, llvm::StringRef, llvm::DICompileUnit, unsigned int,
llvm::DIType, bool, bool, unsigned int, unsigned int, llvm::DIType) + 398
9  clang             0x000000010016ab3f
clang::CodeGen::CGDebugInfo::CollectCXXMemberFunctions(clang::CXXRecordDecl
const*, llvm::DICompileUnit, llvm::SmallVectorImpl<llvm::DIDescriptor>&,
llvm::DICompositeType&) + 959
10 clang             0x000000010016bf9b
clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*,
llvm::DICompileUnit) + 2027
11 clang             0x000000010016c11e
clang::CodeGen::CGDebugInfo::CreateType(clang::TagType const*,
llvm::DICompileUnit) + 110
12 clang             0x0000000100164a57
clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType,
llvm::DICompileUnit) + 1751
13 clang             0x0000000100164c9a
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType,
llvm::DICompileUnit) + 218
14 clang             0x000000010016c5e7
clang::CodeGen::CGDebugInfo::CreateType(clang::TypedefType const*,
llvm::DICompileUnit) + 87
15 clang             0x0000000100164a0a
clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType,
llvm::DICompileUnit) + 1674
16 clang             0x0000000100164c9a
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType,
llvm::DICompileUnit) + 218
17 clang             0x000000010016b352
clang::CodeGen::CGDebugInfo::CollectRecordFields(clang::RecordDecl const*,
llvm::DICompileUnit, llvm::SmallVectorImpl<llvm::DIDescriptor>&) + 466
18 clang             0x000000010016bb13
clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*,
llvm::DICompileUnit) + 867
19 clang             0x000000010016c11e
clang::CodeGen::CGDebugInfo::CreateType(clang::TagType const*,
llvm::DICompileUnit) + 110
20 clang             0x0000000100164a57
clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType,
llvm::DICompileUnit) + 1751
21 clang             0x0000000100164c9a
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType,
llvm::DICompileUnit) + 218
22 clang             0x00000001001671c7
clang::CodeGen::CGDebugInfo::EmitDeclare(clang::VarDecl const*, unsigned int,
llvm::Value*, llvm::IRBuilder<true, llvm::ConstantFolder,
llvm::IRBuilderDefaultInserter<true> >&) + 263
23 clang             0x0000000100172a23
clang::CodeGen::CodeGenFunction::EmitLocalBlockVarDecl(clang::VarDecl const&) +
3331
24 clang             0x00000001001752b0
clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) + 480
25 clang             0x00000001001fd0bb
clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) + 171
26 clang             0x00000001002038bb
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 171
27 clang             0x00000001002009c0
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 48
28 clang             0x00000001002035cb
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, llvm::Value*, bool) + 267
29 clang             0x00000001002038f7
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 231
30 clang             0x00000001002009c0
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 48
31 clang             0x0000000100203302
clang::CodeGen::CodeGenFunction::EmitIfStmt(clang::IfStmt const&) + 450
32 clang             0x0000000100200d14
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 900
33 clang             0x00000001002035cb
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, llvm::Value*, bool) + 267
34 clang             0x00000001002038f7
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 231
35 clang             0x00000001002009c0
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 48
36 clang             0x000000010021b035
clang::CodeGen::CodeGenFunction::GenerateCode(clang::CodeGen::GlobalDecl,
llvm::Function*) + 1989
37 clang             0x00000001002251bb
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::CodeGen::GlobalDecl)
+ 1067
38 clang             0x00000001002258eb
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::CodeGen::GlobalDecl)
+ 587
39 clang             0x0000000100225b8c
clang::CodeGen::CodeGenModule::EmitGlobal(clang::CodeGen::GlobalDecl) + 396
40 clang             0x00000001002261c2
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 290
41 clang             0x00000001002361bc (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 60
42 clang             0x000000010002f95e (anonymous
namespace)::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 158
43 clang             0x000000010033b605 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 277
44 clang             0x0000000100038f39
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 393
45 clang             0x000000010001dba0 cc1_main(char const**, char const**,
char const*, void*) + 2000
46 clang             0x0000000100020394 main + 2052
47 clang             0x000000010001b908 start + 52
48 clang             0x0000000000000035 start + 4294854497
Stack dump:
0.      Program arguments: /Users/pwo/src/llvm-obj/Release/bin/clang -cc1
-triple x86_64-apple-darwin10.0 -S -disable-free -main-file-name
RegisterInfoEmitter.cpp -pic-level 1 -mdisable-fp-elim -munwind-tables
-target-cpu core2 -g -resource-dir
/Users/pwo/src/llvm-obj/Release/lib/clang/1.1 -dependency-file
/Users/pwo/src/llvm-selfhost/utils/TableGen/Debug/RegisterInfoEmitter.d.tmp -MP
-MT /Users/pwo/src/llvm-selfhost/utils/TableGen/Debug/RegisterInfoEmitter.o -MT
/Users/pwo/src/llvm-selfhost/utils/TableGen/Debug/RegisterInfoEmitter.d
-D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
-I/Users/pwo/src/llvm-selfhost/include
-I/Users/pwo/src/llvm-selfhost/utils/TableGen -I/Users/pwo/src/llvm/include
-I/Users/pwo/src/llvm/utils/TableGen -Woverloaded-virtual -Wno-long-long -Wall
-W -Wno-unused-parameter -Wwrite-strings -pedantic -fmessage-length 80
-stack-protector 1 -fblocks -fexceptions -fno-common -fdiagnostics-show-option
-fcolor-diagnostics -o
/var/folders/HV/HVYbz+scFaWJdUHdYZJeAE+++TM/-Tmp-/cc-WxISS5.s -x c++
/Users/pwo/src/llvm/utils/TableGen/RegisterInfoEmitter.cpp 
1.      <eof> parser at end of file
2.      /Users/pwo/src/llvm/utils/TableGen/RegisterInfoEmitter.cpp:175:27: LLVM
IR generation of declaration 'llvm::RegisterInfoEmitter::run'
3.      /Users/pwo/src/llvm/utils/TableGen/RegisterInfoEmitter.cpp:175:27:
Generating code for declaration 'llvm::RegisterInfoEmitter::run'
4.      /Users/pwo/src/llvm/utils/TableGen/RegisterInfoEmitter.cpp:175:48: LLVM
IR generation of compound statement ('{}')
5.      /Users/pwo/src/llvm/utils/TableGen/RegisterInfoEmitter.cpp:235:33: LLVM
IR generation of compound statement ('{}')
clang: error: compiler command failed due to signal 11 (use -v to see
invocation)


-- 
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