At r161673 on x86_64-apple-darwin10, a new failure...
FAIL: gcc.dg/matrix/transpose-3.c execution, -fprofile-use
-fipa-matrix-reorg -fdump-ipa-matrix-reorg -O3 -fwhole-program -combine
has appeared. This manifests itself as...
Executing on host: /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/xgcc
-B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20100701/gcc/testsuite/gcc.dg/matrix/transpose-3.c
-fprofile-use -fipa-matrix-reorg -fdump-ipa-matrix-reorg -O3 -fwhole-program
-combine -lm -o
/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/testsuite/gcc/transpose-3.x02
(timeout = 300)
PASS: gcc.dg/matrix/transpose-3.c compilation, -fprofile-use
-fipa-matrix-reorg -fdump-ipa-matrix-reorg -O3 -fwhole-program -combine
Setting LD_LIBRARY_PATH to
:/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc::/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc
transpose-3.x02(43899) malloc: *** error for object 0x1001000e0: pointer being
freed was not allocated
*** set a breakpoint in malloc_error_break to debug
A backtrace shows...
(gdb) break malloc_error_break
Breakpoint 1 at 0x20c49ba5d50491
(gdb) r
Starting program: /Users/howarth/newbug3/transpose-3.x02
Reading symbols for shared libraries ++. done
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 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
transpose-3.x02(21931) malloc: *** error for object 0x1001000e0: pointer being
freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Breakpoint 1, 0x00007fff83f64491 in malloc_error_break ()
(gdb) bt
#0 0x00007fff83f64491 in malloc_error_break ()
#1 0x00007fff83e8e603 in free ()
#2 0x0000000100001e8d in main (argc=<value temporarily unavailable, due to
optimizations>, argv=<value temporarily unavailable, due to optimizations>) at
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20100701/gcc/testsuite/gcc.dg/matrix/transpose-3.c:45
so apparently the crash occurs in...
for (i = 0; i < 2; i++)
for (j = 0; j < 3; j++)
if (i==1 && j==1)
continue;
else
free (vel[i][j]);
--
Summary: FAIL: gcc.dg/matrix/transpose-3.c execution, -
fprofile-use -fipa-matrix-reorg -fdump-ipa-matrix-reorg
-O3 -fwhole-program -combine
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: howarth at nitro dot med dot uc dot edu
GCC build triplet: x86_64-apple-darwin10
GCC host triplet: x86_64-apple-darwin10
GCC target triplet: x86_64-apple-darwin10
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44776