From owner-freebsd-threads@FreeBSD.ORG Fri Oct 20 15:56:01 2006 Return-Path: X-Original-To: threads@freebsd.org 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 528B616A407; Fri, 20 Oct 2006 15:56:01 +0000 (UTC) (envelope-from mi+mx@aldan.algebra.com) Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C91F43D45; Fri, 20 Oct 2006 15:56:00 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from mteterin.us.murex.com (mx-broadway [38.98.68.18]) by corbulon.video-collage.com (8.13.6/8.13.6) with ESMTP id k9KFtipN086930 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 Oct 2006 11:55:45 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from mteterin.us.murex.com (mteterin@localhost [127.0.0.1]) by mteterin.us.murex.com (8.13.6/8.13.6) with ESMTP id k9KFtdQE080190; Fri, 20 Oct 2006 11:55:39 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by mteterin.us.murex.com (8.13.6/8.13.6/Submit) id k9KFtd5p080189; Fri, 20 Oct 2006 11:55:39 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) X-Authentication-Warning: mteterin.us.murex.com: mteterin set sender to mi+mx@aldan.algebra.com using -f From: Mikhail Teterin Organization: Virtual Estates, Inc. To: David Xu Date: Fri, 20 Oct 2006 11:55:38 -0400 User-Agent: KMail/1.9.1 References: <200610192217.17383.mi+mx@aldan.algebra.com> <45367CC0.9050304@freebsd.org> In-Reply-To: <45367CC0.9050304@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200610201155.38952.mi+mx@aldan.algebra.com> X-Virus-Scanned: ClamAV 0.88.4/2058/Fri Oct 20 08:22:07 2006 on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 Cc: gnome@freebsd.org, threads@freebsd.org Subject: Re: devel/nspr's self-test failing: `mutex is on list' X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Oct 2006 15:56:01 -0000 середа 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