From owner-freebsd-current@FreeBSD.ORG Thu Nov 4 22:16:53 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18BED16A4CE; Thu, 4 Nov 2004 22:16:53 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0685843D69; Thu, 4 Nov 2004 22:16:53 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from [127.0.0.1] (davidxu@localhost [127.0.0.1]) iA4MGohT062470; Thu, 4 Nov 2004 22:16:51 GMT (envelope-from davidxu@freebsd.org) Message-ID: <418AAA53.5090403@freebsd.org> Date: Fri, 05 Nov 2004 06:16:51 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040921 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marc Ramirez References: <200411020143.34251.gte990t@mail.gatech.edu> <200411041525.51985.marc.ramirez@bluecirclesoft.com> <418A955C.9080704@elischer.org> <200411041619.35640.marc.ramirez@bluecirclesoft.com> In-Reply-To: <200411041619.35640.marc.ramirez@bluecirclesoft.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org cc: re@freebsd.org cc: Julian Elischer cc: Ken Smith Subject: Re: [FreeBSD 5.3-RC2] Processes STILL hanging in unkillable state X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 04 Nov 2004 22:16:53 -0000 Marc Ramirez wrote: >Thanks for looking! > >On Thursday 04 November 2004 03:47 pm, Julian Elischer wrote: > > >>> thread 0xc2081e10 ksegrp 0xc2154310 [SUSP] >>> thread 0xc187a960 ksegrp 0xc2154310 [SLPQ spltwt 0xc138fd98][SLP] >>> thread 0xc2156960 ksegrp 0xc2154310 [SUSP] >>> thread 0xc2157000 ksegrp 0xc2154310 [SUSP] >>> thread 0xc2157190 ksegrp 0xc2154310 [SLPQ select 0xc08e44c4][SLP][SUSP] >>> thread 0xc2156190 ksegrp 0xc2154310 [SLPQ accept 0xc216ae26][SLP][SUSP] >>> thread 0xc2156320 ksegrp 0xc187dc40 [SUSP] >>> >>> >>showing the output of >>show thread 0xc2081e10 >>(etc) >>for each thread >>should show the backtrace of each thread (I think) >> >> > >The output of this is at bottom. > > >>I suspect that all the threads are waiting for thread 0xc187a960 to wake >>up and suspend >>for some single-threading purpose. >>but it is hard to tell. >> >> I have committed a fix, can you try ? >davidxu 2004-11-04 22:13:16 UTC > > FreeBSD src repository > > Modified files: > sys/kern kern_thread.c > Log: > Don't forget to turn off P_SINGLE_BOUNDARY for thread_single(SINGLE_EXIT), > otherwise a threaded process which calls execv() will hang in kernel and > may can not be killed! > > Revision Changes Path > 1.205 +1 -1 src/sys/kern/kern_thread.c >