[Bug fortran/59678] [F03] Segfault on equalizing variables of a complex derived type
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Sun Jan 12 20:44:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59678
--- Comment #12 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
For the test in comment 9, valgrind gives
==30542== Conditional jump or move depends on uninitialised value(s)
==30542== at 0x100000D3C: MAIN__ (pr59678.f90:25)
==30542== by 0x100000E95: main (pr59678.f90:21)
==30542==
==30542== Conditional jump or move depends on uninitialised value(s)
==30542== at 0x7FFFFFE007B0: ???
==30542== by 0x100000DCB: MAIN__ (pr59678.f90:25)
==30542== by 0x100000E95: main (pr59678.f90:21)
==30542==
==30542== Conditional jump or move depends on uninitialised value(s)
==30542== at 0x7FFFFFE007B6: ???
==30542== by 0x100000DCB: MAIN__ (pr59678.f90:25)
==30542== by 0x100000E95: main (pr59678.f90:21)
==30542==
==30542== Conditional jump or move depends on uninitialised value(s)
==30542== at 0x7FFFFFE007F3: ???
==30542== by 0x100000DCB: MAIN__ (pr59678.f90:25)
==30542== by 0x100000E95: main (pr59678.f90:21)
==30542==
==30542== Use of uninitialised value of size 8
==30542== at 0x7FFFFFE012B1: ???
==30542== by 0x7FFFFFE00879: ???
==30542== by 0x100000DCB: MAIN__ (pr59678.f90:25)
==30542== by 0x100000E95: main (pr59678.f90:21)
==30542==
==30542== Invalid read of size 1
==30542== at 0x7FFFFFE012B1: ???
==30542== by 0x7FFFFFE00879: ???
==30542== by 0x100000DCB: MAIN__ (pr59678.f90:25)
==30542== by 0x100000E95: main (pr59678.f90:21)
==30542== Address 0xe41 is not stack'd, malloc'd or (recently) free'd
I am not sure that the code is valid: allocatables not allocated.
More information about the Gcc-bugs
mailing list