From owner-freebsd-threads@FreeBSD.ORG Mon Apr 5 07:08:38 2004 Return-Path: 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 7E49716A4CE; Mon, 5 Apr 2004 07:08:38 -0700 (PDT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2755B43D2F; Mon, 5 Apr 2004 07:08:38 -0700 (PDT) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: from dibbler.crodrigues.org (h00609772adf0.ne.client2.attbi.com[66.31.45.197]) by comcast.net (sccrmhc11) with ESMTP id <2004040514083701100c9m53e>; Mon, 5 Apr 2004 14:08:37 +0000 Received: from dibbler.crodrigues.org (localhost.crodrigues.org [127.0.0.1]) i35E8uLH031247; Mon, 5 Apr 2004 10:08:56 -0400 (EDT) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.crodrigues.org (8.12.11/8.12.11/Submit) id i35E8uYZ031246; Mon, 5 Apr 2004 10:08:56 -0400 (EDT) (envelope-from rodrigc) Date: Mon, 5 Apr 2004 10:08:56 -0400 (EDT) Message-Id: <200404051408.i35E8uYZ031246@dibbler.crodrigues.org> To: FreeBSD-gnats-submit@freebsd.org From: Craig Rodrigues X-send-pr-version: 3.113 X-GNATS-Notify: cc: freebsd-threads@freebsd.org Subject: Add linking information to pthread.3 man page X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Craig Rodrigues List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 14:08:38 -0000 >Submitter-Id: current-users >Originator: Craig Rodrigues >Organization: >Confidential: no >Synopsis: Add linking information to pthread.3 man page >Severity: non-critical >Priority: medium >Category: docs >Class: doc-bug >Release: FreeBSD 5.2-CURRENT i386 >Environment: System: FreeBSD dibbler.crodrigues.org 5.2-CURRENT FreeBSD 5.2-CURRENT #39: Sat Mar 13 14:49:20 EST 2004 rodrigc@dibbler.crodrigues.org:/usr/obj/usr/src/sys/MYKERNEL1 i386 >Description: Add library linking information to pthread.3 man page. Motivated by following discussion on freebsd-threads mailing list: http://lists.freebsd.org/pipermail/freebsd-threads/2004-March/001805.html >How-To-Repeat: >Fix: --- pthread.3.orig Mon Mar 29 09:57:00 2004 +++ pthread.3 Mon Mar 29 10:02:43 2004 @@ -36,6 +36,10 @@ .Sh NAME .Nm pthread .Nd POSIX thread functions +.Sh LIBRARY +.Lb libpthread +.Lb libthr +.Lb libc_r .Sh SYNOPSIS .In pthread.h .Sh DESCRIPTION From owner-freebsd-threads@FreeBSD.ORG Mon Apr 5 07:13:11 2004 Return-Path: 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 1917C16A4CE; Mon, 5 Apr 2004 07:13:11 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07D6543D2D; Mon, 5 Apr 2004 07:13:11 -0700 (PDT) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: from dibbler.crodrigues.org (h00609772adf0.ne.client2.attbi.com[66.31.45.197]) by comcast.net (rwcrmhc11) with ESMTP id <20040405141310013000uim9e>; Mon, 5 Apr 2004 14:13:10 +0000 Received: from dibbler.crodrigues.org (localhost.crodrigues.org [127.0.0.1]) i35EDT9E031377; Mon, 5 Apr 2004 10:13:29 -0400 (EDT) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.crodrigues.org (8.12.11/8.12.11/Submit) id i35EDTIE031376; Mon, 5 Apr 2004 10:13:29 -0400 (EDT) (envelope-from rodrigc) Date: Mon, 5 Apr 2004 10:13:29 -0400 (EDT) Message-Id: <200404051413.i35EDTIE031376@dibbler.crodrigues.org> To: FreeBSD-gnats-submit@freebsd.org From: Craig Rodrigues X-send-pr-version: 3.113 X-GNATS-Notify: cc: freebsd-threads@freebsd.org Subject: Add threds category to send-pr X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Craig Rodrigues List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 14:13:11 -0000 >Submitter-Id: current-users >Originator: Craig Rodrigues >Organization: >Confidential: no >Synopsis: Add threds category to send-pr >Severity: non-critical >Priority: medium >Category: gnu >Class: change-request >Release: FreeBSD 5.2-CURRENT i386 >Environment: System: FreeBSD dibbler.crodrigues.org 5.2-CURRENT FreeBSD 5.2-CURRENT #39: Sat Mar 13 14:49:20 EST 2004 rodrigc@dibbler.crodrigues.org:/usr/obj/usr/src/sys/MYKERNEL1 i386 >Description: Add threads category to send-pr, since there is now a freebsd-threads mailing list. >How-To-Repeat: >Fix: --- gnu/usr.bin/send-pr/categories.orig Mon Apr 5 10:09:46 2004 +++ gnu/usr.bin/send-pr/categories Mon Apr 5 10:10:19 2004 @@ -15,4 +15,5 @@ powerpc sparc64 standards +threads www From owner-freebsd-threads@FreeBSD.ORG Mon Apr 5 11:01:43 2004 Return-Path: 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 C827F16A4CE for ; Mon, 5 Apr 2004 11:01:43 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A96F643D45 for ; Mon, 5 Apr 2004 11:01:43 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) i35I1gbv070094 for ; Mon, 5 Apr 2004 11:01:42 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i35I1gP9070088 for freebsd-threads@freebsd.org; Mon, 5 Apr 2004 11:01:42 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 5 Apr 2004 11:01:42 -0700 (PDT) Message-Id: <200404051801.i35I1gP9070088@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-threads@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 18:01:43 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/06/13] kern/19247 threads uthread_sigaction.c does not do anything s [2004/03/15] kern/64313 threads FreeBSD (OpenBSD) pthread implicit set/un 2 problems total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/07/18] kern/20016 threads pthreads: Cannot set scheduling timer/Can o [2000/08/26] misc/20861 threads libc_r does not honor socket timeouts o [2001/01/19] bin/24472 threads libc_r does not honor SO_SNDTIMEO/SO_RCVT o [2001/01/25] bin/24632 threads libc_r delicate deviation from libc in ha o [2001/01/25] misc/24641 threads pthread_rwlock_rdlock can deadlock o [2001/11/26] bin/32295 threads pthread dont dequeue signals o [2002/02/01] i386/34536 threads accept() blocks other threads o [2002/05/25] kern/38549 threads the procces compiled whith pthread stoppe o [2002/06/27] bin/39922 threads [PATCH?] Threaded applications executed w o [2002/08/04] misc/41331 threads Pthread library open sets O_NONBLOCK flag o [2003/03/02] bin/48856 threads Setting SIGCHLD to SIG_IGN still leaves z o [2003/03/10] bin/49087 threads Signals lost in programs linked with libc a [2003/04/08] bin/50733 threads buildworld won't build, because of linkin o [2003/05/07] bin/51949 threads thread in accept cannot be cancelled 14 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/05/25] misc/18824 threads gethostbyname is not thread safe o [2000/10/21] misc/22190 threads A threaded read(2) from a socketpair(2) f o [2001/09/09] bin/30464 threads pthread mutex attributes -- pshared o [2002/05/02] bin/37676 threads libc_r: msgsnd(), msgrcv(), pread(), pwri s [2002/07/16] misc/40671 threads pthread_cancel doesn't remove thread from 5 problems total. From owner-freebsd-threads@FreeBSD.ORG Mon Apr 5 11:13:11 2004 Return-Path: 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 51A5E16A4CE for ; Mon, 5 Apr 2004 11:13:11 -0700 (PDT) Received: from shaft.techsupport.co.uk (shaft.techsupport.co.uk [212.250.77.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFCB543D60 for ; Mon, 5 Apr 2004 11:13:10 -0700 (PDT) (envelope-from setantae@submonkey.net) Received: from cpc2-cdif3-6-0-cust204.cdif.cable.ntl.com ([81.103.67.204] helo=shrike.submonkey.net ident=mailnull) by shaft.techsupport.co.uk with esmtp (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.31; FreeBSD) id 1BAYaq-000CFz-Dr; Mon, 05 Apr 2004 19:13:09 +0100 Received: from setantae by shrike.submonkey.net with local (Exim 4.31; FreeBSD) id 1BAYab-000CWG-Ob; Mon, 05 Apr 2004 19:12:53 +0100 Date: Mon, 5 Apr 2004 19:12:53 +0100 From: Ceri Davies To: freebsd-threads@FreeBSD.org Message-ID: <20040405181253.GL364@submonkey.net> References: <200404051413.i35EDTIE031376@dibbler.crodrigues.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yklP1rR72f9kjNtc" Content-Disposition: inline In-Reply-To: <200404051413.i35EDTIE031376@dibbler.crodrigues.org> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.4i Sender: Ceri Davies Subject: Re: gnu/65209: Add threds category to send-pr X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 18:13:11 -0000 --yklP1rR72f9kjNtc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 05, 2004 at 10:13:29AM -0400, Craig Rodrigues wrote: > =09 > >Description: > Add threads category to send-pr, since there is now a freebsd-threads > mailing list. Is this something that list members want? Ceri [bugmeister hat] --=20 --yklP1rR72f9kjNtc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAcaGlocfcwTS3JF8RAp5UAJsE5gLEil1uq+hTSb4X7Qigwtr+BQCgpvzb 7Pr4r6HlLg8tWT9JFBSqqkE= =gvKu -----END PGP SIGNATURE----- --yklP1rR72f9kjNtc-- From owner-freebsd-threads@FreeBSD.ORG Mon Apr 5 12:21:42 2004 Return-Path: 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 5C08A16A4CE; Mon, 5 Apr 2004 12:21:42 -0700 (PDT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39AEE43D54; Mon, 5 Apr 2004 12:21:42 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc12) with ESMTP id <2004040519214101400s71k2e>; Mon, 5 Apr 2004 19:21:41 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id MAA21925; Mon, 5 Apr 2004 12:21:41 -0700 (PDT) Date: Mon, 5 Apr 2004 12:21:40 -0700 (PDT) From: Julian Elischer To: Ceri Davies In-Reply-To: <20040405181253.GL364@submonkey.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@FreeBSD.org Subject: Re: gnu/65209: Add threds category to send-pr X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 19:21:42 -0000 it's probably not a bad idea. On Mon, 5 Apr 2004, Ceri Davies wrote: > On Mon, Apr 05, 2004 at 10:13:29AM -0400, Craig Rodrigues wrote: > > > > >Description: > > Add threads category to send-pr, since there is now a freebsd-threads > > mailing list. > > Is this something that list members want? > > Ceri > [bugmeister hat] > -- > From owner-freebsd-threads@FreeBSD.ORG Mon Apr 5 12:26:43 2004 Return-Path: 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 7D92F16A4CE; Mon, 5 Apr 2004 12:26:43 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D2E143D3F; Mon, 5 Apr 2004 12:26:43 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i35JQatf028746; Mon, 5 Apr 2004 15:26:36 -0400 (EDT) Date: Mon, 5 Apr 2004 15:26:36 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Julian Elischer In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Ceri Davies cc: freebsd-threads@freebsd.org Subject: Re: gnu/65209: Add threds category to send-pr X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 19:26:43 -0000 On Mon, 5 Apr 2004, Julian Elischer wrote: > it's probably not a bad idea. > > > On Mon, 5 Apr 2004, Ceri Davies wrote: > > > On Mon, Apr 05, 2004 at 10:13:29AM -0400, Craig Rodrigues wrote: > > > > > > >Description: > > > Add threads category to send-pr, since there is now a freebsd-threads > > > mailing list. > > > > Is this something that list members want? As long as libc_r problems > /dev/null -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Mon Apr 5 16:03:01 2004 Return-Path: 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 EAB6416A4CE for ; Mon, 5 Apr 2004 16:03:01 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB2CE43D55 for ; Mon, 5 Apr 2004 16:03:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i35N31bv015697 for ; Mon, 5 Apr 2004 16:03:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i35N31Iw015696; Mon, 5 Apr 2004 16:03:01 -0700 (PDT) (envelope-from gnats) Resent-Date: Mon, 5 Apr 2004 16:03:01 -0700 (PDT) Resent-Message-Id: <200404052303.i35N31Iw015696@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, Ceri Davies Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC0D216A4CE for ; Mon, 5 Apr 2004 16:02:14 -0700 (PDT) Received: from shaft.techsupport.co.uk (shaft.techsupport.co.uk [212.250.77.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 735DF43D54 for ; Mon, 5 Apr 2004 16:02:14 -0700 (PDT) (envelope-from setantae@submonkey.net) Received: from cpc2-cdif3-6-0-cust204.cdif.cable.ntl.com ([81.103.67.204] helo=shrike.submonkey.net ident=mailnull) by shaft.techsupport.co.uk with esmtp (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.31; FreeBSD) id 1BAd6a-000DEx-Ug for FreeBSD-gnats-submit@freebsd.org; Tue, 06 Apr 2004 00:02:13 +0100 Received: from rhadamanth.private.submonkey.net ([192.168.10.1]) by shrike.submonkey.net with esmtp (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.31; FreeBSD) id 1BAd6X-000Glw-2m for FreeBSD-gnats-submit@freebsd.org; Tue, 06 Apr 2004 00:02:11 +0100 Received: (from setantae@localhost)i35Mwe0w096538; Mon, 5 Apr 2004 23:58:40 +0100 (BST) (envelope-from setantae) Message-Id: <200404052258.i35Mwe0w096538@rhadamanth.private.submonkey.net> Date: Mon, 5 Apr 2004 23:58:40 +0100 (BST) From: Ceri Davies To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: threads/65230: Testing new threads category X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ceri Davies List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 23:03:02 -0000 >Number: 65230 >Category: threads >Synopsis: Testing new threads category >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-threads >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Apr 05 16:03:01 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Ceri Davies >Release: FreeBSD 5.2-CURRENT i386 >Organization: Submonkey >Environment: System: FreeBSD rhadamanth.private.submonkey.net 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Sat Apr 3 16:47:46 BST 2004 root@rhadamanth.private.submonkey.net:/usr/obj/usr/src/sys/RHADAMANTH i386 >Description: Test of the new threads gnats category >How-To-Repeat: >Fix: Just ignore this. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-threads@FreeBSD.ORG Mon Apr 5 16:07:50 2004 Return-Path: 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 62D9016A4CE; Mon, 5 Apr 2004 16:07:50 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4623C43D4C; Mon, 5 Apr 2004 16:07:50 -0700 (PDT) (envelope-from ceri@FreeBSD.org) Received: from freefall.freebsd.org (ceri@localhost [127.0.0.1]) i35N7obv020083; Mon, 5 Apr 2004 16:07:50 -0700 (PDT) (envelope-from ceri@freefall.freebsd.org) Received: (from ceri@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i35N7oT9020079; Mon, 5 Apr 2004 16:07:50 -0700 (PDT) (envelope-from ceri) Date: Mon, 5 Apr 2004 16:07:50 -0700 (PDT) From: Ceri Davies Message-Id: <200404052307.i35N7oT9020079@freefall.freebsd.org> To: ceri@freebsd.org, ceri@FreeBSD.org, freebsd-threads@FreeBSD.org Subject: Re: threads/65230: Testing new threads category X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 23:07:50 -0000 Synopsis: Testing new threads category State-Changed-From-To: open->closed State-Changed-By: ceri State-Changed-When: Mon Apr 5 16:07:27 PDT 2004 State-Changed-Why: Looks good. http://www.freebsd.org/cgi/query-pr.cgi?pr=65230 From owner-freebsd-threads@FreeBSD.ORG Thu Apr 8 08:05:55 2004 Return-Path: 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 0399C16A4CE for ; Thu, 8 Apr 2004 08:05:55 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9764943D5E for ; Thu, 8 Apr 2004 08:05:54 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i38F5svx078254 for freebsd-threads@freebsd.org; Thu, 8 Apr 2004 10:05:54 -0500 (CDT) (envelope-from dan) Date: Thu, 8 Apr 2004 10:05:54 -0500 From: Dan Nelson To: freebsd-threads@freebsd.org Message-ID: <20040408150553.GA8182@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i Subject: missing error-checking in libpthread? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2004 15:05:55 -0000 I'm seeing the following stack trace in a testsuite for a threaded program. At the time I generated the coredump, the process was in a loop calling kse_release({0,1000000}) about 1.5 million times/sec, every call returning EINVAL. There are three calls to kse_release in thr_kern.c and one in thr_sig.c, none of which check the returnvalue. The call in thr_sig.c and two of the calls in thr_kern.c even have code after kse_release() as if they expected the call to return (which it shouldn't under normal circumstances). One call in thr_kern.c has a /* Never reach */ commect after the call to kse_release, but again, no checks or calls to abort() if it does happen. (gdb) where #0 0x282304db in kse_release () at {standard input}:15 #1 0x28228658 in _kse_lock_wait (lock=0x829b438, lu=0x83f2334) at /usr/src/lib/libpthread/thread/thr_kern.c:485 #2 0x282313c3 in _lock_acquire (lck=0x829b438, lu=0x83f2334, prio=22) at /usr/src/lib/libpthread/sys/lock.c:219 #3 0x28220499 in _pthread_sigmask (how=3, set=0x853531c, oset=0x0) at /usr/src/lib/libpthread/thread/thr_sigmask.c:64 #4 0x28220396 in _sigprocmask (how=3, set=0x853531c, oset=0x0) at /usr/src/lib/libpthread/thread/thr_sigprocmask.c:49 #5 0x282282e9 in _kse_single_thread (curthread=0x8535200) at /usr/src/lib/libpthread/thread/thr_kern.c:354 #6 0x2821d9bf in _fork () at /usr/src/lib/libpthread/thread/thr_fork.c:97 #7 0x080bf71e in f_create_process (args=1) at /usr/tmp/pike/src/signal_handler.c:3310 #8 0x08072e18 in low_mega_apply (type=APPLY_LOW, args=1, arg1=0x8309be0, arg2=0x6) at /usr/tmp/pike/src/apply_low.h:214 #9 0x08073e80 in mega_apply (type=APPLY_LOW, args=1, arg1=0x888d0c8, arg2=0x6) at /usr/tmp/pike/src/interpret.c:1981 #10 0x080d64a9 in call_pike_initializers (o=0x888d0c8, args=1) at /usr/tmp/pike/src/object.c:337 #11 0x080d6595 in debug_clone_object (p=0x830fd00, args=1) at /usr/tmp/pike/src/object.c:363 #12 0x08073963 in low_mega_apply (type=APPLY_SVALUE_STRICT, args=1, arg1=0x835cdc8, arg2=0x0) at /usr/tmp/pike/src/interpret.c:1718 #13 0x08070c14 in jump_opcode_F_APPLY (arg1=137428224) at /usr/tmp/pike/src/interpret_functions.h:1936 #14 0x0835c962 in ?? () #15 0x08073e9c in mega_apply (type=APPLY_STACK, args=1, arg1=0x0, arg2=0x0) at /usr/tmp/pike/src/interpret.c:1983 #16 0x08073fc0 in f_call_function (args=1) at /usr/tmp/pike/src/interpret.c:2054 #17 0x080fef2b in new_thread_func (data=0xbfbfdb04) at /usr/tmp/pike/src/threads.c:864 #18 0x2821e5c9 in thread_start (curthread=0x8535200, start_routine=0x80fed00 , arg=0xbfbfdb04) at /usr/src/lib/libpthread/thread/thr_create.c:353 #19 0x282cb0b3 in _ctx_start () at {standard input}:15 #20 0x00001000 in ?? () (gdb) -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-threads@FreeBSD.ORG Thu Apr 8 08:55:41 2004 Return-Path: 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 CA4F616A4E3 for ; Thu, 8 Apr 2004 08:55:41 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 622AE43D5C for ; Thu, 8 Apr 2004 08:55:41 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i38FtPtf027481; Thu, 8 Apr 2004 11:55:25 -0400 (EDT) Date: Thu, 8 Apr 2004 11:55:25 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Dan Nelson In-Reply-To: <20040408150553.GA8182@dan.emsphone.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: missing error-checking in libpthread? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2004 15:55:41 -0000 On Thu, 8 Apr 2004, Dan Nelson wrote: > > I'm seeing the following stack trace in a testsuite for a threaded > program. At the time I generated the coredump, the process was in a > loop calling kse_release({0,1000000}) about 1.5 million times/sec, > every call returning EINVAL. > > There are three calls to kse_release in thr_kern.c and one in > thr_sig.c, none of which check the returnvalue. The call in thr_sig.c > and two of the calls in thr_kern.c even have code after kse_release() > as if they expected the call to return (which it shouldn't under normal > circumstances). One call in thr_kern.c has a /* Never reach */ commect > after the call to kse_release, but again, no checks or calls to abort() > if it does happen. Can you try this patch? Index: thr_kern.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_kern.c,v retrieving revision 1.105 diff -u -r1.105 thr_kern.c --- thr_kern.c 19 Dec 2003 13:24:54 -0000 1.105 +++ thr_kern.c 8 Apr 2004 15:47:00 -0000 @@ -347,13 +347,14 @@ _thr_signal_deinit(); } __isthreaded = 0; + curthread->kse->k_kcb->kcb_kmbx.km_curthread = NULL; + curthread->attr.flags |= PTHREAD_SCOPE_SYSTEM; + /* * Restore signal mask early, so any memory problems could * dump core. */ sigprocmask(SIG_SETMASK, &curthread->sigmask, NULL); - curthread->kse->k_kcb->kcb_kmbx.km_curthread = NULL; - curthread->attr.flags |= PTHREAD_SCOPE_SYSTEM; _thr_active_threads = 1; #endif } -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Thu Apr 8 14:25:42 2004 Return-Path: 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 CB09416A4CE for ; Thu, 8 Apr 2004 14:25:42 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79FEF43D39 for ; Thu, 8 Apr 2004 14:25:42 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i38LPfdH077068; Thu, 8 Apr 2004 16:25:41 -0500 (CDT) (envelope-from dan) Date: Thu, 8 Apr 2004 16:25:41 -0500 From: Dan Nelson To: Daniel Eischen Message-ID: <20040408212541.GE8182@dan.emsphone.com> References: <20040408150553.GA8182@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-threads@freebsd.org Subject: Re: missing error-checking in libpthread? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2004 21:25:43 -0000 In the last episode (Apr 08), Daniel Eischen said: > On Thu, 8 Apr 2004, Dan Nelson wrote: > > I'm seeing the following stack trace in a testsuite for a threaded > > program. At the time I generated the coredump, the process was in > > a loop calling kse_release({0,1000000}) about 1.5 million > > times/sec, every call returning EINVAL. > > Can you try this patch? > > Index: thr_kern.c > =================================================================== > RCS file: /opt/FreeBSD/cvs/src/lib/libpthread/thread/thr_kern.c,v That seems to fix my problem! I think it'd be nice if those kse_releases() were error-checked though, just to keep something similar from happening again. -- Dan Nelson dnelson@allantgroup.com