[LLVMbugs] [Bug 12629] New: clang++ crash
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Apr 23 03:09:54 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12629
Bug #: 12629
Summary: clang++ crash
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: abominable-snowman at yandex.ru
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 8429
--> http://llvm.org/bugs/attachment.cgi?id=8429
diagnostic msg
clang++ -pthread -fexceptions -fPIC -O2 -fuse-cxa-atexit -std=gnu++0x
-fvisibility=hidden -D_GNU_SOURCE -I../stlport -c -o obj/clang/so/reachable.o
reachable.cc
clang:
/export/morpork/source-lab/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Type.h:2873:
bool clang::FunctionProtoType::isNothrow(clang::ASTContext &) const: Assertion
`EST != EST_Delayed && EST != EST_Uninstantiated' failed.
0 clang 0x000000000188001f
1 clang 0x0000000001880534
2 libpthread.so.0 0x00007fd54e3318c0
3 libc.so.6 0x00007fd54d634e15 gsignal + 53
4 libc.so.6 0x00007fd54d636645 abort + 389
5 libc.so.6 0x00007fd54d62d5f5 __assert_fail + 245
6 clang 0x00000000007498c9
clang::CodeGen::CodeGenModule::ConstructAttributeList(clang::CodeGen::CGFunctionInfo
const&, clang::Decl const*, llvm::SmallVector<llvm::AttributeWithIndex, 8u>&,
unsigned int&) + 3001
7 clang 0x00000000007119f6
clang::CodeGen::CodeGenModule::SetLLVMFunctionAttributes(clang::Decl const*,
clang::CodeGen::CGFunctionInfo const&, llvm::Function*) + 70
8 clang 0x000000000071214b
clang::CodeGen::CodeGenModule::SetFunctionAttributes(clang::GlobalDecl,
llvm::Function*, bool) + 139
9 clang 0x000000000071319a
clang::CodeGen::CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef,
llvm::Type*, clang::GlobalDecl, bool, llvm::Attributes) + 506
10 clang 0x0000000000715f82
clang::CodeGen::CodeGenModule::GetAddrOfFunction(clang::GlobalDecl,
llvm::Type*, bool) + 114
11 clang 0x000000000078b11b
12 clang 0x00000000007830b0
clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(clang::DeclRefExpr const*) +
448
13 clang 0x000000000077f732
clang::CodeGen::CodeGenFunction::EmitLValue(clang::Expr const*) + 626
14 clang 0x00000000007ba779
15 clang 0x00000000007b2b02
16 clang 0x00000000007acdbd
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 93
17 clang 0x000000000078bef2
clang::CodeGen::CodeGenFunction::EmitCallExpr(clang::CallExpr const*,
clang::CodeGen::ReturnValueSlot) + 578
18 clang 0x00000000007ba0c3
19 clang 0x00000000007b2b2d
20 clang 0x00000000007bbba2
21 clang 0x00000000007b48cc
22 clang 0x00000000007acdbd
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 93
23 clang 0x000000000080b8e4
clang::CodeGen::CodeGenFunction::EmitReturnStmt(clang::ReturnStmt const&) + 516
24 clang 0x0000000000809f3d
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 733
25 clang 0x000000000080f9ac
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 236
26 clang 0x000000000080a279
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 185
27 clang 0x0000000000809c85
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 37
28 clang 0x000000000081a1ce
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 862
29 clang 0x00000000007153a0
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 2608
30 clang 0x00000000007126e0
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 432
31 clang 0x0000000000710132
clang::CodeGen::CodeGenModule::EmitDeferred() + 210
32 clang 0x000000000070ff5d clang::CodeGen::CodeGenModule::Release()
+ 13
33 clang 0x000000000070caac
34 clang 0x000000000083a155 clang::ParseAST(clang::Sema&, bool, bool)
+ 389
35 clang 0x000000000070bd38 clang::CodeGenAction::ExecuteAction() +
184
36 clang 0x00000000005dd10d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 973
37 clang 0x00000000005c557b
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3307
38 clang 0x00000000005ba3ab cc1_main(char const**, char const**, char
const*, void*) + 603
39 clang 0x00000000005c1c3a main + 3482
40 libc.so.6 0x00007fd54d61fc7d __libc_start_main + 253
41 clang 0x00000000005ba089
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name reachable.cc
-pic-level 2 -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu
x86-64 -target-linker-version 2.20.1.20100303 -momit-leaf-frame-pointer
-coverage-file obj/clang/so/reachable.o -resource-dir
/usr/local/bin/../lib/clang/3.1 -D _GNU_SOURCE -I ../stlport
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3
-internal-isystem
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/x86_64-unknown-linux-gnu
-internal-isystem
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/local/bin/../lib/clang/3.1/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O2 -std=gnu++0x -fdeprecated-macro
-fdebug-compilation-dir /export/home/ptr/STLport.lab/STLport/src -ferror-limit
19 -fmessage-length 110 -fvisibility hidden -pthread -mstackrealign
-fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
obj/clang/so/reachable.o -x c++ reachable.cc
1. <eof> parser at end of file
2. Per-file LLVM IR generation
3. ../stlport/stl/_alloc.h:988:15: Generating code for declaration
'stlp_std::allocator<stlp_std::priv::_Slist_node<stlp_std::pair<void *const,
unsigned long> > >::max_size'
4. ../stlport/stl/_alloc.h:989:7: LLVM IR generation of compound statement
('{}')
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/reachable-Xr9hhf.ii
clang: note: diagnostic msg: /tmp/reachable-Xr9hhf.sh
make: *** [obj/clang/so/reachable.o] Error 254
--
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