Since the upgrade to baselayout-2.0.0_rc6 vserver guests tend to segfault upon shutdown: tomhendr@elaine $ sudo vserver my-vserver stop /usr/lib/util-vserver/vserver.stop: line 85: 7872 Segmentation fault "${NICE_CMD[@]}" "${CHBIND_CMD[@]}" "$_VTAG" --migrate "${OPTS_VTAG_ENTER[@]}" --silent -- $_VCONTEXT $SILENT_OPT --migrate --chroot --xid "$S_CONTEXT" -- "${INITCMD_STOP[@]}" A timeout occured while waiting for the vserver to finish and it will be killed by sending a SIGKILL signal. The following process list might be useful for finding out the reason of this behavior: ---------------------------------------------------------------------- ---------------------------------------------------------------------- tomhendr@elaine $ The only package upgraded when this started to appear, was baselayout in the guest, so while this is a segfault of the host systems' vserver.stop, I still suspect the guests baselayout to cause the problem. I can reproduce this on two separate x86 machines, a hardened server setup and a regular desktop. The host runs completely stable gentoo, the guest runs stable gentoo with the exception of (which is not optional for vserver): baselayout-2.0.0_rc6 and makedev-3.23.1. host system' info: Portage 2.1.3.16 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.20-vs2.2.0-gentoo i686) ================================================================= System uname: 2.6.20-vs2.2.0-gentoo i686 AMD Athlon(TM) XP 2000+ Timestamp of tree: Thu, 08 Nov 2007 20:17:01 +0000 app-shells/bash: 3.2_p17 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0_rc6 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r1 sys-devel/automake: 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--usepkg" FEATURES="collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://mirror.muntinternet.net/pub/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo" LINGUAS="en en_GB" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/tomhendrikx.nl" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="bitmap-fonts bzip2 cracklib crypt cups dri fortran gdbm iconv mudflap ncurses nls nptl nptlonly openmp pam pcre python readline ssl tcpd truetype-fonts type1-fonts unicode usb x86 xorg zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="mga" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS guest systems' info: Portage 2.1.3.16 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.20-vs2.2.0-gentoo i686) ================================================================= System uname: 2.6.20-vs2.2.0-gentoo i686 AMD Athlon(TM) XP 2000+ Timestamp of tree: Thu, 08 Nov 2007 20:17:01 +0000 app-shells/bash: 3.2_p17 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0_rc6 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r1 sys-devel/automake: 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--usepkg" FEATURES="collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://mirror.muntinternet.net/pub/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo" LINGUAS="en en_GB" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/tomhendrikx.nl" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="bitmap-fonts bzip2 cracklib crypt cups dri fortran gdbm iconv mudflap ncurses nls nptl nptlonly openmp pam pcre python readline ssl tcpd truetype-fonts type1-fonts unicode usb x86 xorg zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="mga" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Could be related to #198143 (since I'm running lvm) or #198380 (segfault). In the meantime please put rc5 back in the tree, since vserver guests require a 2.0.0 baselayout.
Well, if it is timeout related then openrc may fix things for you as you can now do this depend() { keywords notimeout } Which means that when a service depends on a service with that keyword then it will wait indefinitely until it finishes. If that doesn't fix it then vserver devs will have to.
I'm still not sure what caused this, but yesterday I upgraded one of my production servers with the old baselayout, to get some more proress on this bug. To my surprise, everything worked fine. 2 other vhosts done after that, none of them had earlier mentioned problems. This means that I can no longer reproduce the bug (no old vservers left), and it doesn't seem to cause ant problems any more. Earlier this month I rebooted into a new kernel (vmsplice() yadday yadda), which may have helped. Anyhow, resolving this one as invalid, when no one objects...