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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-04-27
     Ever confirmed|0                           |1

--- Comment #17 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Thanks for the reproducer, this is definitely fishy.

valgrind shows:

==21250== Invalid free() / delete / delete[] / realloc()
==21250==    at 0x4C2F3B9: free (vg_replace_malloc.c:540)
==21250==    by 0x804071: __simulations_uti_MOD_simulations_10
(simulations_uti.f90:42)
==21250==    by 0x40A504: __unit_tests_MOD_test (unit_tests.f90:175)
==21250==    by 0x804EC5: __simulations_ut_MOD_simulations_test
(simulations_ut.f90:45)
==21250==    by 0x806AC5: whizard_check.0 (in
/home/ig25/Downloads/Whiz/whizard_test)
==21250==    by 0x80771A: MAIN__ (in /home/ig25/Downloads/Whiz/whizard_test)
==21250==    by 0x808733: main (in /home/ig25/Downloads/Whiz/whizard_test)
==21250==  Address 0x959ae00 is 0 bytes inside a block of size 20 free'd
==21250==    at 0x4C2F3B9: free (vg_replace_malloc.c:540)
==21250==    by 0x8009FE: __simulations_uti_MOD_simulations_10
(simulations_uti.f90:124)
==21250==    by 0x40A504: __unit_tests_MOD_test (unit_tests.f90:175)
==21250==    by 0x804EC5: __simulations_ut_MOD_simulations_test
(simulations_ut.f90:45)
==21250==    by 0x806AC5: whizard_check.0 (in
/home/ig25/Downloads/Whiz/whizard_test)
==21250==    by 0x80771A: MAIN__ (in /home/ig25/Downloads/Whiz/whizard_test)
==21250==    by 0x808733: main (in /home/ig25/Downloads/Whiz/whizard_test)
==21250==  Block was alloc'd at
==21250==    at 0x4C2E221: malloc (vg_replace_malloc.c:309)
==21250==    by 0x73EDEA: __rt_data_MOD_rt_data_activate (rt_data.f90:509)
==21250==    by 0x7FFEF2: __simulations_uti_MOD_simulations_10
(simulations_uti.f90:104)
==21250==    by 0x40A504: __unit_tests_MOD_test (unit_tests.f90:175)
==21250==    by 0x804EC5: __simulations_ut_MOD_simulations_test
(simulations_ut.f90:45)
==21250==    by 0x806AC5: whizard_check.0 (in
/home/ig25/Downloads/Whiz/whizard_test)
==21250==    by 0x80771A: MAIN__ (in /home/ig25/Downloads/Whiz/whizard_test)
==21250==    by 0x808733: main (in /home/ig25/Downloads/Whiz/whizard_test)
==21250== 

and lots more.

Reply via email to