[LLVMbugs] [Bug 15526] New: Crash of the compiler on an Objective-C file

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 15 12:42:16 PDT 2013


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

            Bug ID: 15526
           Summary: Crash of the compiler on an Objective-C file
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ldm at thorgal.homelinux.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10183
  --> http://llvm.org/bugs/attachment.cgi?id=10183&action=edit
zip of the .m and .sh generated by clang.

Simple source source that used to compile fine on clang 3.2
Crashes on clang 3.3
This is a pure Objective-C 2.0 file. 

ldm at ubuntu:~/work/platform/Clo/objcp$ make
compiling m CPIntVarI.m
clang: CGValue.h:231: llvm::Value* clang::CodeGen::LValue::getAddress() const:
Assertion `isSimple()' failed.
0  clang     0x0a09296f llvm::sys::PrintStackTrace(_IO_FILE*) + 47
1  clang     0x0a092bcf
2  clang     0x0a091d94
3            0x40022400 __kernel_sigreturn + 0
4            0x40022424 __kernel_vsyscall + 16
5  libc.so.6 0x401b61df gsignal + 79
6  libc.so.6 0x401b9825 abort + 373
7  libc.so.6 0x401af085
8  libc.so.6 0x401af137
9  clang     0x0826eb5d
10 clang     0x0864fb9e
11 clang     0x0826f8c9
12 clang     0x0864db7a
13 clang     0x086522ec
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 108
14 clang     0x085fd9fd
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 301
15 clang     0x085fdc0a
clang::CodeGen::CodeGenFunction::EmitAnyExprToTemp(clang::Expr const*) + 154
16 clang     0x085b2d9e
clang::CodeGen::CodeGenFunction::EmitCallArg(clang::CodeGen::CallArgList&,
clang::Expr const*, clang::QualType) + 2062
17 clang     0x08663152
clang::CodeGen::CodeGenFunction::EmitObjCMessageExpr(clang::ObjCMessageExpr
const*, clang::CodeGen::ReturnValueSlot) + 754
18 clang     0x0864e321
19 clang     0x086522ec
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 108
20 clang     0x085fd9fd
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 301
21 clang     0x086139a0
clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) + 160
22 clang     0x086bc24f clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt
const*) + 831
23 clang     0x086bf912
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot) + 98
24 clang     0x086bfbf6
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 310
25 clang     0x086bfdc0
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 320
26 clang     0x086bbf4a clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt
const*) + 58
27 clang     0x08656ad9
clang::CodeGen::CodeGenFunction::GenerateObjCMethod(clang::ObjCMethodDecl
const*) + 89
28 clang     0x08565eef
29 clang     0x08531f07
30 clang     0x08531410
31 clang     0x086dd8c2 clang::ParseAST(clang::Sema&, bool, bool) + 530
32 clang     0x0839c98f clang::ASTFrontendAction::ExecuteAction() + 111
33 clang     0x0852fc52 clang::CodeGenAction::ExecuteAction() + 50
34 clang     0x0839d3a8 clang::FrontendAction::Execute() + 248
35 clang     0x0837f71d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 301
36 clang     0x083660d8
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1576
37 clang     0x0835e5a0 cc1_main(char const**, char const**, char const*,
void*) + 1264
38 clang     0x08345af9 main + 809
39 libc.so.6 0x401a14d3 __libc_start_main + 243
40 clang     0x0835df3d
Stack dump:
0.    Program arguments: /opt/kitkit-1.0-rc1/bin/clang -cc1 -triple
i386-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
CPIntVarI.m -mrelocation-model static -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -target-cpu pentium4 -target-linker-version
2.22 -momit-leaf-frame-pointer -coverage-file
/home/ldm/work/platform/Clo/objcp/CPIntVarI.o -resource-dir
/opt/kitkit-1.0-rc1/bin/../lib/clang/3.3 -I /opt/kitkit-1.0-rc1/include -I . -I
.. -I ../CPUKernel -internal-isystem /usr/local/include -internal-isystem
/opt/kitkit-1.0-rc1/bin/../lib/clang/3.3/include -internal-externc-isystem
/usr/include/i386-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -fdebug-compilation-dir
/home/ldm/work/platform/Clo/objcp -ferror-limit 19 -fmessage-length 146
-mstackrealign -fblocks -fobjc-runtime=gnustep -fobjc-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o CPIntVarI.o -x objective-c CPIntVarI.m 
1.    CPIntVarI.m:685:1: current parser token '@'
2.    CPIntVarI.m:66:1: LLVM IR generation of declaration
'CPIntVarI::initCPIntVarCore:low:up:'
3.    CPIntVarI.m:657:1: LLVM IR generation of compound statement ('{}')
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 
Target: i386-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/CPIntVarI-V6w7m0.m
clang: note: diagnostic msg: /tmp/CPIntVarI-V6w7m0.sh
clang: note: diagnostic msg: 

********************
make: *** [CPIntVarI.o] Error 254
ldm at ubuntu:~/work/platform/Clo/objcp$ zip crash.zip /tmp/CPIntVarI-V6w7m0.*
  adding: tmp/CPIntVarI-V6w7m0.m (deflated 81%)
  adding: tmp/CPIntVarI-V6w7m0.sh (deflated 38%)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130315/66c56136/attachment.html>


More information about the llvm-bugs mailing list