From owner-freebsd-threads@FreeBSD.ORG Fri Oct 20 02:24:52 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 8620416A40F; Fri, 20 Oct 2006 02:24:52 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao02.cox.net (eastrmmtao02.cox.net [68.230.240.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id C716043D46; Fri, 20 Oct 2006 02:24:49 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao02.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20061020022450.IAYL10599.eastrmmtao02.cox.net@eastrmimpo02.cox.net>; Thu, 19 Oct 2006 22:24:50 -0400 Received: from mezz.mezzweb.com ([24.255.149.218]) by eastrmimpo02.cox.net with bizsmtp id cSQB1V00T4iy4EG0000000 Thu, 19 Oct 2006 22:24:12 -0400 Date: Thu, 19 Oct 2006 21:26:55 -0500 To: "Mikhail Teterin" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <200610192217.17383.mi+mx@aldan.algebra.com> Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: <200610192217.17383.mi+mx@aldan.algebra.com> User-Agent: Opera Mail/9.02 (Linux) 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 02:24:52 -0000 On Thu, 19 Oct 2006 21:17:16 -0500, Mikhail Teterin = wrote: > Unfortunately, the tests are not being run automatically every time th= e = > 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 =3D 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! It's known and there has a PR (ports/100785) for it with no solution. I = = have a backtrace that forktest dumped a core if you know how to dig in a= nd = solve it. http://people.freebsd.org/~mezz/gdb/gdb-nspr-forktest.txt marcus said, 'Looks like a potential symbol conflict, but without full = libpthread and libc symbols, it's hard to tell.' I have have done compil= ed = these with the debug but I haven't hear anything so far. Cheers, Mezz > -mi -- = mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src) http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org