From owner-freebsd-current@FreeBSD.ORG Tue Oct 12 01:41:17 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9B5A1065673 for ; Tue, 12 Oct 2010 01:41:17 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BCD3D8FC0C; Tue, 12 Oct 2010 01:41:17 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o9C1fGHP055925; Tue, 12 Oct 2010 01:41:17 GMT (envelope-from davidxu@freebsd.org) Message-ID: <4CB42D3D.1050509@freebsd.org> Date: Tue, 12 Oct 2010 09:41:17 +0000 From: David Xu User-Agent: Thunderbird 2.0.0.24 (X11/20100630) MIME-Version: 1.0 To: Paul B Mahol References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: panic on kthread_exit under INVARIANTS X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2010 01:41:18 -0000 Paul B Mahol wrote: > Hi, > > If kernel threads were created via kproc_kthread_add() > when last kernel thread exits it will trigger panic. > > It panics in queue.h .... probably introduced with rec I have committed a patch, can you try it ? http://svn.freebsd.org/changeset/base/213714 Regards, David Xu