[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#539744: chroot to lenny /target in debootstrap segfaults

Frans Pop <elendil@planet.nl> writes:

> And if I choose to install stable I *can* reproduce the issue, both on 
> s390 and i386. And I can confirm that it is a segfault in mount when 
> mounting /proc (this is after extracting "required" packages).
> But it is indeed very strange that only the first mount attempt segfaults.
> Executing the identical command from a debug shell succeeds. I also tried 
> running base-installer again after 'rm /target/*' and then it succeeds.
> What's maybe interesting is that it's the very first command executed in 
> the chroot. Hmmm. It could be that it's not actually mount that's 
> failing, but chroot?

The strace output says to me that it's indeed mount, not chroot, as it
happens after the execve(mount).

> Attached an strace I was able to create by breaking off debootstrap and 
> base-installer just before the /proc mount and then doing the following 
> from a debug shell:
> # strace -tt -f -o chroot.strace chroot /target mount -t proc proc /proc

I can't see anything strange in it now, but it would be interesting to
know whether it depends on the contents of /target/etc/mtab (what if
you delete it before the mount?).  Having an strace of a second
(successful) run might also provide a clue.  Unfortunately I'm
travelling soon, so don't expect much from here right now.

Reply to: