[LLVMbugs] [Bug 7350] New: Crash compiling ObjC class with struct ivar containing anonymous union

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 10 14:05:56 PDT 2010


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

           Summary: Crash compiling ObjC class with struct ivar containing
                    anonymous union
           Product: clang
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: bugzilla.llvm.j at ayton.se
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=5010)
 --> (http://llvm.org/bugs/attachment.cgi?id=5010)
Test case

Using apple-clang 1.0.2, whatever that is in real version numbers, I get a
consistent crash when compiling an Objective-C class which has an instance
variable which is a struct containing an anonymous union. (See attachment.)

Output:
0   clang-cc          0x0000000100a8f592
1   clang-cc          0x0000000100a8fc06
2   libSystem.B.dylib 0x00007fff82d1680a _sigtramp + 26
3   libSystem.B.dylib 0x0000000100d26af0 _sigtramp + 2113995520
4   clang-cc          0x0000000100316b47
5   clang-cc          0x00000001000d38c6
6   clang-cc          0x00000001000d4243
7   clang-cc          0x00000001000d3868
8   clang-cc          0x00000001000dbc95
9   clang-cc          0x00000001000f4033
10  clang-cc          0x00000001000f4b12
11  clang-cc          0x000000010010a026
12  clang-cc          0x000000010011351c
13  clang-cc          0x00000001000226fa
14  clang-cc          0x00000001001d5585
15  clang-cc          0x00000001000674cc
16  clang-cc          0x000000010006ade9
17  clang-cc          0x0000000100015a78
Stack dump:
0.    Program arguments: /Developer/usr/bin/../libexec/clang-cc -triple
x86_64-apple-darwin10 -S -disable-free -main-file-name
anon_union_struct_objc_class_crash.m --relocation-model pic -pic-level=1
--disable-fp-elim --unwind-tables=1 --mcpu=core2 --fmath-errno=0
-mmacosx-version-min=10.5 -g -isysroot /Developer/SDKs/MacOSX10.6.sdk -iquote
<foo>-generated-files.hmap -iquote <foo>-project-headers.hmap -include-pch
/var/folders/VF/VFzLnnQ9GHSra88EddQRXE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/<foo>_Prefix-amoyqdgxngwegvaqnzimlpkpvmmv/<foo>_Prefix.pch.pth
-I<foo>-own-target-headers.hmap -I<foo>-all-target-headers.hmap
-F<foo>/build/Debug -I<foo>/Debug/include -I<foo>.build/DerivedSources/x86_64
-I<foo>.build/DerivedSources -O0 -Wno-trigraphs -Wreturn-type -Wunused-variable
-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=gnu99
-fmessage-length=0 -fobjc-gc-only -fdiagnostics-print-source-range-info
-fpascal-strings -fdiagnostics-show-option -o
/var/folders/VF/VFzLnnQ9GHSra88EddQRXE+++TI/-Tmp-/cc-F9hCmK.s -x objective-c
/<path>/anon_union_struct_objc_class_crash.m 
1.    <eof> parser at end of file
2.    <path>/anon_union_struct_objc_class_crash.m:17:1: LLVM IR generation of
declaration 'AClass'

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