[LLVMbugs] [Bug 8776] New: Clang crashes using properties

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Dec 12 06:18:47 PST 2010


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

           Summary: Clang crashes using properties
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: NetBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: js-llvm-bugzilla at webkeks.org
                CC: llvmbugs at cs.uiuc.edu


assertion "(i >= FTy->getNumParams() || FTy->getParamType(i) ==
Params[i]->getType()) && "Calling a function with a bad signature!"" failed:
file "Instructions.cpp", line 197, function "void
llvm::CallInst::init(llvm::Value*, llvm::Value* const*, unsigned int)"
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-netbsd5.1. -S -disable-free -main-file-name OFXMLParser.m
-pic-level 2 -mdisable-fp-elim -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -target-linker-version 2.16.1 -g -resource-dir
/usr/local/bin/../lib/clang/2.9 -D PIC -I .. -O2 -Wall -Werror
-fconstant-string-class OFConstantString -ferror-limit 19 -fmessage-length 80
-fblocks -fexceptions -fgnu-runtime -fno-constant-cfstrings -fno-common
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-18194a.s -x
objective-c OFXMLParser.m 
1.      OFXMLParser.m:934:1: current parser token '@'
2.      OFXMLParser.m:82:1: LLVM IR generation of declaration 'OFXMLParser'
clang: error: unable to execute command: Abort trap (core dumped)
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)

This is happening for a while now. Old revisions worked fine.

Line 934: @implementation OFObject (OFXMLParserDelegate)
Line 82: @implementation OFXMLParser

Complete source file:
https://webkeks.org/hg/objfw/file/9d1b67c9b17e/src/OFXMLParser.m

Preprocessed file:
webkeks:src$ clang -E -I.. OFXMLParser.m | sprunge 
 http://sprunge.us/cDhE

Same happens in another file using properties:

assertion "(i >= FTy->getNumParams() || FTy->getParamType(i) ==
Params[i]->getType()) && "Calling a function with a bad signature!"" failed:
file "Instructions.cpp", line 197, function "void
llvm::CallInst::init(llvm::Value*, llvm::Value* const*, unsigned int)"
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-netbsd5.1. -S -disable-free -main-file-name PropertiesTests.m
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.16.1 -g
-resource-dir /usr/local/bin/../lib/clang/2.9 -D STDOUT -I ../src -I .. -O2
-Wall -Werror -fconstant-string-class OFConstantString -ferror-limit 19
-fmessage-length 80 -fblocks -fexceptions -fgnu-runtime -fno-constant-cfstrings
-fno-common -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-18868a.s
-x objective-c PropertiesTests.m 
1.      PropertiesTests.m:44:1: current parser token '@'
2.      PropertiesTests.m:31:1: LLVM IR generation of declaration
'PropertiesTest'
clang: error: unable to execute command: Abort trap (core dumped)
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)

Line 44: @implementation TestsAppDelegate (PropertiesTests)
Line 31: @implementation PropertiesTest

Complete source file:
https://webkeks.org/hg/objfw/file/9d1b67c9b17e/tests/PropertiesTests.m

Proprocessed file:
webkeks:tests$ clang -E -I.. -I../src PropertiesTests.m | sprunge
 http://sprunge.us/PJOc

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