[Bug fortran/120637] Memory leak in finalization gfortran 9.5-16.0

2025-06-18 Thread antony at cosmologist dot info via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120637 --- Comment #3 from Antony Lewis --- I tested just removing the was_finalization test, and it seems to work. This is basically reverting the change in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94109 https://gcc.gnu.org/cgit/gcc/commit/?id=1a

[Bug fortran/120637] Memory leak in finalization gfortran 9.5-16.0

2025-06-17 Thread antony at cosmologist dot info via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120637 --- Comment #2 from Antony Lewis --- Gemini and o3-pro, after some iteration, think this bug is due to reusing stale cache pointers, which seems plausible to me and fits the erratic behaviour. FWIW there is description and possible workaround a