From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JiYDA-00065C-Sx for qemu-devel@nongnu.org; Sun, 06 Apr 2008 12:59:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JiYD9-00062z-IT for qemu-devel@nongnu.org; Sun, 06 Apr 2008 12:59:20 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JiYD9-00062u-AO for qemu-devel@nongnu.org; Sun, 06 Apr 2008 12:59:19 -0400 Received: from bsdimp.com ([199.45.160.85] helo=harmony.bsdimp.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JiYD8-0005a1-Rr for qemu-devel@nongnu.org; Sun, 06 Apr 2008 12:59:19 -0400 Date: Sun, 06 Apr 2008 10:58:52 -0600 (MDT) Message-Id: <20080406.105852.-135506270.imp@bsdimp.com> Subject: Re: [Qemu-devel] QEMU refusing to die on FreeBSD host From: "M. Warner Losh" In-Reply-To: <20080406163440.GA47504@saturn.kn-bremen.de> References: <47F857CB.1000502@gmail.com> <20080406163440.GA47504@saturn.kn-bremen.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, nox@jelal.kn-bremen.de In message: <20080406163440.GA47504@saturn.kn-bremen.de> Juergen Lock writes: : On Sun, Apr 06, 2008 at 12:55:39AM -0400, Jake Myers wrote: : > Hello, : > : > On FreeBSD 7-STABLE, qemu refuses to exit even after the window is closed. : > It is stuck so badly that even kill -9 fails to stop it. I looked in top to : > see what it was doing that would cause it to lock so badly: : > : > PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND : > 34859 root 1 -8 20 433M 416M devdrn 9:49 0.00% qemu : > : > I believe the problem is that qemu for some reason refuses to stop trying : > to use the kqemu device. : > : > I am running the latest qemu (0.9.1). I can provide a backtrace on request : > (I'm really busy right now with other things, so I didn't have time to : > attach one). : : Yeah this looks like its the same FreeBSD 7.x/SMP issue that I already : got reports of (refcount problem, similar to what has already been fixed : once, only this time it seems to be a race...) : : If it is, you should be able to work around it by using an uniprocessor : host kernel until a fix is known. Well, reboot also works, since qemu that gets stuck will slowly be paged out to the swap partition... it isn't a huge deal from a practical perspective... Of course, this is just until the bug is fixed... Warner