------- Comment #8 from sgk at troutmask dot apl dot washington dot edu 2006-06-13 00:56 ------- Subject: Re: ICE on garbage in DATA statement
On Mon, Jun 12, 2006 at 05:34:52PM -0700, Steve Kargl wrote: > On Mon, Jun 12, 2006 at 11:26:16PM -0000, reichelt at gcc dot gnu dot org > wrote: > > > > I can reproduce the bug also on i686-pc-linux-gnu. > > Does freebsd vs. linux really matter that much here? > > Or could GMP or MPFR be the culprit? > > > > I doubt it is gmp or mpfr. There is nothing in > the program that uses either library. Can you > run the executable under valgrind? The difference > may be in the memory allocators, which do differ > between linux and freebsd. > > Yep. That's the problem. > > troutmask:sgk[211] setenv MALLOC_OPTIONS AJ > troutmask:sgk[213] > troutmask:sgk[213] gfc4x -c l.f90 > In file l.f90:3 > > character*20 X 0 > 1 > Error: Syntax error in data declaration at (1) > In file l.f90:4 > > data X /'A'/ 0 > 1 > Error: Syntax error in DATA statement at (1) > l.f90:0: internal compiler error: Bus error: 10 > Please submit a full bug report, > with preprocessed source if appropriate. > See <URL:http://gcc.gnu.org/bugs.html> for instructions. > Program received signal SIGBUS, Bus error. 0x00000000004458c3 in gfc_resolve_expr (e=0x201520240) at ../../gcc4x/gcc/fortran/resolve.c:2793 2793 if (sym->attr.flavor == FL_PROCEDURE && !sym->attr.function) (gdb) bt #0 0x00000000004458c3 in gfc_resolve_expr (e=0x201520240) at ../../gcc4x/gcc/fortran/resolve.c:2793 #1 0x0000000000447413 in resolve_data_variables (d=0x2014212c0) at ../../gcc4x/gcc/fortran/resolve.c:5867 #2 0x0000000000447671 in resolve_types (ns=0x2014a2000) at ../../gcc4x/gcc/fortran/resolve.c:5896 #3 0x0000000000449cbd in gfc_resolve (ns=0x2014a2000) at ../../gcc4x/gcc/fortran/resolve.c:6558 #4 0x000000000043f958 in gfc_parse_file () at ../../gcc4x/gcc/fortran/parse.c:3190 #5 0x000000000045e90e in gfc_be_parse_file (set_yydebug=Variable "set_yydebug" is not available. ) at ../../gcc4x/gcc/fortran/f95-lang.c:303 #6 0x000000000074595e in toplev_main (argc=Variable "argc" is not available. ) at ../../gcc4x/gcc/toplev.c:999 -- Steve -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27954