From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1V9DKf-0002TB-Rc for user-mode-linux-devel@lists.sourceforge.net; Tue, 13 Aug 2013 12:04:13 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by sog-mx-3.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1V9DKe-0007xL-Cj for user-mode-linux-devel@lists.sourceforge.net; Tue, 13 Aug 2013 12:04:13 +0000 Date: Tue, 13 Aug 2013 13:04:01 +0100 From: "Richard W.M. Jones" Message-ID: <20130813120401.GE10864@redhat.com> References: <20130811174831.GD10864@redhat.com> <20130812085300.GV5918@redhat.com> <20130813103603.GA27173@redhat.com> <520A0F35.8000905@nod.at> <20130813110651.GX5918@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20130813110651.GX5918@redhat.com> List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net Subject: Re: [uml-devel] How to reliably kill all vmlinux processes for a single VM? To: Richard Weinberger Cc: "user-mode-linux-devel@lists.sourceforge.net" OK, I understand what's going wrong and how to reproduce the signal-to-parent problem. It does look like a bug in vmlinux. It happens if the init process (PID 1) inside the VM gets a segfault. In libguestfs we can force that easily, as there is a test path for exercising segfaults in our init process: ---------------------------------------------------------------------- #!/bin/bash - export LIBGUESTFS_BACKEND=uml export LIBGUESTFS_QEMU=/home/rjones/d/linux/vmlinux export LIBGUESTFS_DEBUG=1 export LIBGUESTFS_TRACE=1 ./run strace -o /tmp/strace.log ./fish/guestfish -a /dev/null <