This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40440] [4.4/4.5 Regression] Garbage or segmentation fault in allocatable array derived type structures
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2009 08:52:30 -0000
- Subject: [Bug fortran/40440] [4.4/4.5 Regression] Garbage or segmentation fault in allocatable array derived type structures
- References: <bug-40440-15192@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from burnus at gcc dot gnu dot org 2009-06-15 08:52 -------
(In reply to comment #2)
> COmplete code for the test case including the module iso_varying_string
Works with: gfortran 4.3.3, ifort 11, sunf95, NAG f95 5.1 (w/o flush
statements)
Fails (abort) with gfortran 4.4.1/4.5
Valgrind shows several uninitialized accesses (gfortran 4.3.3, 4.4, and 4.5),
but no errors with NAG f95 or ifort. Interestingly, it runs through with
valgrind + gfortran 4.5, which means that it could be no regression and working
in 4.3.3 only by chance.
valgrind finds essentially the following two errors with gfortran 4.5:
Invalid read of size 1
at 0x4091FC: __iso_varying_string_MOD_char_auto (foo.f90:868)
by 0x40B73F: __syntax_rules_MOD_monitor_syntax_rules (foo.f90:3450)
by 0x40B8F5: __syntax_rules_MOD_syntax_get_rule_ptr (foo.f90:3431)
by 0x40C242: set_children.6490 (foo.f90:3410)
by 0x40C933: __syntax_rules_MOD_set_rule_contents (foo.f90:3366)
by 0x40E9E5: __syntax_rules_MOD_syntax_init_from_ifile (foo.f90:3287)
by 0x412C6E: MAIN__ (foo.f90:3472)
Use of uninitialised value of size 8
at 0x40C261: set_children.6490 (foo.f90:3410)
by 0x40C933: __syntax_rules_MOD_set_rule_contents (foo.f90:3366)
by 0x40E9E5: __syntax_rules_MOD_syntax_init_from_ifile (foo.f90:3287)
by 0x412C6E: MAIN__ (foo.f90:3472)
by 0x412D09: main (foo.f90:3462)
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Known to fail| |4.4.1 4.5.0
Known to work| |4.3.3
Summary|[4.5.0 Regression] Garbage |[4.4/4.5 Regression] Garbage
|or segmentation fault in |or segmentation fault in
|allocatable array derived |allocatable array derived
|type structures |type structures
Target Milestone|--- |4.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40440