Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 May 2003 00:02:50 -0400
From:      Mike Makonnen <mtm@identd.net>
To:        Glenn Johnson <glennpj@charter.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Libthr stable enough for testing
Message-ID:  <20030529040251.ZKLF3199.pop016.verizon.net@kokeb.ambesa.net>
In-Reply-To: <20030529025735.GA2882@gforce.johnson.home>
References:  <20030526225111.HVVN25800.out006.verizon.net@kokeb.ambesa.net> <20030529025735.GA2882@gforce.johnson.home>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 28 May 2003 21:57:35 -0500
Glenn Johnson <glennpj@charter.net> wrote:

> 
> It seems to be working fine on a UP machine but it locks up my SMP
> machine just trying to load a gnome session.  It leaves an image on the
> screen but the keyboard and mouse stop responding and I can not ssh into
> the box.

Please try the attached patch and let me know how it works.

Cheers.
-- 
Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm@identd.net | D228 1A6F C64E 120A A1C9  A3AA DAE1 E2AF DBCC 68B9
mtm@FreeBSD.Org| FreeBSD - The Power To Serve

Index: lib/libthr/thread/thr_create.c
===================================================================
RCS file: /home/ncvs/src/lib/libthr/thread/thr_create.c,v
retrieving revision 1.9
diff -u -r1.9 thr_create.c
--- lib/libthr/thread/thr_create.c	26 May 2003 00:37:07 -0000	1.9
+++ lib/libthr/thread/thr_create.c	29 May 2003 03:58:47 -0000
@@ -171,7 +171,6 @@
 	new_thread->uniqueid = next_uniqueid++;
 
 	THREAD_LIST_LOCK;
-	_thread_critical_enter(new_thread);
 
 	/*
 	 * Check if the garbage collector thread
@@ -202,8 +201,6 @@
 
 	/* Return a pointer to the thread structure: */
 	(*thread) = new_thread;
-
-	_thread_critical_exit(new_thread);
 
 	/*
 	 * Start a garbage collector thread



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030529040251.ZKLF3199.pop016.verizon.net>