[LLVMbugs] [Bug 14317] New: Clang crashes during Blocks rewrite (-rewrite-objc)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Nov 11 10:35:47 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14317
Bug #: 14317
Summary: Clang crashes during Blocks rewrite (-rewrite-objc)
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bugzilla-clang at sogetthis.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 9525
--> http://llvm.org/bugs/attachment.cgi?id=9525
Preprocessed source as requested in Clang debug output
I'm trying to use Clang's blocks support on Linux and therefore I got the pure
BlocksRuntime [https://github.com/mackyle/blocksruntime/] and compiled it. Next
I learned that blocks are rewritten into normal C++ by Clang and that
"-rewrite-objc" will show the rewritten code. This worked fine until I tried it
with one of the test cases
[https://github.com/mackyle/blocksruntime/blob/master/BlocksRuntime/tests/recursive-block.c].
Clang crashes on this one:
0 clang 0x099ac558
Stack dump:
0. Program arguments: /home/me/Compiler/llvm/bin/bin/clang -cc1 -triple
i386-pc-linux-gnu -rewrite-objc -disable-free -disable-llvm-verifier
-main-file-name recursive-block.c -mrelocation-model static -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4
-target-linker-version 2.21.0.20110327 -momit-leaf-frame-pointer -resource-dir
/home/me/Compiler/llvm/bin/bin/../lib/clang/3.2 -fdebug-compilation-dir
/home/me/Compiler/blocksruntime/BlocksRuntime/tests -ferror-limit 19
-fmessage-length 143 -mstackrealign -fblocks -fobjc-runtime=macosx
-fno-objc-infer-related-result-type -fdiagnostics-show-option
-fcolor-diagnostics -o recursive-block.cpp -x objective-c++-cpp-output
/tmp/recursive-block-HLHu6R.i
1. recursive-block.c:46:1: current parser token 'int'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.2 (trunk 167691)
Target: i386-pc-linux-gnu
Thread model: posix
--
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