Control: reassign -1 binutils On Friday, February 28 2014, Ph. Marek wrote:
> 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. GDB uses libbfd to manipulate corefiles. It ultimately calls "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, -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible https://sergiodj.net/
signature.asc
Description: PGP signature

