[Bug fortran/60956] error reading (and writing) large text files in gfortran

jvdelisle at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 6 04:48:00 GMT 2015


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

--- Comment #3 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
I took a closer look at this one. The error I am getting is running out of
allocatable space in realloc used in fbuf.c (fbuf_alloc).  We are allocating
one byte at a time, and just keep trying to douple the buffer when its not big
enough.

I think we need to check for some max buffer size and when we approach it,
flush the fbuf and continue.



More information about the Gcc-bugs mailing list