[buildd-tools-devel] Bug#584831: Bug#584831: schroot: please add an option to avoid fork()
Roger Leigh
rleigh at codelibre.net
Sun Jun 27 16:05:54 UTC 2010
On Sun, Jun 27, 2010 at 03:01:39PM +0300, Timo Lindfors wrote:
> Roger Leigh <rleigh at codelibre.net> writes:
> > This is because when you remove the fork you competely replace the
> > schroot program with your program, and schroot never gets to run its
> > cleanup code (which is what kills your session).
> > If you run the unpatched schroot with --verbose --debug=notice, you
> > should see your session gets killed when the 15killprocs setup
> > script is run. Is this the case?
>
> According to strace in
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584831#15 no cleanup
> code is run in my case.
Is this with or without your fork patch? I really do need to see the
entire log; that 10 line section is insufficient to see what
happened prior to that point. But first, see if the following
fixes things:
> > How are you starting X using schroot? Could I see your script
> > or command-line?
>
> Hmm, gdm.conf is listed in
>
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584831#15
>
> also. Maybe you lost the mail?
Right. From the console, I can start X with
schroot -c sid -p -q -- X :1
or
schroot -c sid -p -q -- xinit :1
and then run X applications in both directly from the console without
any trouble, or from with the X session.
Now, when you start X, it creates a socket in /tmp/.X11-unix/Xn, where
n is the display number. Do you have the same /tmp inside and outside
the chroot (i.e. is it bind mounted)? If not, you'll need to do that.
Note that in your config:
[sid2]
description=Debian sid2 (unstable)
location=/local/chroot/sid2
aliases=unstable2
users=root,lindi
I don't see a type= line. If this is the complete configuration,
you are running with type=plain and not type=directory which would
have done this setup for you. Please see the "should I use the
plain or directory chroot type?" section in the attached FAQ.
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: schroot.pdf
Type: application/pdf
Size: 97743 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20100627/29ca3db8/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20100627/29ca3db8/attachment-0001.pgp>
More information about the Buildd-tools-devel
mailing list