From owner-freebsd-threads@FreeBSD.ORG Mon Apr 21 07:57:21 2003 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 D4B8537B401; Mon, 21 Apr 2003 07:57:21 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0637C43FBF; Mon, 21 Apr 2003 07:57:20 -0700 (PDT) (envelope-from davidxu@freebsd.org) Received: from tiger (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with SMTP id h3LEvHUp077950; Mon, 21 Apr 2003 07:57:19 -0700 (PDT) (envelope-from davidxu@freebsd.org) Message-ID: <000b01c30816$e71101a0$0701a8c0@tiger> From: "David Xu" To: "Daniel Eischen" , References: Date: Mon, 21 Apr 2003 23:01:33 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Subject: Re: Thread-related LOR in exit1() (fwd) X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David Xu List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2003 14:57:22 -0000 ----- Original Message -----=20 From: "Daniel Eischen" To: Cc: Sent: Monday, April 21, 2003 10:33 PM Subject: Thread-related LOR in exit1() (fwd) > David, did you see this message sent to -current? >=20 I have committed a fix. > Also, I have scope system threads running in a simple test. I'm > getting EPROCLIM though when trying to create more than 4 or so > of them (KSEs with their own KSEG). >=20 Yeah, sysctl -a |grep kern.threads should show the reason, please increase max_groups_per_proc sysctl by = hand, I know it's too small. :-) > Here's the patches to libpthread that I'm currently using along > with a test program. >=20 > http://people.freebsd.org/~deischen/kse/libpthread.diffs > http://people.freebsd.org/~deischen/kse/thread_test2.c >=20 I am going to sleep again, I will test it tomorrow. it seems KMF_NOCOMPLETED should be added in _kse_lock_wait(). > --=20 > Dan >=20 > ---------- Forwarded message ---------- > Date: Mon, 21 Apr 2003 20:25:41 +1000 > From: Tim Robbins > To: current@freebsd.org > Subject: Thread-related LOR in exit1() >=20 > While running a trivial test program linked with libkse that created > 3 threads: >=20 > lock order reversal > 1st 0xc0f0f428 process lock (process lock) @ = /usr/src/sys/kern/kern_exit.c:134 > 2nd 0xc02f75c0 Giant (Giant) @ /usr/src/sys/kern/kern_exit.c:142 >=20 >=20 > Tim > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org" >=20 > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to = "freebsd-threads-unsubscribe@freebsd.org"