Bug#408617: [Buildd-tools-devel] Bug#408617: listmount segfaults
Reinhard Tartler
siretart at tauware.de
Sat Jan 27 15:00:43 CET 2007
On Sa, 2007-01-27 at 13:08 +0000, Roger Leigh wrote:
> However, this should only be triggered if the path does not exist. In
> the trace
>
> Core was generated by `/usr/lib/schroot/schroot-listmounts -m
> /var/lib/schroot/mount/feisty-067979f7-c'
>
> the UUID is truncated, and that's not right. Could you possibly take
> a look at that. It's invoked by do_umount_all() in
> /etc/schroot/setup.d/10mount. i.e. 'do_umount_all
> "$CHROOT_MOUNT_LOCATION"', where $CHROOT_MOUNT_LOCATION should be the
> full path to the chroot, but in your case looks funny. Just adding a
> line to echo this variable to stdout should be sufficient to check.
Yes, your patch indeed 'fixed' the problem, in the sense that listmounts
doesn't segfault any longer. Somehow, the UID got truncated. I'm now
echo'ing the $CHROOT_MOUNT_LOCATION, now a typical invocation looks like
this:
siretart- at hades:/srv/scratch/packages/schroot
>> schroot -c feisty
I: [Chroot feisty-e697053d-6887-4745-a69c-f21257a88d60] Starte
Login-Shell: »/usr/bin/zsh«
siretart-feisty at hades:/srv/scratch/packages/schroot
>> id
uid=1000(siretart) gid=1000(siretart)
groups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),107(lpadmin),108(scanner),109(admin),121(backuppc),1000(siretart),1001(sbuild)
siretart-feisty at hades:/srv/scratch/packages/schroot
>> logout
calling do_umount all
with /var/lib/schroot/mount/feisty-e697053d-6887-4745-a69c-f21257a88d60
E: Failed to find
'/var/lib/schroot/mount/feisty-e697053d-6887-4745-a69c-f21257a88d60': No
such file or directory
I'm still a bit puzzled why that directory doesn't exit.
If you don't mind, I'd like to upload this fix as 1.0.4-1ubuntu1 to
feisty. When -2 hits unstable, I can request to overwrite the ubuntu
package. (The autosync is now disabled for feisty anyway)
--
Reinhard Tartler <siretart at tauware.de> - GnuPG Id: 945348A4
Fingerprint = 9300 5DC2 7E87 6C37 ED7B CA9A 9808 3544 9453 48A4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20070127/530ab07c/attachment.pgp
More information about the Buildd-tools-devel
mailing list