This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/16124] ICE on write to character array


------- Additional Comments From tobi at gcc dot gnu dot org  2004-07-11 16:05 -------
There also is a bug in the library, which makes the program segfault at runtime,
I think this it what Andrew Pinski is thinking of.

Backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x080b2a76 in gfc_conv_scalarized_array_ref (se=0xfefbe960, ar=0xa1f9e44)
    at ../../gcc-clean/gcc/fortran/trans-array.c:1435
1435        n = se->loop->order[0];
(gdb) bt
#0  0x080b2a76 in gfc_conv_scalarized_array_ref (se=0xfefbe960, ar=0xa1f9e44)
    at ../../gcc-clean/gcc/fortran/trans-array.c:1435
#1  0x080b2b71 in gfc_conv_array_ref (se=0xfefbe960, ar=0xa1f9e44)
    at ../../gcc-clean/gcc/fortran/trans-array.c:1483
#2  0x080c5961 in gfc_conv_variable (se=0xfefbe960, expr=0xa1f9a40)
    at ../../gcc-clean/gcc/fortran/trans-expr.c:328
#3  0x080c932b in gfc_conv_expr (se=0xfefbe960, expr=0xa1f9a40)
    at ../../gcc-clean/gcc/fortran/trans-expr.c:1496
#4  0x080d6dae in set_string (block=0xfefbea88, postblock=0xfefbea80,
    var=0xf6e521d0, var_len=0xf6e52244, e=0xa1f9a40)
    at ../../gcc-clean/gcc/fortran/trans-io.c:401
#5  0x080d82c3 in build_dt (function=0x8829f2c, code=0xa1f9fd8)
    at ../../gcc-clean/gcc/fortran/trans-io.c:872
#6  0x080d8a4a in gfc_trans_write (code=0xa1f9fd8)
    at ../../gcc-clean/gcc/fortran/trans-io.c:1037
#7  0x080ae815 in gfc_trans_code (code=0xa1f9fd8)
    at ../../gcc-clean/gcc/fortran/trans.c:584
#8  0x080c4841 in gfc_generate_function_code (ns=0xa1f94e8)
    at ../../gcc-clean/gcc/fortran/trans-decl.c:2058
#9  0x080aeb01 in gfc_generate_code (ns=0xa1f94e8)
    at ../../gcc-clean/gcc/fortran/trans.c:661
#10 0x08088200 in gfc_parse_file () at ../../gcc-clean/gcc/fortran/parse.c:2597
---Type <return> to continue, or q <return> to quit---
#11 0x080a6a6f in gfc_be_parse_file (set_yydebug=0)
    at ../../gcc-clean/gcc/fortran/f95-lang.c:266
#12 0x085faa8a in compile_file () at ../../gcc-clean/gcc/toplev.c:981
#13 0x085fcc0f in do_compile () at ../../gcc-clean/gcc/toplev.c:2066
#14 0x085fcc71 in toplev_main (argc=2, argv=0xfefbed74)
    at ../../gcc-clean/gcc/toplev.c:2098
#15 0x0814a642 in main (argc=2, argv=0xfefbed74)
    at ../../gcc-clean/gcc/main.c:35


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]