[LLVMbugs] [Bug 10205] New: clang++ aborts while compiling
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jun 27 13:05:53 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10205
Summary: clang++ aborts while compiling
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pipping at exherbo.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=6790)
--> (http://llvm.org/bugs/attachment.cgi?id=6790)
test case
I've tried to compile the file eigen/test/geometry.cpp from eigen[1] 2.0.15
It fails in the following way (with -O0 -emit-llvm):
<<<FAIL
unexpected type in nested name specifier!
UNREACHABLE executed at ItaniumMangle.cpp:836!
0 libLLVM-3.0svn.so 0x00007fd3f0cefeff
1 libLLVM-3.0svn.so 0x00007fd3f0cf02f1
2 libpthread.so.0 0x00007fd3efcefff0
3 libc.so.6 0x00007fd3ef00d605 gsignal + 53
4 libc.so.6 0x00007fd3ef00e905 abort + 389
5 libLLVM-3.0svn.so 0x00007fd3f0cdf35b
6 clang 0x00000000010f7a0c
7 clang 0x00000000010f74cd
8 clang 0x00000000010f67c7
9 clang 0x00000000010f57e4
10 clang 0x00000000010f5698
11 clang 0x00000000010f562d
12 clang 0x00000000010f8676
13 clang 0x00000000010f8497
14 clang 0x00000000010f525b
15 clang 0x00000000010f42d4
16 clang 0x00000000010f4081
17 clang 0x00000000010f714f
18 clang 0x00000000010f70e9
19 clang 0x00000000010f6ff6
20 clang 0x00000000010f2765
21 clang 0x0000000000b6d9d5
clang::CodeGen::CodeGenModule::getMangledName(clang::GlobalDecl) + 469
22 clang 0x0000000000b6f07e
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 606
23 clang 0x0000000000b71ce9
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 233
24 clang 0x0000000000b6a0d3
25 clang 0x0000000000b699c9
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 121
26 clang 0x0000000000e6c9dd
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1725
27 clang 0x0000000000e6d4a4
clang::Sema::PerformPendingInstantiations(bool) + 388
28 clang 0x0000000000e6ca0f
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1775
29 clang 0x0000000000e6d4a4
clang::Sema::PerformPendingInstantiations(bool) + 388
30 clang 0x0000000000cb193f
clang::Sema::ActOnEndOfTranslationUnit() + 239
31 clang 0x0000000000c81376
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 150
32 clang 0x0000000000c6aa6f clang::ParseAST(clang::Sema&, bool) +
303
33 clang 0x0000000000b6907f clang::CodeGenAction::ExecuteAction() +
623
34 clang 0x0000000000a8d2f7 clang::FrontendAction::Execute() + 231
35 clang 0x0000000000a7ad2a
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 506
36 clang 0x0000000000a46910
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 640
37 clang 0x0000000000a3cb47 cc1_main(char const**, char const**,
char const*, void*) + 647
38 clang 0x0000000000a43070 main + 368
39 libc.so.6 0x00007fd3eeff9c7d __libc_start_main + 253
40 clang 0x0000000000a3c7f9
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-llvm-bc -disable-free -main-file-name geometry.ii -mrelocation-model
static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -target-linker-version 2.21 -momit-leaf-frame-pointer
-resource-dir /usr/bin/../lib/clang/3.0 -O0 -fdeprecated-macro -ferror-limit 19
-fmessage-length 118 -fgnu-runtime -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-ByiyOR.o -x
c++-cpp-output geometry.ii
1. <eof> parser at end of file
2.
/var/tmp/paludis/build/sci-libs-eigen-2.0.15/work/eigen/test/geometry.cpp:30:32:
instantiating function definition 'geometry'
3.
/var/tmp/paludis/build/sci-libs-eigen-2.0.15/work/eigen/Eigen/src/Geometry/Transform.h:184:3:
instantiating function definition 'operator*'
4.
/var/tmp/paludis/build/sci-libs-eigen-2.0.15/work/eigen/Eigen/src/Geometry/Transform.h:184:3:
LLVM IR generation of declaration 'Eigen::Transform<float, 3>::operator*'
5.
/var/tmp/paludis/build/sci-libs-eigen-2.0.15/work/eigen/Eigen/src/Geometry/Transform.h:184:3:
Mangling declaration 'Eigen::Transform<float, 3>::operator*'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
<<<FAIL
I'm attaching the output of -save-temps. Since it is 1.3M in size every
invocation of clang takes very long and I've not yet delta-reduced it. I've
also only attached an xz-compressed version.
I'm on clang 3.0 git-6594942e98e25640f226aba622eb76bcaf0a521c
[1] http://eigen.tuxfamily.org/
--
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