From owner-freebsd-threads@FreeBSD.ORG Tue Aug 2 14:00:41 2005 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FA9916A41F for ; Tue, 2 Aug 2005 14:00:41 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83A6843D5C for ; Tue, 2 Aug 2005 14:00:38 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j72E0cWP020953 for ; Tue, 2 Aug 2005 14:00:38 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j72E0cZr020949; Tue, 2 Aug 2005 14:00:38 GMT (envelope-from gnats) Resent-Date: Tue, 2 Aug 2005 14:00:38 GMT Resent-Message-Id: <200508021400.j72E0cZr020949@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-threads@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Mikhail T." Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73CEE16A41F; Tue, 2 Aug 2005 13:56:39 +0000 (GMT) (envelope-from mi@tulik.bychok.com) Received: from tulik.bychok.com (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3E5143D48; Tue, 2 Aug 2005 13:56:36 +0000 (GMT) (envelope-from mi@tulik.bychok.com) Received: from tulik.bychok.com (localhost [127.0.0.1]) by tulik.bychok.com (8.13.3/8.13.3) with ESMTP id j72DuaFO026003; Tue, 2 Aug 2005 09:56:36 -0400 (EDT) (envelope-from mi@tulik.bychok.com) Received: (from mi@localhost) by tulik.bychok.com (8.13.3/8.13.3/Submit) id j72DuZ7x026002; Tue, 2 Aug 2005 09:56:35 -0400 (EDT) (envelope-from mi) Message-Id: <200508021356.j72DuZ7x026002@tulik.bychok.com> Date: Tue, 2 Aug 2005 09:56:35 -0400 (EDT) From: "Mikhail T." To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: gnome@FreeBSD.org, freebsd-threads@FreeBSD.org Subject: threads/84483: problems with devel/nspr and -lc_r on 4.x X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Mikhail T." List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2005 14:00:41 -0000 >Number: 84483 >Category: threads >Synopsis: problems with devel/nspr and -lc_r on 4.x >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-threads >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 02 14:00:37 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Mikhail T. >Release: FreeBSD 4.11-STABLE i386 >Organization: Virtual Estates, Inc. >Environment: System: FreeBSD tulik.bychok.com 4.11-STABLE FreeBSD 4.11-STABLE #1: Wed Jul 20 21:04:19 EDT 2005 mi@tulik.bychok.com:/home/src/sys/compile/TULIK i386 >Description: The self-tests, which come with NSPR (devel/nspr port) are now patched and built to be meaningful. The also succeed on FreeBSD-5. On FreeBSD-4 some tests hang for ever all (or most) having to do with semaphores. >How-To-Repeat: Update to the very latest version of the devel/nspr port. Run: make build test Some tests at the beginning may take a while, but the first one to truly hang is nameshm1: (gdb) where #0 0x280cfeac in semsys () from /usr/lib/libc_r.so.4 #1 0x280c7122 in semop () from /usr/lib/libc_r.so.4 #2 0x80526d8 in PR_WaitSemaphore () #3 0x804c1d0 in ClientServerTest () #4 0x804c643 in main () #5 0x804b556 in _start () You can kill the hung ones (killall nameshm1) and allow the test harness to proceed to the next one (randseed): (gdb) where #0 0x280dcf38 in __sys_poll () from /usr/lib/libc_r.so.4 #1 0x280dc41d in _thread_kern_sched_state_unlock () from /usr/lib/libc_r.so.4 #2 0x280dbdd2 in _thread_kern_scheduler () from /usr/lib/libc_r.so.4 #3 0x0 in ?? () A thread-developer needs to look at this to either fix -lc_r, or point out the bugs in the NSPR or its self-tests. The tests are single-file C-programs in work/nspr-4.6/mozilla/nsprpub/pr/tests they are run from their build-area in work/nspr-4.6/mozilla/nsprpub/build/pr/tests/ Again, none of these problems exist on 5.x and, presumably, 6.x (except for the instrumt-test, which crashes on all and is currently patched-out from the list). >Fix: >Release-Note: >Audit-Trail: >Unformatted: