http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44776
Dave Korn <davek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |davek at gcc dot gnu.org --- Comment #10 from Dave Korn <davek at gcc dot gnu.org> 2010-10-18 17:06:11 UTC --- Also fails on i686-pc-cygwin since at least r.161958 (still fails at r.165450) FAIL: gcc.dg/matrix/transpose-3.c execution, -fprofile-use -fipa-matrix-reorg -fdump-ipa-matrix-reorg -O3 -fwhole-program In this case, it turns out to be a double free: $ /gnu/gcc/obj-lto/gcc/xgcc -B/gnu/gcc/obj-lto/gcc/ /gnu/gcc/gcc/gcc/testsuite/ gcc.dg/matrix/transpose-3.c -fprofile-use -fipa-matrix-reorg -fdump-ipa-matrix- reorg -O3 -fwhole-program -o ./transpose-3.x02 /gnu/gcc/gcc/gcc/testsuite/gcc.dg/matrix/transpose-3.c: In function 'mem_init': /gnu/gcc/gcc/gcc/testsuite/gcc.dg/matrix/transpose-3.c:96:1: note: file /gnu/gcc /obj-lto/gcc/testsuite/transpose-3.gcda not found, execution counts estimated $ gdb ./transpose-3.x02 GNU gdb 6.8.0.20080328-cvs (cygwin-special) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-cygwin"... (gdb) b main Breakpoint 1 at 0x401176 (gdb) r Starting program: /gnu/gcc/obj-lto/gcc/testsuite/transpose-3.x02 [New thread 2236.0x184] [New thread 2236.0xc6c] Breakpoint 1, 0x00401176 in main () (gdb) b free Breakpoint 2 at 0x610725e0: file /gnu/winsup/src.clean/winsup/cygwin/malloc_wrap per.cc, line 41. (gdb) c Continuing. acc to dim2 acc to dim2 acc to dim2 acc to dim2 acc to dim2 acc to dim2 acc to d im2 acc to dim2 acc to dim2 acc to dim2 acc to dim2 acc to dim2 acc to dim2 acc to dim2 acc to dim2 acc to dim2 acc to dim2 acc to dim2 acc to dim2 acc to dim2 acc to dim2 acc to dim2 acc to dim2 acc to dim2 [0][0][0]=0 [0][0][1]=12 [1][0][0]=4 [1][0][1]=16 [2][0][0]=8 [2][0][1]=20 [0][1][0]=1 [0][1][1]=13 [1][1][0]=5 [1][1][1]=17 [2][1][0]=9 [2][1][1]=21 [0][2][0]=2 [0][2][1]=14 [1][2][0]=6 [1][2][1]=18 [2][2][0]=10 [2][2][1]=22 [0][3][0]=3 [0][3][1]=15 [1][3][0]=7 [1][3][1]=19 [2][3][0]=11 [2][3][1]=23 Breakpoint 2, free (p=0x45a080) at /gnu/winsup/src.clean/winsup/cygwin/malloc_wrapper.cc:41 41 free (void *p) Current language: auto; currently c++ (gdb) c Continuing. Breakpoint 2, free (p=0x45a080) at /gnu/winsup/src.clean/winsup/cygwin/malloc_wrapper.cc:41 41 free (void *p) (gdb) c Continuing. Program received signal SIGABRT, Aborted. 0x77f88f13 in ?? () (gdb)