This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/34483] wo_prof_two_strs.c:56: internal compiler error: in find_new_var_of_type, at ipa-struct-reorg.c:605
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2008 14:09:42 -0000
- Subject: [Bug middle-end/34483] wo_prof_two_strs.c:56: internal compiler error: in find_new_var_of_type, at ipa-struct-reorg.c:605
- References: <bug-34483-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #40 from dominiq at lps dot ens dot fr 2008-01-21 14:09 -------
> Why are you running wo_prof_mult_field_peeling.c with profiling?
My best guess is because I have reused some previous command line(s) with it
(from gcc.dg/struct/w_prof_global_array.c for instance) without thinking about
it.
Anyway, I have run all the tests in gcc.dg/struct failing with
-m64 with -O3 -fipa-struct-reorg -fwhole-program -combine -fipa-type-escape
-m64
and they all crash with "Segmentation fault".
The backtrace for gcc.dg/struct/wo_prof_mult_field_peeling.c is:
Process: a.out [41283]
Path: a.out
Identifier: a.out
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: tcsh [11101]
Date/Time: 2008-01-21 15:03:26.935 +0100
OS Version: Mac OS X 10.5.1 (9B18)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000200a70
Crashed Thread: 0
Thread 0 Crashed:
0 a.out 0x0000000100000f40 main + 64
1 a.out 0x0000000100000ed4 start + 52
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000200a70 rbx: 0x0000000000000000 rcx: 0x0000000000000000
rdx: 0x0000000000000000
rdi: 0x00000001002fc095 rsi: 0x0000000000000000 rbp: 0x00007fff5fbfec10
rsp: 0x00007fff5fbfec10
r8: 0x00000001002fe01a r9: 0x0000000001000000 r10: 0x0000000003000001
r11: 0x00007fff8416e474
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000
r15: 0x0000000000000000
rip: 0x0000000100000f40 rfl: 0x0000000000010246 cr2: 0x0000000000200a70
Binary Images:
0x100000000 - 0x100000ff7 +a.out ??? (???)
/Volumes/MacBook/Users/dominiq/Documents/Fortran/g95bench/win/f90/bug/a.out
0x100003000 - 0x1000c9fef +libgfortran.3.dylib ??? (???)
<ac0635c6511429acc90b895479c2cbb0>
/opt/gcc/gcc4.3w/lib/x86_64/libgfortran.3.dylib
0x10010d000 - 0x100120ff1 +libgcc_s.1.dylib ??? (???)
<e9505452e93d052d01993982f18fa20a> /opt/gcc/gcc4.3w/lib/libgcc_s.1.dylib
0x7fff5fc00000 - 0x7fff5fc2e3a3 dyld 95.3 (???)
<cd99d065ba4917450dca6958a854c594> /usr/lib/dyld
0x7fff819a9000 - 0x7fff819b5ff1 libgcc_s.1.dylib ??? (???)
<6fc905606335f261db4da9529c7e2711> /usr/lib/libgcc_s.1.dylib
0x7fff83fcd000 - 0x7fff83fcffff libmathCommon.A.dylib ??? (???)
/usr/lib/system/libmathCommon.A.dylib
0x7fff8416c000 - 0x7fff842ebfeb libSystem.B.dylib ??? (???)
<a9297f52cb1431e26cd3ffd4b9ca7615> /usr/lib/libSystem.B.dylib
0x7fffffe00000 - 0x7fffffe01780 libSystem.B.dylib ??? (???)
/usr/lib/libSystem.B.dylib
for gcc.dg/struct/wo_prof_two_strs.c
Process: a.out [41292]
Path: a.out
Identifier: a.out
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: tcsh [11101]
Date/Time: 2008-01-21 15:04:45.522 +0100
OS Version: Mac OS X 10.5.1 (9B18)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000809600
Crashed Thread: 0
Thread 0 Crashed:
0 a.out 0x0000000100000ed0 main + 256
1 a.out 0x0000000100000da4 start + 52
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x000000000080d600 rbx: 0x0000000000000fa0 rcx: 0x0000000100ff80d6
rdx: 0x0000000000000000
rdi: 0x0000000000809600 rsi: 0x00000000000003e8 rbp: 0x00007fff5fbfec10
rsp: 0x00007fff5fbfebf0
r8: 0x00000000034d2346 r9: 0x0000000000000000 r10: 0x0000000100002140
r11: 0x00007fff8416e474
r12: 0x000000010080a600 r13: 0x000000000080c600 r14: 0x0000000000000000
r15: 0x0000000000000000
rip: 0x0000000100000ed0 rfl: 0x0000000000010246 cr2: 0x0000000000809600
Binary Images:
0x100000000 - 0x100000fff +a.out ??? (???)
/Volumes/MacBook/Users/dominiq/Documents/Fortran/g95bench/win/f90/bug/a.out
0x100003000 - 0x1000c9fef +libgfortran.3.dylib ??? (???)
<ac0635c6511429acc90b895479c2cbb0>
/opt/gcc/gcc4.3w/lib/x86_64/libgfortran.3.dylib
0x10010d000 - 0x100120ff1 +libgcc_s.1.dylib ??? (???)
<e9505452e93d052d01993982f18fa20a> /opt/gcc/gcc4.3w/lib/libgcc_s.1.dylib
0x7fff5fc00000 - 0x7fff5fc2e3a3 dyld 95.3 (???)
<cd99d065ba4917450dca6958a854c594> /usr/lib/dyld
0x7fff819a9000 - 0x7fff819b5ff1 libgcc_s.1.dylib ??? (???)
<6fc905606335f261db4da9529c7e2711> /usr/lib/libgcc_s.1.dylib
0x7fff83fcd000 - 0x7fff83fcffff libmathCommon.A.dylib ??? (???)
/usr/lib/system/libmathCommon.A.dylib
0x7fff8416c000 - 0x7fff842ebfeb libSystem.B.dylib ??? (???)
<a9297f52cb1431e26cd3ffd4b9ca7615> /usr/lib/libSystem.B.dylib
0x7fffffe00000 - 0x7fffffe01780 libSystem.B.dylib ??? (???)
/usr/lib/libSystem.B.dylib
and so on (I can give similar ones for the other cases). Note that if I remove
'-fipa-type-escape' the segfaults disappear (with unpatched rev. 131689).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34483