[Bug fortran/97123] double free detected in tcache 2 with recursive allocatable type

2020-10-05 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97123

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1
   Last reconfirmed||2020-10-05

--- Comment #3 from Dominique d'Humieres  ---
Confirmed since at least GCC7.

[Bug fortran/97123] double free detected in tcache 2 with recursive allocatable type

2020-09-28 Thread dlhough at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97123

Luke Hough  changed:

   What|Removed |Added

 CC||dlhough at gmail dot com

--- Comment #2 from Luke Hough  ---
This is likely related to bug #96910.

The intrinsic assignment operator does not duplicate the allocated
subcomponents during assignment for recursive types. The `top_level =
init_recursive()` creates a temporary storage for the RHS before assigning to
the LHS. After assignment, the temporary RHS is deallocated. Since the
subcomponent is not properly duplicated during the assignment, this leads to a
double free.

[Bug fortran/97123] double free detected in tcache 2 with recursive allocatable type

2020-09-20 Thread igor.gayday at mu dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97123

--- Comment #1 from Igor Gayday  ---
Might be related to Bug #90519.