[LLVMbugs] [Bug 10208] New: [C] Abort during compilation
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jun 27 16:13:29 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10208
Summary: [C] Abort during compilation
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pipping at exherbo.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6794)
--> (http://llvm.org/bugs/attachment.cgi?id=6794)
test case
pipping at bogus /home/pipping % clang -c foo.c
clang: CGExpr.cpp:794: clang::CodeGen::RValue
clang::CodeGen::CodeGenFunction::EmitLoadOfLValue(clang::CodeGen::LValue):
Assertion `!LV.getType()->isFunctionType()' failed.
0 libLLVM-3.0svn.so 0x00007f86740ffeff
1 libLLVM-3.0svn.so 0x00007f86741002f1
2 libpthread.so.0 0x00007f86730ffff0
3 libc.so.6 0x00007f867241d605 gsignal + 53
4 libc.so.6 0x00007f867241e905 abort + 389
5 libc.so.6 0x00007f8672416235 __assert_fail + 245
6 clang 0x0000000000bd0744
clang::CodeGen::CodeGenFunction::EmitLoadOfLValue(clang::CodeGen::LValue) +
1044
7 clang 0x0000000000beee34
8 clang 0x0000000000beeeb8
9 clang 0x0000000000bf4403
10 clang 0x0000000000bf1d45
11 clang 0x0000000000bed892
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 98
12 clang 0x0000000000bca3be
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 62
13 clang 0x0000000000bca35b
clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) + 59
14 clang 0x0000000000bf6f99
15 clang 0x0000000000bf75a3
16 clang 0x0000000000bf1c95
17 clang 0x0000000000bed892
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 98
18 clang 0x0000000000bca3be
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 62
19 clang 0x0000000000bca35b
clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) + 59
20 clang 0x0000000000c3283a
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 266
21 clang 0x0000000000c35ddb
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 203
22 clang 0x0000000000c32cf8
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 168
23 clang 0x0000000000c32750
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 32
24 clang 0x0000000000c55635
clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&)
+ 69
25 clang 0x0000000000c55862
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 514
26 clang 0x0000000000b6f625
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 645
27 clang 0x0000000000b6e471
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 385
28 clang 0x0000000000b6eff6
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 470
29 clang 0x0000000000b71ce9
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 233
30 clang 0x0000000000b6a0d3
31 clang 0x0000000000b699c9
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 121
32 clang 0x0000000000c6aa64 clang::ParseAST(clang::Sema&, bool) +
292
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 0x00007f8672409c7d __libc_start_main + 253
40 clang 0x0000000000a3c7f9
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -main-file-name foo.c -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
-coverage-file foo.o -resource-dir /usr/bin/../lib/clang/3.0 -ferror-limit 19
-fmessage-length 118 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o foo.o -x c foo.c
1. <eof> parser at end of file
2. foo.c:4:1: LLVM IR generation of declaration 'main'
3. foo.c:4:1: Generating code for declaration 'main'
4. foo.c:5:1: LLVM IR generation of compound statement ('{}')
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang 3.0 git-6594942e98e25640f226aba622eb76bcaf0a521c
--
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