#740329 gdb=7.6.1-1: doesn't close core file when out of disk-space

Package:
gdb
Source:
gdb
Description:
GNU Debugger
Submitter:
"Ph. Marek"
Date:
2025-08-04 17:33:02 UTC
Severity:
normal
#740329#5
Date:
2014-02-28 09:02:07 UTC
From:
To:
I tried to run

    generate-core-file /tmp/some-file

with a multi-GB process; that filled up my /tmp completely.


GDB wrote (manually translated)

   warning: Failed to write corefile contents (Out of disk space).
   ...
   Saved corefile /tmp/htr
   warning: cannot close "/tmp/some-file": out of disk space


Deleting the file from another shell wasn't sufficient - GDB still had the
filehandle open (as it says above)!


   # ls -la /proc/`pidof gdb`/fd
   ...
   lrwx------ 1 root root 64 Feb 28 09:57 9 -> /tmp/some-file (deleted)


So I *have* to quite GDB - and lose the debugged process on the way.

Please just make GDB close the filehandle, so the space can be reclaimed.


Thanks a lot!

#740329#16
Date:
2025-08-04 17:26:21 UTC
From:
To:
Control: reassign -1 binutils
"bfd_close" on the file, and just reacts according to the value returned
by it.

This is a libbfd bug, which is maintained by binutils.  Reassigning to
the proper package.  But keep in mind that this bug should be filed
against the upstream project; there's little we can do in Debian about
it.

FTR: I haven't confirmed whether the bug is still present.

Thanks,