[Bug fortran/27351] -ffixed-line-length-132 ICE on 178.galgel in SPEC CPU 2K

hjl at lucon dot org gcc-bugzilla@gcc.gnu.org
Fri Apr 28 22:01:00 GMT 2006



------- Comment #7 from hjl at lucon dot org  2006-04-28 22:01 -------
I am not sure if I can post galgel source. I can't find a small testcase.

In gfc_conv_array_transpose, we first got

708       gfc_conv_expr_descriptor (&src_se, expr, src_ss);

(gdb) p src_ss
$40 = (gfc_ss *) 0x9871e10
(gdb) c
Continuing.

Breakpoint 13, gfc_free (p=0x9871e10)
    at /net/gnu-13/export/gnu/src/gcc-last/gcc/gcc/fortran/misc.c:56
56      {
(gdb) bt
#0  gfc_free (p=0x9871e10)
    at /net/gnu-13/export/gnu/src/gcc-last/gcc/gcc/fortran/misc.c:56
#1  0x080a69dd in gfc_free_ss (ss=0x9871e10)
    at /net/gnu-13/export/gnu/src/gcc-last/gcc/gcc/fortran/trans-array.c:376
#2  0x080a6a15 in gfc_cleanup_loop (loop=0xbff5f03c)
    at /net/gnu-13/export/gnu/src/gcc-last/gcc/gcc/fortran/trans-array.c:393
#3  0x080acb8e in gfc_conv_expr_descriptor (se=0xbff5f1c4, expr=0xb7cee750,
    ss=0x9871e10)
    at /net/gnu-13/export/gnu/src/gcc-last/gcc/gcc/fortran/trans-array.c:4284
#4  0x080ad315 in gfc_conv_array_transpose (se=0xbff5f870, expr=0x9870410)
    at /net/gnu-13/export/gnu/src/gcc-last/gcc/gcc/fortran/trans-array.c:708

Then we accssed the freed src_ss at

726       gcc_assert (src_info->dimen == 2);


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27351



More information about the Gcc-bugs mailing list