[LLVMbugs] [Bug 14150] New: crash while compiling

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 23 03:49:24 PDT 2012


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

             Bug #: 14150
           Summary: crash while compiling
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: andreas at fink.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9402
  --> http://llvm.org/bugs/attachment.cgi?id=9402
CAAnimationGroup-ovlPW8.m

[CC] build/CAAnimationGroup.o
clang: /Users/afink/development/svn/llvm/include/llvm/Support/Casting.h:208:
typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X =
clang::ObjCImplementationDecl, Y = const clang::Decl*]: Assertion `isa<X>(Val)
&& "cast<Ty>() argument of incompatible type!"' failed.
0  clang           0x0000000002bcb396
1  clang           0x0000000002bcb06b
2  libpthread.so.0 0x000000356920f500
3  libc.so.6       0x0000003568e328a5 gsignal + 53
4  libc.so.6       0x0000003568e34085 abort + 373
5  libc.so.6       0x0000003568e2ba1e
6  libc.so.6       0x0000003568e2bae0 __assert_perror_fail + 0
7  clang           0x000000000151cb0d
llvm::cast_retty<clang::ObjCImplementationDecl, clang::Decl const*>::ret_type
llvm::cast<clang::ObjCImplementationDecl, clang::Decl const*>(clang::Decl
const* const&) + 62
8  clang           0x0000000001ac4947
clang::ASTContext::getObjCEncodingForPropertyDecl(clang::ObjCPropertyDecl
const*, clang::Decl const*, std::string&) const + 283
9  clang           0x0000000000f8a295
10 clang           0x0000000000f92506
11 clang           0x0000000000e66bb4
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 710
12 clang           0x0000000000e58d2d
13 clang           0x0000000000e57765
14 clang           0x0000000001012522 clang::ParseAST(clang::Sema&, bool, bool)
+ 568
15 clang           0x0000000000c4bdc6 clang::ASTFrontendAction::ExecuteAction()
+ 298
16 clang           0x0000000000e56bb3 clang::CodeGenAction::ExecuteAction() +
1223
17 clang           0x0000000000c4b9fa clang::FrontendAction::Execute() + 252
18 clang           0x0000000000c2235d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 717
19 clang           0x0000000000bf283a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1036
20 clang           0x0000000000be069d cc1_main(char const**, char const**, char
const*, void*) + 990
21 clang           0x0000000000bed989 main + 484
22 libc.so.6       0x0000003568e1ecdd __libc_start_main + 253
23 clang           0x0000000000bdf8d9
Stack dump:
0.    Program arguments: /usr/bin/clang -cc1 -triple x86_64-unknown-linux-gnu
-emit-obj -disable-free -main-file-name CAAnimationGroup.m -pic-level 2
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu
x86-64 -target-linker-version 2.20.51.0.2 -momit-leaf-frame-pointer -g
-coverage-file
/Users/afink/development/svn/cocotron-linux/linux/AppKit/build/CAAnimationGroup.o
-resource-dir /usr/bin/../lib/clang/3.2 -D OBJC_EXPORT= -D LINUX -D _GNU_SOURCE
-D __LITTLE_ENDIAN__ -D GCC_RUNTIME_3 -D _FORTIFY_SOURCE=1 -I
/usr/include/freetype2 -I /usr/include/cairo -I /usr/include/fontconfig -I
include -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/local/include -internal-isystem /usr/bin/../lib/clang/3.2/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-Wall -Wno-unknown-pragmas -std=gnu99 -fdebug-compilation-dir
/Users/afink/development/svn/cocotron-linux/linux/AppKit
-fconstant-string-class NSConstantString -ferror-limit 19 -fmessage-length 145
-mstackrealign -fblocks -fobjc-runtime=gnustep
-fobjc-dispatch-method=non-legacy -fobjc-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o build/CAAnimationGroup.o -x
objective-c src/CAAnimationGroup.m 
1.    include/QuartzCore/CAAction.h:3:1: current parser token '@'
2.    include/QuartzCore/CAMediaTiming.h:4:11: LLVM IR generation of
declaration 'CAMediaTiming'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.2 (trunk 166475)
Target: x86_64-unknown-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/CAAnimationGroup-ovlPW8.m
clang: note: diagnostic msg: /tmp/CAAnimationGroup-ovlPW8.sh
clang: note: diagnostic msg: 

********************
make: *** [build/CAAnimationGroup.o] Error 254








 "/usr/bin/clang" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free
-main-file-name CAAnimationGroup.m -pic-level 2 -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.20.51.0.2 -momit-leaf-frame-pointer -g -D "OBJC_EXPORT=" -D "LINUX" -D
"_GNU_SOURCE" -D "__LITTLE_ENDIAN__" -D "GCC_RUNTIME_3" -D "_FORTIFY_SOURCE=1"
-O2 -Wall -Wno-unknown-pragmas -std=gnu99 -fconstant-string-class
NSConstantString -ferror-limit 19 -fmessage-length 145 -mstackrealign -fblocks
-fobjc-runtime=gnustep -fobjc-dispatch-method=non-legacy -fobjc-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -x objective-c
CAAnimationGroup-ovlPW8.m

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