Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Oct 2006 11:55:38 -0400
From:      Mikhail Teterin <mi+mx@aldan.algebra.com>
To:        David Xu <davidxu@freebsd.org>
Cc:        gnome@freebsd.org, threads@freebsd.org
Subject:   Re: devel/nspr's self-test failing: `mutex is on list'
Message-ID:  <200610201155.38952.mi%2Bmx@aldan.algebra.com>
In-Reply-To: <45367CC0.9050304@freebsd.org>
References:  <200610192217.17383.mi%2Bmx@aldan.algebra.com> <45367CC0.9050304@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
середа 18 жовтень 2006 15:13, David Xu написав:
> Which thread library are you using ? have you tried libthr ?

As the error message was pointing out, the thread library was libpthread:

Fatal error 'mutex is on list' at line 540 in file /usr/src/lib/libpthread/thread/thr_mutex.c (errno = 43)

Switching to libthr does help... I added the following two lines to my
/etc/libmap.conf:

	[forktest]
	libpthread.so.2 libthr.so.2

and re-ran work/nspr-4.6.3/mozilla/nsprpub/build/pr/tests/forktest:

	Wait one second before accept
	Wait one second before connect
	Accepting connection at port 65406
	Connecting to port 65406
	Writing message "Hello world!"
	Received "Hello world!" from the client
	The message is received correctly
	Fork succeeded.  Parent process continues.
	Wait one second before accept
	Wait one second before connect
	Fork succeeded.  Child process continues.
	Wait one second before accept
	Wait one second before connect
	Accepting connection at port 51343
	Connecting to port 51343
	Accepting connection at port 50506
	Writing message "Hello world!"
	Received "Hello world!" from the client
	Connecting to port 50506
	Writing message "Hello world!"
	Received "Hello world!" from the client
	The message is received correctly
	The message is received correctly
	Child process exits.
	Parent process exits.
	PASSED

pthread is the default thread implementation, though, is not it? Can it
be fixed in time before 6.2 is released?

Thanks!

	-mi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610201155.38952.mi%2Bmx>