Your message dated Tue, 17 Jan 2012 23:49:08 +0000
with message-id <[email protected]>
and subject line Bug#645223: fixed in schroot 1.4.24-1
has caused the Debian Bug report #645223,
regarding schroot: 15killprocs has a race condition when killing processes
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
645223: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=645223
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: schroot
Invoking /bin/kill on processes fails if the process already
quit by itself while the schroot shutdown runs. Because of "set -e"
this causes the whole shutdown to fail.
I have seen this occasionally in a nightly testing setup involving
a D-Bus session: when the D-Bus daemon stops, all other processes
depending on it also shut down automatically, with or without being
killed.
Attached a patch which wraps kill in a function which merely logs
the problem instead of aborting.
-- System Information:
Debian Release: 6.0.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set
to POSIX)
Shell: /bin/sh linked to /bin/dash
Versions of packages schroot depends on:
ii libboost-filesystem1.4 1.42.0-4 filesystem operations
(portable pa
ii libboost-program-optio 1.42.0-4 program options library for
C++
ii libboost-regex1.42.0 1.42.0-4 regular expression library
for C++
ii libboost-system1.42.0 1.42.0-4 Operating system (e.g.
diagnostics
ii libc6 2.11.2-10 Embedded GNU C Library:
Shared lib
ii libgcc1 1:4.4.5-8 GCC support library
ii liblockdev1 1.0.3-1.4 Run-time shared library for
lockin
ii libpam0g 1.1.1-6.1 Pluggable Authentication
Modules l
ii libstdc++6 4.4.5-8 The GNU Standard C++
Library v3
ii libuuid1 2.17.2-9 Universally Unique ID
library
ii schroot-common 1.4.19-1+squeeze1 common files for schroot
schroot recommends no packages.
Versions of packages schroot suggests:
pn aufs-modules | unionfs-module <none> (no description available)
pn btrfs-tools <none> (no description available)
pn debootstrap <none> (no description available)
pn lvm2 <none> (no description available)
pn unzip <none> (no description available)
-- Configuration Files:
/etc/schroot/default/fstab changed [not included]
/etc/schroot/schroot.conf changed [not included]
/etc/schroot/setup.d/15killprocs changed [not included]
-- no debconf information
*** 15killprocs.dpkg Sun Aug 28 13:24:38 2011
--- setup.d/15killprocs Sun Aug 28 13:27:27 2011
***************
*** 29,34 ****
--- 29,45 ----
fatal "script-config file '$CHROOT_SCRIPT_CONFIG' does not exist"
fi
+ # Wrapper around kill command. Turns errors into
+ # warnings when running in verbose mode, otherwise
+ # it ignores them.
+ # args: parameters for kill
+ kill_proc()
+ {
+ if ! kill "$@" 2>/dev/null; then
+ info "kill $@ failed: process already gone?"
+ fi
+ }
+
# Kill all processes that were run from within the chroot environment
# $1: mount base location
do_kill_all()
***************
*** 51,57 ****
info "Killing left-over pid $pid (${exe##$1})"
info " Sending SIGTERM to pid $pid"
! /bin/kill -TERM "$pid" 2>/dev/null
count=0
max=5
--- 62,68 ----
info "Killing left-over pid $pid (${exe##$1})"
info " Sending SIGTERM to pid $pid"
! kill_proc -TERM "$pid"
count=0
max=5
***************
*** 62,68 ****
# Wait for $max seconds for process to die before -9'ing it
if [ "$count" -eq "$max" ]; then
info " Sending SIGKILL to pid $pid"
! /bin/kill -KILL "$pid" 2>/dev/null
sleep 1
break
fi
--- 73,79 ----
# Wait for $max seconds for process to die before -9'ing it
if [ "$count" -eq "$max" ]; then
info " Sending SIGKILL to pid $pid"
! kill_proc -KILL "$pid"
sleep 1
break
fi
--- End Message ---
--- Begin Message ---
Source: schroot
Source-Version: 1.4.24-1
We believe that the bug you reported is fixed in the latest version of
schroot, which is due to be installed in the Debian FTP archive:
dchroot-dsa_1.4.24-1_amd64.deb
to main/s/schroot/dchroot-dsa_1.4.24-1_amd64.deb
dchroot_1.4.24-1_amd64.deb
to main/s/schroot/dchroot_1.4.24-1_amd64.deb
libsbuild-dev_1.4.24-1_amd64.deb
to main/s/schroot/libsbuild-dev_1.4.24-1_amd64.deb
libsbuild-doc_1.4.24-1_all.deb
to main/s/schroot/libsbuild-doc_1.4.24-1_all.deb
schroot-common_1.4.24-1_all.deb
to main/s/schroot/schroot-common_1.4.24-1_all.deb
schroot-dbg_1.4.24-1_amd64.deb
to main/s/schroot/schroot-dbg_1.4.24-1_amd64.deb
schroot_1.4.24-1.debian.tar.gz
to main/s/schroot/schroot_1.4.24-1.debian.tar.gz
schroot_1.4.24-1.dsc
to main/s/schroot/schroot_1.4.24-1.dsc
schroot_1.4.24-1_amd64.deb
to main/s/schroot/schroot_1.4.24-1_amd64.deb
schroot_1.4.24.orig.tar.bz2
to main/s/schroot/schroot_1.4.24.orig.tar.bz2
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Roger Leigh <[email protected]> (supplier of updated schroot package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Format: 1.8
Date: Tue, 17 Jan 2012 22:40:09 +0000
Source: schroot
Binary: schroot-common libsbuild-dev schroot-dbg libsbuild-doc schroot dchroot
dchroot-dsa
Architecture: source all amd64
Version: 1.4.24-1
Distribution: unstable
Urgency: low
Maintainer: Debian buildd-tools Developers
<[email protected]>
Changed-By: Roger Leigh <[email protected]>
Description:
dchroot - Execute commands in a chroot environment
dchroot-dsa - Execute commands in a chroot environment
libsbuild-dev - development files for the Debian source builder
libsbuild-doc - development documentation for the Debian source builder
schroot - Execute commands in a chroot environment
schroot-common - common files for schroot
schroot-dbg - schroot, dchroot and dchroot-dsa debuggging symbols
Closes: 645223 656239
Changes:
schroot (1.4.24-1) unstable; urgency=low
.
* New upstream stable release.
* Add multiarch support. Backported from schroot 1.5.1.
* Use debhelper 9 and dh using compat level 9.
* Use Standards-Version 3.9.2.
* Build-Depend upon groff-base for soelim.
* Support for zip file archives has been removed. zip was not able
to archive named pipes and device nodes, and so was not usable
for chroot archival.
* Don't Suggest unzip now zip is not a supported archive
format.
* Correct race condition in 15killprocs (Closes: #645223). Thanks to
Patrick Ohly for this patch.
* Fix name lookup issue causing FTBFS with GCC 4.7 (Closes: #656239).
Thanks to Ralf Corsépius for this patch.
Checksums-Sha1:
0abbbc97385bf786cf5e3304c10a44ace451bffc 1803 schroot_1.4.24-1.dsc
547bc3ab90bfe6cd23cd9d99dcc42ff2ba04fa90 827737 schroot_1.4.24.orig.tar.bz2
7f13e6fc7ff95c2d18827e54aa7f01de55729181 24731 schroot_1.4.24-1.debian.tar.gz
83de17266f85e5292d0917c9bb1150ba56c50d13 251886 schroot-common_1.4.24-1_all.deb
af48fb0a8953e26811c1cf134f41f5cbbe8f100b 1948210
libsbuild-dev_1.4.24-1_amd64.deb
2d11b71cc5a29b3361f1f0de43037b7a6565e88a 25007408
schroot-dbg_1.4.24-1_amd64.deb
30ba42bc276e69975a1e3dab3241ecd85ca98f5e 7258220 libsbuild-doc_1.4.24-1_all.deb
66246b87726a9f0a603007abeafe1d3ad5427d0a 907922 schroot_1.4.24-1_amd64.deb
5da443f4d22b1903ea4169be2a346ba27a1056aa 359652 dchroot_1.4.24-1_amd64.deb
b48132b6f3804d3db7380f07ea39951a9caef6d7 358604 dchroot-dsa_1.4.24-1_amd64.deb
Checksums-Sha256:
ca3a43d59845d96e17887cd62aa205dd54bbf3c8e229a7aaa2fafeb6e88eb5dd 1803
schroot_1.4.24-1.dsc
53ff37d4ee6d986e2052fcc18a6ff752fa18a354be4b5f56e70e85a2a89f5c29 827737
schroot_1.4.24.orig.tar.bz2
9e1d86d7a68042c8541be27adcc415ca10ec8a4a46d2aef76340bcdd87abd049 24731
schroot_1.4.24-1.debian.tar.gz
369949299f6f5b7af358af14248a28e8280e13ee51d36798408ab155718895da 251886
schroot-common_1.4.24-1_all.deb
7865c8dfd2f4073fbf751d48818ecc283cd7b821ef417c5b483c993df9afe368 1948210
libsbuild-dev_1.4.24-1_amd64.deb
b68feb809e1e3da3f6edca8da9a92eda15a9006892b78549a4edf8991aa983d0 25007408
schroot-dbg_1.4.24-1_amd64.deb
418e654502031bf85e86c6cc38176cc07aedbf8416decccd7f56a740ecb98087 7258220
libsbuild-doc_1.4.24-1_all.deb
145beb5aafad60d07af7aa19e9f60dcacf61e1f21b576c514dbe241626ea126e 907922
schroot_1.4.24-1_amd64.deb
46be762b7f53f89c35e85da2c9ecef06deed30125571dd9cfb148179013f987f 359652
dchroot_1.4.24-1_amd64.deb
9d77b7958f2242149475fed6c7d20329b48afb26b4dcf8a81708013dae55fe0a 358604
dchroot-dsa_1.4.24-1_amd64.deb
Files:
c9d01dc02e53bc245e9cd8a027e5eb7f 1803 admin optional schroot_1.4.24-1.dsc
4a92197c8c251d9a372899537658e44a 827737 admin optional
schroot_1.4.24.orig.tar.bz2
d904cffd3920061cee7c27a070cd63f0 24731 admin optional
schroot_1.4.24-1.debian.tar.gz
9f4ca3d2260d55115f42ea84e9714583 251886 admin optional
schroot-common_1.4.24-1_all.deb
b067ddb79a0b40aaf0f7cdc1f9c1415c 1948210 libdevel optional
libsbuild-dev_1.4.24-1_amd64.deb
355e5ac41deda82a44c228edc6fcd079 25007408 debug extra
schroot-dbg_1.4.24-1_amd64.deb
1e714a5a1c1aa57b760cda2dc901747a 7258220 doc optional
libsbuild-doc_1.4.24-1_all.deb
b5bcd6ddbed8a63737371d47b4ab8638 907922 admin optional
schroot_1.4.24-1_amd64.deb
c6e377001e67b3c791342ccfd0e821b4 359652 admin optional
dchroot_1.4.24-1_amd64.deb
aeaac62cfe81eea9f54a16bad19aff8d 358604 admin optional
dchroot-dsa_1.4.24-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEAREDAAYFAk8WBYgACgkQVcFcaSW/uEisGQCgqGmpy3M6njmy8Oh2AULPZW84
mCkAoJMCG2yUYk07awF6ETLam//6YtPF
=df1L
-----END PGP SIGNATURE-----
--- End Message ---