From owner-freebsd-threads@FreeBSD.ORG Fri Oct 20 02:17:28 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 0972D16A403; Fri, 20 Oct 2006 02:17:28 +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 D177C43D5F; Fri, 20 Oct 2006 02:17:24 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from [172.21.130.86] (mx-broadway [38.98.68.18]) by corbulon.video-collage.com (8.13.6/8.13.6) with ESMTP id k9K2HMig069077 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Oct 2006 22:17:23 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) From: Mikhail Teterin Organization: Virtual Estates, Inc. To: threads@freebsd.org, gnome@freebsd.org Date: Thu, 19 Oct 2006 22:17:16 -0400 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610192217.17383.mi+mx@aldan.algebra.com> X-Virus-Scanned: ClamAV 0.88.4/2051/Thu Oct 19 15:27:43 2006 on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 Cc: Subject: 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 02:17:28 -0000 Unfortunately, the tests are not being run automatically every time the port builds, so we don't know, when the problem began... To reproduce: % cd /usr/ports/devel/nspr % make build test [...] forktest FAILED forktest: Wait one second before accept forktest: Wait one second before connect forktest: Connecting to port 51686 forktest: Writing message "Hello world!" forktest: Accepting connection at port 51686 forktest: Received "Hello world!" from the client forktest: The message is received correctly forktest: Fork succeeded. Parent process continues. forktest: Wait one second before accept forktest: Wait one second before connect forktest: Fatal error 'mutex is on list' at line 540 in file /usr/src/lib/libpthread/thread/thr_mutex.c (errno = 43) forktest: Fork succeeded. Child process continues. forktest: Accepting connection at port 56714 forktest: Connecting to port 56714 forktest: Writing message "Hello world!" forktest: Received "Hello world!" from the client forktest: The message is received correctly forktest: Parent process exits. forktest: FAILED [...] I'm unsure, whether the bug is in the test itself or in the pthread, or in the nspr-library's threading implementation, but the test used to pass... Would a thread-expert care to investigate, please? Thanks! -mi