Date: Mon, 21 Apr 2003 23:01:33 +0800 From: "David Xu" <davidxu@freebsd.org> To: "Daniel Eischen" <eischen@pcnet1.pcnet.com>, <threads@freebsd.org> Subject: Re: Thread-related LOR in exit1() (fwd) Message-ID: <000b01c30816$e71101a0$0701a8c0@tiger> References: <Pine.GSO.4.10.10304211030080.11142-100000@pcnet1.pcnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----=20 From: "Daniel Eischen" <eischen@pcnet1.pcnet.com> To: <threads@freebsd.org> Cc: <davidxu@freebsd.org> 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 <tjr@freebsd.org> > 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000b01c30816$e71101a0$0701a8c0>