From owner-freebsd-threads@FreeBSD.ORG Thu Sep 9 20:42:53 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 D6A8216A4CE; Thu, 9 Sep 2004 20:42:53 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD71843D53; Thu, 9 Sep 2004 20:42:53 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 86D347A3D2; Thu, 9 Sep 2004 13:42:53 -0700 (PDT) Message-ID: <4140C04D.1060906@elischer.org> Date: Thu, 09 Sep 2004 13:42:53 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Andrew Gallatin 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> <16704.45327.42494.922427@grasshopper.cs.duke.edu> In-Reply-To: <16704.45327.42494.922427@grasshopper.cs.duke.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 20:42:54 -0000 Andrew Gallatin wrote: >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? > I think that this would possibly GO AWAY of you disab;ed preemption. which would make it very hard to debug :-) > >% cat opt_sched.h >#define PREEMPTION 1 >#define SCHED_4BSD 1 > > >Drew > >