From owner-freebsd-threads@FreeBSD.ORG Thu Sep 9 19:37:59 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CACAF16A4CE; Thu, 9 Sep 2004 19:37:59 +0000 (GMT) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7512343D49; Thu, 9 Sep 2004 19:37:59 +0000 (GMT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.12.10/8.12.10) with ESMTP id i89JbuJt001827 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 9 Sep 2004 15:37:56 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.12.9p2/8.12.9/Submit) id i89JbpkK058606; Thu, 9 Sep 2004 15:37:51 -0400 (EDT) (envelope-from gallatin) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16704.45327.42494.922427@grasshopper.cs.duke.edu> Date: Thu, 9 Sep 2004 15:37:51 -0400 (EDT) To: Julian Elischer In-Reply-To: <4140AA2A.90605@elischer.org> References: <16703.11479.679335.588170@grasshopper.cs.duke.edu> <16703.12410.319869.29996@grasshopper.cs.duke.edu> <413F55B8.50003@elischer.org> <16703.28031.454342.774229@grasshopper.cs.duke.edu> <413F8DBB.5040502@elischer.org> <16704.40876.708925.425911@grasshopper.cs.duke.edu> <4140AA2A.90605@elischer.org> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid cc: John Baldwin cc: freebsd-threads@freebsd.org Subject: Re: Unkillable KSE threaded proc X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2004 19:37:59 -0000 Julian Elischer writes: > thanks, > I'm flooded with work for a couple of days.. Me too.. Sorry for the terribly latency in giving you more info. > it looks as if one ofthe threads (0xc1b614b0) has called exit, > whichmeans it is in thread_single() > waiting for all the other threads to suicide, but at least one of them > doen't want to.. > > Two of them (0xc1b61320 and 0xc2b6ce10) are refusing to finish up and exit > because they need the proc lock, which is owned by a fourth one.. > (0xc1b617d0) > > the fourth one has just preempted itself with some other thread > (3244003328 whatever that is in > hex (0xC15B9000)) do you still have the 'ps'? > what is thread (0xC15B9000)? > No, but I've got the dump. It looks like it was preempted by the fxp ethernet driver's ithread: (kgdb) p ((struct thread*)0xC15B9000)->td_proc->p_comm $7 = "irq31: fxp0\0\0\0\0\0\0\0\0" Maybe this would be easier to debug if I disabled preemption? % cat opt_sched.h #define PREEMPTION 1 #define SCHED_4BSD 1 Drew