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/68778] Missing default initialization of finalized derived types type(C_PTR) component in subroutines


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68778

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
If I compile the test with -fsanitize=address, I get

 TEST2: ASSOCIATED? (EXPECT: F) T

from 4.9.3 up to trunk (6.0). Val grind complains about

==72498== Syscall param write(buf) points to uninitialised byte(s)
==72498==    at 0x1004D1C22: write (in /usr/lib/system/libsystem_kernel.dylib)
==72498==    by 0x1000E93B9: raw_write (in
/opt/gcc/gcc6w/lib/libgfortran.3.dylib)
==72498==    by 0x1000E93B9: raw_write (in
/opt/gcc/gcc6w/lib/libgfortran.3.dylib)
==72498==    by 0x1009F783F: ???
==72498==  Address 0x1009f7cb0 is 32 bytes inside a block of size 512 alloc'd
==72498==    at 0x100008EA1: malloc (vg_replace_malloc.c:303)
==72498==    by 0x1000147E4: _gfortrani_xmalloc (in
/opt/gcc/gcc6w/lib/libgfortran.3.dylib)
==72498==    by 0x107FFFF6F: ???
==72498==    by 0x1000F04DC: _gfortrani_fbuf_init (in
/opt/gcc/gcc6w/lib/libgfortran.3.dylib)
==72498==    by 0x3FFFFFFF: ???
==72498==    by 0x1009F783F: ???
==72498==    by 0x107FFFFFF: ???
==72498==    by 0x10013882F: ??? (in /opt/gcc/gcc6w/lib/libgfortran.3.dylib)
==72498==    by 0x7FFF5FC38597: ??? (in /usr/lib/dyld)
==72498==    by 0x1000E8A44: _gfortrani_init_units (in
/opt/gcc/gcc6w/lib/libgfortran.3.dylib)
==72498==    by 0x10010479F: backtrace_initialize (in
/opt/gcc/gcc6w/lib/libgfortran.3.dylib)
==72498==    by 0x1001047B7: init (in /opt/gcc/gcc6w/lib/libgfortran.3.dylib)

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