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!
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,