[Bug fortran/88399] program segmentation faults when out-of-memory

2018-12-13 Thread schorkl72 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88399

Lukas Schork  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |INVALID

--- Comment #3 from Lukas Schork  ---
Tested with 8.2.0, where it works correctly.

[Bug fortran/88399] program segmentation faults when out-of-memory

2018-12-13 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88399

Harald Anlauf  changed:

   What|Removed |Added

 CC||anlauf at gmx dot de

--- Comment #2 from Harald Anlauf  ---
AFAICT the problem seems fixed since 7.1, it is still present at 6.1.

Looking at the tree dump, one can see that gfortran <= 6 initialized
the derived type even when the malloc failed.  It is now protected by
an appropriate if/goto.

I recommend to update to 7.1+

[Bug fortran/88399] program segmentation faults when out-of-memory

2018-12-13 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88399

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2018-12-13
 Ever confirmed|0   |1

--- Comment #1 from Dominique d'Humieres  ---
The darwin linker does not accept -Wl,--wrap=malloc:

ld: unknown option: --wrap=malloc