[Buildd-tools-devel] Bug#477770: Bug#477770: fails to clean up when interrupting tarball unpacking
Roger Leigh
rleigh at codelibre.net
Sat Mar 21 14:45:22 UTC 2009
tags 477770 + confirmed
thanks
On Fri, Apr 25, 2008 at 08:06:59AM +0200, martin f krafft wrote:
>
> Using the file method, if I hit ctrl-c while the tarball is being
> unpacked, the session and mount directories in /var/lib/schroot/ are
> not properly cleaned up.
This is an interesting bug. Further investigation shows that
- if one kills tar/gzip (child processes), this is detected, error
condition set, exception thrown and appropriate cleanup occurs
- if one kills schroot directly, the signal is handled, error
condition set, exception thrown and no cleanup occurs at all
(no errors at all, not even from the top-level exception handler)
This makes me think that there's some signal subtlety going on here.
I've been tracing what's going on with gdb and it works correctly
in gdb! There's either multiple SIGTERMs being issued, one of which
isn't being handled, or something even stranger.
This one might take a bit of work to pin down.
Regards,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
More information about the Buildd-tools-devel
mailing list