From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1V9DfW-0003Hm-Kx for user-mode-linux-devel@lists.sourceforge.net; Tue, 13 Aug 2013 12:25:46 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by sog-mx-1.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1V9DfU-0006lc-02 for user-mode-linux-devel@lists.sourceforge.net; Tue, 13 Aug 2013 12:25:46 +0000 Date: Tue, 13 Aug 2013 13:25:33 +0100 From: "Richard W.M. Jones" Message-ID: <20130813122533.GF10864@redhat.com> References: <20130811174831.GD10864@redhat.com> <20130812085300.GV5918@redhat.com> <20130813103603.GA27173@redhat.com> <520A0F35.8000905@nod.at> <20130813110651.GX5918@redhat.com> <20130813120401.GE10864@redhat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: <20130813120401.GE10864@redhat.com> List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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" --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Aug 13, 2013 at 01:04:01PM +0100, Richard W.M. Jones wrote: > 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. To add an additional data-point, applying the attached patch causes the rogue SIGTERM-to-parent signal to disappear. So at least we know where it comes from! Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-COMMENT-OUT-KILL-SIGTERM.patch" >>>From 73e2153039803d6f8cec7425ae501f857d9523a9 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 13 Aug 2013 13:24:32 +0100 Subject: [PATCH] COMMENT OUT KILL SIGTERM --- arch/um/os-Linux/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/os-Linux/util.c b/arch/um/os-Linux/util.c index 492ef5e..a0f308e 100644 --- a/arch/um/os-Linux/util.c +++ b/arch/um/os-Linux/util.c @@ -108,7 +108,7 @@ void os_dump_core(void) */ signal(SIGTERM, SIG_IGN); - kill(0, SIGTERM); + //kill(0, SIGTERM); /* * Most of the other processes associated with this UML are * likely sTopped, so give them a SIGCONT so they see the -- 1.8.3.1 --SUOF0GtieIMvvwua Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk --SUOF0GtieIMvvwua Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel --SUOF0GtieIMvvwua--