[Buildd-tools-devel] Bug#512350: Bug#512350: schroot Segfaults When Run From eesh

Jacob Sherwood thejacobian at gmail.com
Wed Jan 21 05:04:07 UTC 2009


On Tue, Jan 20, 2009 at 9:57 AM, Roger Leigh <rleigh at codelibre.net> wrote:

> Could you possibly try running schroot in a debugger for me to
> pinpoint where this occurs?  Also, the most likely cause (I think)
> would be something odd being set in the environment, since that's
> really the only think the shell can mess up, unless it doesn't
> open stdin/stdout/stderr as expected.

It's possible that it's the latter case (stdin/stdout/stderr aren't
opened as expected).  eesh is used for manipulating the enlightenment
GUI.

> Could you first, try:
>
> Running with the additional option '--debug=notice' which will turn
> on debugging output.  This will show approximately where the bug
> is occuring, as well as listing the environment and the other
> things schroot is doing when starting up.
D(1): Loading config file: /etc/schroot/schroot.conf
D(1): Loading data file: /etc/schroot/schroot.conf
D(2): Getting keyfile group=etch-i386, key=type
D(1): value=directory
D(2): Getting keyfile group=etch-i386, key=active
D(1): value=0
D(2): Getting keyfile group=etch-i386, key=run-setup-scripts
D(1): value=1
D(2): Getting keyfile group=etch-i386, key=run-session-scripts
D(1): key not found
D(2): Getting keyfile group=etch-i386, key=run-exec-scripts
D(1): value=1
D(2): Getting keyfile group=etch-i386, key=script-config
D(1): key not found
D(2): Getting keyfile group=etch-i386, key=priority
D(1): value=3
D(2): Getting keyfile group=etch-i386, key=aliases
D(1): value=etch
D(1): value=etch
D(2): Getting keyfile group=etch-i386, key=environment-filter
D(1): key not found
D(2): Getting keyfile group=etch-i386, key=description
D(1): value=Debian etch 32-bit
D(2): Getting keyfile group=etch-i386, key=users
D(1): key not found
D(2): Getting keyfile group=etch-i386, key=groups
D(1): value=schroot
D(1): value=schroot
D(2): Getting keyfile group=etch-i386, key=root-users
D(1): key not found
D(2): Getting keyfile group=etch-i386, key=root-groups
D(1): key not found
D(2): Getting keyfile group=etch-i386, key=mount-location
D(1): key not found
D(2): Getting keyfile group=etch-i386, key=mount-device
D(1): key not found
D(2): Getting keyfile group=etch-i386, key=command-prefix
D(1): key not found
D(2): Getting keyfile group=etch-i386, key=personality
D(1): value=linux32
D(2): Getting keyfile group=etch-i386, key=location
D(1): value=/var/chroot/etch-i386
D(2): Getting keyfile group=lenny-i386, key=type
D(1): value=directory
D(2): Getting keyfile group=lenny-i386, key=active
D(1): value=0
D(2): Getting keyfile group=lenny-i386, key=run-setup-scripts
D(1): value=1
D(2): Getting keyfile group=lenny-i386, key=run-session-scripts
D(1): key not found
D(2): Getting keyfile group=lenny-i386, key=run-exec-scripts
D(1): value=1
D(2): Getting keyfile group=lenny-i386, key=script-config
D(1): key not found
D(2): Getting keyfile group=lenny-i386, key=priority
D(1): value=3
D(2): Getting keyfile group=lenny-i386, key=aliases
D(1): value=default,i386,lenny
D(1): value=default
D(1): value=i386
D(1): value=lenny
D(2): Getting keyfile group=lenny-i386, key=environment-filter
D(1): key not found
D(2): Getting keyfile group=lenny-i386, key=description
D(1): value=Debian lenny 32-bit
D(2): Getting keyfile group=lenny-i386, key=users
D(1): key not found
D(2): Getting keyfile group=lenny-i386, key=groups
D(1): value=schroot
D(1): value=schroot
D(2): Getting keyfile group=lenny-i386, key=root-users
D(1): key not found
D(2): Getting keyfile group=lenny-i386, key=root-groups
D(1): key not found
D(2): Getting keyfile group=lenny-i386, key=mount-location
D(1): key not found
D(2): Getting keyfile group=lenny-i386, key=mount-device
D(1): key not found
D(2): Getting keyfile group=lenny-i386, key=command-prefix
D(1): key not found
D(2): Getting keyfile group=lenny-i386, key=personality
D(1): value=linux32
D(2): Getting keyfile group=lenny-i386, key=location
D(1): value=/var/chroot/lenny-i386
D(1): Loading config directory: /etc/schroot/chroot.d
D(2): Creating schroot session
D(2): auth uid = 1,000, gid = 1,000
D(1): Inserted into environment: ENL_DBUS_NAME=org.e16.wm.d0s0
D(1): Inserted into environment: SSH_AGENT_PID=8969
D(1): Inserted into environment:
GPG_AGENT_INFO=/tmp/gpg-jvBqg5/S.gpg-agent:9021:1
D(1): Inserted into environment: DESKTOP_STARTUP_ID=e16/52:0:0,0
D(1): Inserted into environment: KDEWM=enlightenment
D(1): Inserted into environment: SHELL=/bin/bash
D(1): Inserted into environment: WINDOW_MANAGER=/usr/bin/enlightenment
D(1): Inserted into environment: ETHEME=/usr/share/e16/themes/winter
D(1): Inserted into environment: USER=sport
D(1): Inserted into environment: SSH_AUTH_SOCK=/tmp/ssh-jISVSt8968/agent.8968
D(1): Inserted into environment: USERNAME=sport
D(1): Inserted into environment: EVERSION=0.16.8.13
D(1): Inserted into environment: MAIL=/var/spool/mail/sport
D(1): Inserted into environment:
PATH=/sbin/:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/games:/usr/local/java/current/bin:~/bin:~/scripts
D(1): Inserted into environment: DESKTOP_SESSION=e16
D(1): Inserted into environment: GDM_XSERVER_LOCATION=local
D(1): Inserted into environment: PWD=/home/sport
D(1): Inserted into environment: EDITOR=/usr/bin/vim
D(1): Inserted into environment: EBIN=/usr/bin
D(1): Inserted into environment: LANG=en_US.UTF-8
D(1): Inserted into environment: GDM_LANG=en_US.UTF-8
D(1): Inserted into environment: ECACHEDIR=/home/sport/.e16
D(1): Inserted into environment: GDMSESSION=e16
D(1): Inserted into environment: ICAROOT=/usr/lib/ICAClient
D(1): Inserted into environment: SHLVL=0
D(1): Inserted into environment: HOME=/home/sport
D(1): Inserted into environment: ECONFDIR=/home/sport/.e16
D(1): Inserted into environment: EROOT=/usr/share/e16
D(1): Inserted into environment: VTK_DATA_ROOT=/usr/share/vtkdata
D(1): Inserted into environment: LOGNAME=sport
D(1): Inserted into environment:
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/
D(1): Inserted into environment:
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-MMD9PvsE4i,guid=e29ea64978ac04095789eeb6497528e9
D(1): Inserted into environment: WINDOWPATH=7
D(1): Inserted into environment: DISPLAY=:0.0
D(1): Inserted into environment: XAUTHORITY=/home/sport/.Xauthority
D(1): pam_start OK
D(2): In users: 0
In groups: 1
In root-users: 0
In root-groups: 0
D(2): pam_putenv: set
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-MMD9PvsE4i,guid=e29ea64978ac04095789eeb6497528e9
D(2): pam_putenv: set DESKTOP_SESSION=e16
D(2): pam_putenv: set DESKTOP_STARTUP_ID=e16/52:0:0,0
D(2): pam_putenv: set DISPLAY=:0.0
D(2): pam_putenv: set EBIN=/usr/bin
D(2): pam_putenv: set ECACHEDIR=/home/sport/.e16
D(2): pam_putenv: set ECONFDIR=/home/sport/.e16
D(2): pam_putenv: set EDITOR=/usr/bin/vim
D(2): pam_putenv: set ENL_DBUS_NAME=org.e16.wm.d0s0
D(2): pam_putenv: set EROOT=/usr/share/e16
D(2): pam_putenv: set ETHEME=/usr/share/e16/themes/winter
D(2): pam_putenv: set EVERSION=0.16.8.13
D(2): pam_putenv: set GDMSESSION=e16
D(2): pam_putenv: set GDM_LANG=en_US.UTF-8
D(2): pam_putenv: set GDM_XSERVER_LOCATION=local
D(2): pam_putenv: set GPG_AGENT_INFO=/tmp/gpg-jvBqg5/S.gpg-agent:9021:1
D(2): pam_putenv: set HOME=/home/sport
D(2): pam_putenv: set ICAROOT=/usr/lib/ICAClient
D(2): pam_putenv: set KDEWM=enlightenment
D(2): pam_putenv: set LANG=en_US.UTF-8
D(2): pam_putenv: set LOGNAME=sport
D(2): pam_putenv: set MAIL=/var/spool/mail/sport
D(2): pam_putenv: set
PATH=/sbin/:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/games:/usr/local/java/current/bin:~/bin:~/scripts
D(2): pam_putenv: set PWD=/home/sport
D(2): pam_putenv: set SHELL=/bin/bash
D(2): pam_putenv: set SHLVL=0
D(2): pam_putenv: set SSH_AGENT_PID=8969
D(2): pam_putenv: set SSH_AUTH_SOCK=/tmp/ssh-jISVSt8968/agent.8968
D(2): pam_putenv: set USER=sport
D(2): pam_putenv: set USERNAME=sport
D(2): pam_putenv: set VTK_DATA_ROOT=/usr/share/vtkdata
D(2): pam_putenv: set WINDOWPATH=7
D(2): pam_putenv: set WINDOW_MANAGER=/usr/bin/enlightenment
D(2): pam_putenv: set XAUTHORITY=/home/sport/.Xauthority
D(2): pam_putenv: set
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/
D(1): pam_putenv OK
D(1): pam_acct_mgmt OK
D(1): pam_setcred OK
D(2): PAM authentication succeeded for user
D(1): Running session in default chroot:
D(2): Session ID: lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
D(1): Mount Location:
/var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
D(2): setup_chroot:
chroot=lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c, setup_type=0,
chroot_status=1, lock_status=1
D(1): Inserted into environment: CHROOT_TYPE=directory
D(1): Inserted into environment:
CHROOT_NAME=lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
D(1): Inserted into environment: CHROOT_DESCRIPTION=Debian lenny 32-bit
D(1): Inserted into environment: CHROOT_LOCATION=/var/chroot/lenny-i386
D(1): Inserted into environment:
CHROOT_MOUNT_LOCATION=/var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
D(1): Inserted into environment:
CHROOT_PATH=/var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
D(1): Inserted into environment:
CHROOT_SCRIPT_CONFIG=/etc/schroot/script-defaults
D(1): Inserted into environment: CHROOT_SESSION_CREATE=true
D(1): Inserted into environment: CHROOT_SESSION_CLONE=false
D(1): Inserted into environment: CHROOT_SESSION_PURGE=false
D(1): Inserted into environment: AUTH_USER=sport
D(1): Inserted into environment: AUTH_VERBOSITY=verbose
D(1): Inserted into environment: MOUNT_DIR=/var/lib/schroot/mount
D(1): Inserted into environment: LIBEXEC_DIR=/usr/lib/schroot
D(1): Inserted into environment: PID=13639
D(1): Inserted into environment:
SESSION_ID=lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
D(2): 00check
05file
05lvm
10mount
15killprocs
20copyfiles
50chrootname
50sbuild

D(2): run_parts: executing 00check, setup-start, ok
I: Executing '00check setup-start ok'
AUTH_USER=sport
AUTH_VERBOSITY=verbose
MOUNT_DIR=/var/lib/schroot/mount
LIBEXEC_DIR=/usr/lib/schroot
PID=13639
SESSION_ID=lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
CHROOT_TYPE=directory
CHROOT_NAME=lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
CHROOT_DESCRIPTION=Debian lenny 32-bit
CHROOT_SCRIPT_CONFIG=/etc/schroot/script-defaults
CHROOT_MOUNT_LOCATION=/var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
CHROOT_LOCATION=/var/chroot/lenny-i386
CHROOT_PATH=/var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
CHROOT_MOUNT_DEVICE=
CHROOT_SESSION_CREATE=true
CHROOT_SESSION_CLONE=false
CHROOT_SESSION_PURGE=false
FSTAB=/etc/schroot/mount-defaults
SBUILD=false
D(2): run_parts: 00check succeeded
D(2): run_parts: executing 05file, setup-start, ok
I: Executing '05file setup-start ok'
D(2): run_parts: 05file succeeded
D(2): run_parts: executing 05lvm, setup-start, ok
I: Executing '05lvm setup-start ok'
D(2): run_parts: 05lvm succeeded
D(2): run_parts: executing 10mount, setup-start, ok
I: Executing '10mount setup-start ok'
Mounting /var/chroot/lenny-i386 on
/var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
/var/chroot/lenny-i386 on
/var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
type none (rw,bind)
I: Executing '/bin/mount -v -t proc -o defaults proc
/var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c/proc'
proc on /var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c/proc
type proc (rw)
I: Executing '/bin/mount -v -t none -o rw,bind /dev/pts
/var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c/dev/pts'
/dev/pts on /var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c/dev/pts
type none (rw,bind)
I: Executing '/bin/mount -v -t tmpfs -o defaults tmpfs
/var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c/dev/shm'
tmpfs on /var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c/dev/shm
type tmpfs (rw)
I: Executing '/bin/mount -v -t none -o rw,bind /home
/var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c/home'
/home on /var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c/home
type none (rw,bind)
I: Executing '/bin/mount -v -t none -o rw,bind /tmp
/var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c/tmp'
/tmp on /var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c/tmp
type none (rw,bind)
D(2): run_parts: 10mount succeeded
D(2): run_parts: executing 15killprocs, setup-start, ok
I: Executing '15killprocs setup-start ok'
D(2): run_parts: 15killprocs succeeded
D(2): run_parts: executing 20copyfiles, setup-start, ok
I: Executing '20copyfiles setup-start ok'
D(2): run_parts: 20copyfiles succeeded
D(2): run_parts: executing 50chrootname, setup-start, ok
I: Executing '50chrootname setup-start ok'
Setting chroot name to lenny-i386
D(2): run_parts: 50chrootname succeeded
D(2): run_parts: executing 50sbuild, setup-start, ok
I: Executing '50sbuild setup-start ok'
User sport is not in group sbuild; skipping sbuild setup
D(2): run_parts: 50sbuild succeeded
D(2): setup_chroot:
chroot=lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c, setup_type=1,
chroot_status=1, lock_status=1
D(2): setup_chroot:
chroot=lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c, setup_type=3,
chroot_status=1, lock_status=1
D(1): Inserted into environment: CHROOT_TYPE=directory
D(1): Inserted into environment:
CHROOT_NAME=lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
D(1): Inserted into environment: CHROOT_DESCRIPTION=Debian lenny 32-bit
D(1): Inserted into environment: CHROOT_LOCATION=/var/chroot/lenny-i386
D(1): Inserted into environment:
CHROOT_MOUNT_LOCATION=/var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
D(1): Inserted into environment:
CHROOT_PATH=/var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
D(1): Inserted into environment:
CHROOT_SCRIPT_CONFIG=/etc/schroot/script-defaults
D(1): Inserted into environment: CHROOT_SESSION_CREATE=true
D(1): Inserted into environment: CHROOT_SESSION_CLONE=false
D(1): Inserted into environment: CHROOT_SESSION_PURGE=false
D(1): Inserted into environment: AUTH_USER=sport
D(1): Inserted into environment: AUTH_VERBOSITY=verbose
D(1): Inserted into environment: MOUNT_DIR=/var/lib/schroot/mount
D(1): Inserted into environment: LIBEXEC_DIR=/usr/lib/schroot
D(1): Inserted into environment: PID=13639
D(1): Inserted into environment:
SESSION_ID=lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
D(2): 00check

D(2): run_parts: executing 00check, exec-start, ok
I: Executing '00check exec-start ok'
AUTH_USER=sport
AUTH_VERBOSITY=verbose
MOUNT_DIR=/var/lib/schroot/mount
LIBEXEC_DIR=/usr/lib/schroot
PID=13639
SESSION_ID=lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
CHROOT_TYPE=directory
CHROOT_NAME=lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
CHROOT_DESCRIPTION=Debian lenny 32-bit
CHROOT_SCRIPT_CONFIG=/etc/schroot/script-defaults
CHROOT_MOUNT_LOCATION=/var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
CHROOT_LOCATION=/var/chroot/lenny-i386
CHROOT_PATH=/var/lib/schroot/mount/lenny-i386-519d8621-3eee-4568-b197-100bdf809b1c
CHROOT_MOUNT_DEVICE=
CHROOT_SESSION_CREATE=true
CHROOT_SESSION_CLONE=false
CHROOT_SESSION_PURGE=false
FSTAB=/etc/schroot/mount-defaults
SBUILD=false
D(2): run_parts: 00check succeeded


> Next, try to get the environment from /proc/pid/environ for the
> schroot process.

NNTPSERVER=newsgroups.comcast.netSSH_AGENT_PID=8969ENL_DBUS_NAME=org.e16.wm.d0s0GPG_AGENT_INFO=/tmp/gpg-jvBqg5/S.gpg-agent:9021:1TERM=screenSHELL=/bin/bashKDEWM=enlightenmentDESKTOP_STARTUP_ID=WINDOW_MANAGER=/usr/bin/e16WINDOWID=27263051ETHEME=/usr/share/e16/themes/winterUSER=sportTERMCAP=SC|screen|VT
100/ANSI X3.64 virtual terminal:\
        :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
        :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
        :do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
        :le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
        :li#44:co#80:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\
        :cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\
        :im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\
        :ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
        :ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\
        :se=\E[23m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\
        :Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\
        :vb=\Eg:G0:as=\E(0:ae=\E(B:\
        :ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\
        :po=\E[5i:pf=\E[4i:k0=\E[10~:k1=\EOP:k2=\EOQ:k3=\EOR:\
        :k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
        :k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:F3=\EO2P:\
        :F4=\EO2Q:F5=\EO2R:F6=\EO2S:F7=\E[15;2~:F8=\E[17;2~:\
        :F9=\E[18;2~:FA=\E[19;2~:kb=:K2=\EOE:kB=\E[Z:\
        :*4=\E[3;2~:*7=\E[1;2F:#2=\E[1;2H:#3=\E[2;2~:#4=\E[1;2D:\
        :%c=\E[6;2~:%e=\E[5;2~:%i=\E[1;2C:kh=\E[1~:@1=\E[1~:\
        :kH=\E[4~:@7=\E[4~:kN=\E[6~:kP=\E[5~:kI=\E[2~:kD=\E[3~:\
        :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:km:SSH_AUTH_SOCK=/tmp/ssh-jISVSt8968/agent.8968USERNAME=sportCOLUMNS=80EVERSION=0.16.8.13MAIL=/var/spool/mail/sportPATH=/sbin/:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/games:/usr/local/java/current/bin:~/bin:~/scriptsDESKTOP_SESSION=e16STY=27608.pts-0.wolf_=/usr/bin/gdbGDM_XSERVER_LOCATION=localPWD=/home/sportEDITOR=/usr/bin/vimLANG=en_US.UTF-8EBIN=/usr/binGDM_LANG=en_US.UTF-8ECACHEDIR=/home/sport/.e16LINES=44GDMSESSION=e16SHLVL=2HOME=/home/sportICAROOT=/usr/lib/ICAClientECONFDIR=/home/sport/.e16EROOT=/usr/share/e16VTK_DATA_ROOT=/usr/share/vtkdataLOGNAME=sportWINDOW=9DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-MMD9PvsE4i,guid=e29ea64978ac04095789eeb6497528e9XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/WINDOWPATH=7DISPLAY=:0.0COLORTERM=gnome-terminalXAUTHORITY=/home/sport/.Xauthority


> Also, the environment in eesh (I guess just type "set") should be
> the same, so this would also be useful information.

(Note, to get the following I ran eesh and typed 'exec schroot -pv
--debug=notice bash -c set' and redirected that to a text file)

BASH=/bin/bash
BASH_ARGC=()
BASH_ARGV=()
BASH_EXECUTION_STRING=set
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="3" [1]="2" [2]="39" [3]="1" [4]="release"
[5]="x86_64-pc-linux-gnu")
BASH_VERSION='3.2.39(1)-release'
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-MMD9PvsE4i,guid=e29ea64978ac04095789eeb6497528e9
DESKTOP_SESSION=e16
DESKTOP_STARTUP_ID=e16/55:0:0,0
DIRSTACK=()
DISPLAY=:0.0
EBIN=/usr/bin
ECACHEDIR=/home/sport/.e16
ECONFDIR=/home/sport/.e16
EDITOR=/usr/bin/vim
ENL_DBUS_NAME=org.e16.wm.d0s0
EROOT=/usr/share/e16
ETHEME=/usr/share/e16/themes/winter
EUID=1000
EVERSION=0.16.8.13
GDMSESSION=e16
GDM_LANG=en_US.UTF-8
GDM_XSERVER_LOCATION=local
GPG_AGENT_INFO=/tmp/gpg-jvBqg5/S.gpg-agent:9021:1
GROUPS=()
HOME=/home/sport
HOSTNAME=wolf
HOSTTYPE=x86_64
ICAROOT=/usr/lib/ICAClient
IFS=$' \t\n'
KDEWM=enlightenment
LANG=en_US.UTF-8
LOGNAME=sport
MACHTYPE=x86_64-pc-linux-gnu
MAIL=/var/spool/mail/sport
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH='/sbin/:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/games:/usr/local/java/current/bin:~/bin:~/scripts'
PPID=8970
PS4='+ '
PWD=/home/sport
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:interactive-comments
SHLVL=1
SSH_AGENT_PID=8969
SSH_AUTH_SOCK=/tmp/ssh-jISVSt8968/agent.8968
TERM=dumb
UID=1000
USER=sport
USERNAME=sport
VTK_DATA_ROOT=/usr/share/vtkdata
WINDOWPATH=7
WINDOW_MANAGER=/usr/bin/enlightenment
XAUTHORITY=/home/sport/.Xauthority
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/
_=bash


> dpkg -i schroot-xxx.deb (plus the other packages if needed)
> Also make sure these packages are installed:
> libc6-dbg libstdc++6-xx-dbg (xx=GCC version) libboostxx-dbg (xx=boost version)

I was able to install all of the above.

> Next, run schroot but from eesh and in gdb:

I'm not quite getting what you want; here is what I did (I have to run
gdb against eesh since eesh executes schroot):

[Tue 23:50][pts/19 0]$ gdb eesh
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(no debugging symbols found)
(gdb) run exec schroot -p echo foo `date` > ~/bar.txt 2>&1
Starting program: /usr/bin/eesh exec schroot -p echo foo `date` > ~/bar.txt 2>&1
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program exited normally.

Oddly enough, schroot appears not to have segfaulted but bar.txt is empty:
[Tue 23:53][pts/19 0]$ cat bar.txt
[Tue 23:53][pts/19 0]$

I could be screwing something up here, I may play around with this
some more to see if we can get something more informative.





More information about the Buildd-tools-devel mailing list