From owner-freebsd-threads@FreeBSD.ORG Sun Mar 14 01:03:05 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 1F35916A4CE for ; Sun, 14 Mar 2004 01:03:05 -0800 (PST) Received: from smtp01.syd.iprimus.net.au (smtp01.syd.iprimus.net.au [210.50.30.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D00A43D31 for ; Sun, 14 Mar 2004 01:03:04 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (210.50.81.10) by smtp01.syd.iprimus.net.au (7.0.024) id 402BA92700A298BC; Sun, 14 Mar 2004 20:03:02 +1100 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id AA3EB41C0; Sun, 14 Mar 2004 20:03:24 +1100 (EST) Date: Sun, 14 Mar 2004 20:03:24 +1100 From: Tim Robbins To: Daniel Eischen Message-ID: <20040314090324.GA23093@cat.robbins.dropbear.id.au> References: <20040314010805.GA21447@cat.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: threads@freebsd.org Subject: Re: RFC: getc() and putc() as macros 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: Sun, 14 Mar 2004 09:03:05 -0000 On Sun, Mar 14, 2004 at 12:53:55AM -0500, Daniel Eischen wrote: > On Sun, 14 Mar 2004, Tim Robbins wrote: > > > On Sat, Mar 13, 2004 at 10:05:14AM -0500, Daniel Eischen wrote: > > > > > On Sat, 13 Mar 2004, Tim Robbins wrote: > > > > > > > The patch below re-adds macro versions of getc(), getchar(), putc(), > > > > putchar(), feof(), ferror(), fileno() and clearerr(), using the value of > > > > __isthreaded to decide between the fast inline single-threaded code and > > > > the more general function equivalent (as suggested by Alfred). Is this > > > > approach safe? > > > > > > I don't really like this. It exposes __isthreaded and others > > > that are implementation. > > > > Can you think of a better way? > > I think it was I that got rid of the macros for getc() et al. > I did it when libc_r was divorced from libc, and the macro > _THREAD_SAFE was no longer necessary. > > Solaris uses _REENTRANT to toggle between macros and functions. > For the macro versions, it accesses the FILE directly instead > of making a function call. > > I think the _unlocked versions of the functions are there for > a reason. If an application isn't going to be threaded, then > it can always use the unlocked versions... Perhaps they could in theory, but in practice, single threaded applications don't use the _unlocked functions. They haven't needed to, since most serious operating systems except FreeBSD 5 provide getc() and putc() macros. (I wish we put as much effort into optimizing stdio as we have put into implementing a micro-optimized thread system like SA...) Tim From owner-freebsd-threads@FreeBSD.ORG Sun Mar 14 06:00:48 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 EA39B16A4CE; Sun, 14 Mar 2004 06:00:48 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F26443D1F; Sun, 14 Mar 2004 06:00:48 -0800 (PST) (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 i2EE0lW7023872; Sun, 14 Mar 2004 09:00:47 -0500 (EST) Date: Sun, 14 Mar 2004 09:00:47 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Tim Robbins In-Reply-To: <20040314090324.GA23093@cat.robbins.dropbear.id.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: RFC: getc() and putc() as macros 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: Sun, 14 Mar 2004 14:00:49 -0000 On Sun, 14 Mar 2004, Tim Robbins wrote: > On Sun, Mar 14, 2004 at 12:53:55AM -0500, Daniel Eischen wrote: > > > On Sun, 14 Mar 2004, Tim Robbins wrote: > > > > > Can you think of a better way? > > > > I think it was I that got rid of the macros for getc() et al. > > I did it when libc_r was divorced from libc, and the macro > > _THREAD_SAFE was no longer necessary. > > > > Solaris uses _REENTRANT to toggle between macros and functions. > > For the macro versions, it accesses the FILE directly instead > > of making a function call. > > > > I think the _unlocked versions of the functions are there for > > a reason. If an application isn't going to be threaded, then > > it can always use the unlocked versions... > > Perhaps they could in theory, but in practice, single threaded applications > don't use the _unlocked functions. They haven't needed to, since most > serious operating systems except FreeBSD 5 provide getc() and putc() macros. Yes, like I said at least Solaris uses macros but that forces threaded applications to use -D_REENTRANT. If the only thing you are exporting is __isthreaded, then I'll table my slight dislike of this change. But we reserve the right to change __isthreaded. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Sun Mar 14 18:38:34 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 024C816A4CE for ; Sun, 14 Mar 2004 18:38:34 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 6E6CD43D39 for ; Sun, 14 Mar 2004 18:38:33 -0800 (PST) (envelope-from silby@silby.com) Received: (qmail 75931 invoked from network); 15 Mar 2004 02:38:32 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 15 Mar 2004 02:38:32 -0000 X-pair-Authenticated: 209.68.2.70 Date: Sun, 14 Mar 2004 20:38:31 -0600 (CST) From: Mike Silbersack To: threads@freebsd.org Message-ID: <20040314203311.L19819@odysseus.silby.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Mutex unlock failure: ? 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, 15 Mar 2004 02:38:34 -0000 I was just trying to build kdepim, and the following just occured: /usr/X11R6/bin/moc itemAttributeDialog.h -o itemAttributeDialog.moc rm -f itemAttributeDialog.cpp echo '#include ' > itemAttributeDialog.cpp /usr/X11R6/bin/uic -L /usr/local/lib/kde3/plugins/designer -nounload -tr tr2i18n -i itemAttributeDialog.h ./itemAttributeDialog.ui > itemAttributeDialog.cpp.temp ; ret=$?; \ /usr/local/bin/perl -pe "s,tr2i18n( \"\" ),QString::null,g" itemAttributeDialog.cpp.temp | /usr/local/bin/perl -pe "s,tr2i18n( \"\"\, \"\" ),QString::null,g" | /usr/local/bin/perl -pe "s,image([0-9][0-9]*)_data,img\$1_itemAttributeDialog,g" >> itemAttributeDialog.cpp ;\ rm -f itemAttributeDialog.cpp.temp ;\ if test "$ret" = 0; then echo '#include "itemAttributeDialog.moc"' >> itemAttributeDialog.cpp; else rm -f itemAttributeDialog.cpp ; exit $ret ; fi Mutex unlock failure: Operation not permitted And when I check in top, uic is just eating cpu time. Is this possibly some thread bug? I haven't recompiled X11 in quite a while, so it was probably built against libc_r, not libpthread. (I'm using libmap to remap libc_r to libpthread, FWIW.) Is that mutex unlock failure message something from libpthread? Is this a known bug of some sort in X11 or libpthread? Thanks, Mike "Silby" Silbersack From owner-freebsd-threads@FreeBSD.ORG Sun Mar 14 18:52: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 D328016A4CF for ; Sun, 14 Mar 2004 18:52:11 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 54EEC43D2F for ; Sun, 14 Mar 2004 18:52:11 -0800 (PST) (envelope-from silby@silby.com) Received: (qmail 81308 invoked from network); 15 Mar 2004 02:52:10 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 15 Mar 2004 02:52:10 -0000 X-pair-Authenticated: 209.68.2.70 Date: Sun, 14 Mar 2004 20:52:09 -0600 (CST) From: Mike Silbersack To: threads@freebsd.org In-Reply-To: <20040314203311.L19819@odysseus.silby.com> Message-ID: <20040314204754.I19819@odysseus.silby.com> References: <20040314203311.L19819@odysseus.silby.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: Mutex unlock failure: ? 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, 15 Mar 2004 02:52:11 -0000 On Sun, 14 Mar 2004, Mike Silbersack wrote: > And when I check in top, uic is just eating cpu time. Is this possibly > some thread bug? I haven't recompiled X11 in quite a while, so it was > probably built against libc_r, not libpthread. (I'm using libmap to remap > libc_r to libpthread, FWIW.) > > Is that mutex unlock failure message something from libpthread? Is this a > known bug of some sort in X11 or libpthread? > > Thanks, > > Mike "Silby" Silbersack Hrm, looks like uic is part of qt, not X11. So that rules out libc_r interference. Can someone else try building kdepim with libpthread and see what happens? Mike "Silby" Silbersack From owner-freebsd-threads@FreeBSD.ORG Sun Mar 14 20:35:48 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 A83A616A4CE for ; Sun, 14 Mar 2004 20:35:48 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2295043D3F for ; Sun, 14 Mar 2004 20:35:48 -0800 (PST) (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 i2F4ZlW7013743; Sun, 14 Mar 2004 23:35:47 -0500 (EST) Date: Sun, 14 Mar 2004 23:35:47 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Mike Silbersack In-Reply-To: <20040314204754.I19819@odysseus.silby.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: Mutex unlock failure: ? 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, 15 Mar 2004 04:35:48 -0000 On Sun, 14 Mar 2004, Mike Silbersack wrote: > > On Sun, 14 Mar 2004, Mike Silbersack wrote: > > > And when I check in top, uic is just eating cpu time. Is this possibly > > some thread bug? I haven't recompiled X11 in quite a while, so it was > > probably built against libc_r, not libpthread. (I'm using libmap to remap > > libc_r to libpthread, FWIW.) > > > > Is that mutex unlock failure message something from libpthread? Is this a > > known bug of some sort in X11 or libpthread? > > > > Thanks, > > > > Mike "Silby" Silbersack > > Hrm, looks like uic is part of qt, not X11. So that rules out libc_r > interference. > > Can someone else try building kdepim with libpthread and see what happens? I built kdepim-3.2.0_1 a week or two ago and it built fine (libc_r -> libpthread). -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Sun Mar 14 20:40:57 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 D338216A4CE for ; Sun, 14 Mar 2004 20:40:57 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 597C343D2D for ; Sun, 14 Mar 2004 20:40:57 -0800 (PST) (envelope-from silby@silby.com) Received: (qmail 18175 invoked from network); 15 Mar 2004 04:40:56 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 15 Mar 2004 04:40:56 -0000 X-pair-Authenticated: 209.68.2.70 Date: Sun, 14 Mar 2004 22:40:55 -0600 (CST) From: Mike Silbersack To: Daniel Eischen In-Reply-To: Message-ID: <20040314223946.R81769@odysseus.silby.com> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: Mutex unlock failure: ? 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, 15 Mar 2004 04:40:58 -0000 On Sun, 14 Mar 2004, Daniel Eischen wrote: > > Hrm, looks like uic is part of qt, not X11. So that rules out libc_r > > interference. > > > > Can someone else try building kdepim with libpthread and see what happens? > > I built kdepim-3.2.0_1 a week or two ago and it built fine (libc_r -> > libpthread). > > -- > Dan Eischen That was last week. :) We're now up to qt 3.3 and kdepim 3.2.1. I had no problems with kde 3.2.0 either. :( I tried a different kde port, and that failed to build in the exact same way; there must be a bug or incompatibility in qt 3.3's uic. Mike "Silby" Silbersack From owner-freebsd-threads@FreeBSD.ORG Mon Mar 15 03:43:12 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 65F6816A4CE for ; Mon, 15 Mar 2004 03:43:12 -0800 (PST) Received: from liberty.onthenet.com.au (liberty.OntheNet.com.au [203.22.124.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B462043D2F for ; Mon, 15 Mar 2004 03:43:11 -0800 (PST) (envelope-from grehan@freebsd.org) Received: from freebsd.org (CPE-30-219.dsl.onthenet.net [203.144.30.219]) i2FBh9ZG027939; Mon, 15 Mar 2004 21:43:10 +1000 (EST) (envelope-from grehan@freebsd.org) Message-ID: <4055978C.9050308@freebsd.org> Date: Mon, 15 Mar 2004 21:46:20 +1000 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030524 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Wemm References: <40441A7E.7000805@freebsd.org> <200403131633.08193.peter@wemm.org> In-Reply-To: <200403131633.08193.peter@wemm.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: threads stress test 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, 15 Mar 2004 11:43:12 -0000 > I just tried this and haven't been able to break it anything with it.. > even on sledge. Can you still do it? Nope, looks good now on AMD64. later, Peter. From owner-freebsd-threads@FreeBSD.ORG Mon Mar 15 06:54:07 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 CFAD916A4CE for ; Mon, 15 Mar 2004 06:54:07 -0800 (PST) Received: from 213.179.236.39 (xdsl-ats32-8.sm.ukrtel.net [213.179.236.39]) by mx1.FreeBSD.org (Postfix) with SMTP id 7A41D43D39 for ; Mon, 15 Mar 2004 06:54:06 -0800 (PST) (envelope-from al_kotov@yahoo.com) Received: (qmail 8315 invoked from network); 15 Mar 2004 14:49:31 -0000 Received: from unknown (HELO nautilus) (192.168.0.25) by 192.168.0.2 with SMTP; 15 Mar 2004 14:49:31 -0000 Message-ID: <024c01c40a9d$440184f0$1900a8c0@nautilus> From: "Alex Kotov" To: Date: Mon, 15 Mar 2004 16:53:23 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: threads and libstdc++ on FreeBSD 5.2.1-RELEASE 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, 15 Mar 2004 14:54:08 -0000 Can anybody answer something about this: http://www.freebsd.org/cgi/query-pr.cgi?pr=64231 ? I should add that: 1) problem exists since FreeBSD 4.9-RELEASE at least and affects both gcc 2.95.4 (as supplied with 4.9-RELEASE) and gcc-3.3.3 (clean package without any patches as downloaded from ftp.gnu.org). 2) stlport do not fix the problem - only some of the symptoms. I should notice that same code on Linux with same compiler (gcc 3.3.3) and linuxthreads (2.2.4 and later as I can check) works correctly. Tracing tools like truss/strace/ltrace do not show any valueable information. Thank you in advance for all your help. SY, Alex Kotov From owner-freebsd-threads@FreeBSD.ORG Mon Mar 15 07:02:31 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 66E4916A4CE for ; Mon, 15 Mar 2004 07:02:31 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1465D43D31 for ; Mon, 15 Mar 2004 07:02:29 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id F2BAF530E; Mon, 15 Mar 2004 16:02:27 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id 9D826530A; Mon, 15 Mar 2004 16:02:13 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 338A633CA7; Mon, 15 Mar 2004 16:02:13 +0100 (CET) To: "Alex Kotov" References: <024c01c40a9d$440184f0$1900a8c0@nautilus> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 15 Mar 2004 16:02:13 +0100 In-Reply-To: <024c01c40a9d$440184f0$1900a8c0@nautilus> (Alex Kotov's message of "Mon, 15 Mar 2004 16:53:23 +0200") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: freebsd-threads@freebsd.org Subject: Re: threads and libstdc++ on FreeBSD 5.2.1-RELEASE 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, 15 Mar 2004 15:02:31 -0000 "Alex Kotov" writes: > Can anybody answer something about this: > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D64231 ? Unable to reproduce. It would really help if the PR contained more information about the expected symptoms. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-threads@FreeBSD.ORG Mon Mar 15 08:16:59 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 F191716A4CE for ; Mon, 15 Mar 2004 08:16:59 -0800 (PST) Received: from 213.179.236.39 (xdsl-ats32-8.sm.ukrtel.net [213.179.236.39]) by mx1.FreeBSD.org (Postfix) with SMTP id 031AF43D2F for ; Mon, 15 Mar 2004 08:16:59 -0800 (PST) (envelope-from al_kotov@yahoo.com) Received: (qmail 8348 invoked from network); 15 Mar 2004 16:12:24 -0000 Received: from unknown (HELO nautilus) (192.168.0.25) by 192.168.0.2 with SMTP; 15 Mar 2004 16:12:24 -0000 Message-ID: <025801c40aa8$d7b76380$1900a8c0@nautilus> From: "Alex Kotov" To: Date: Mon, 15 Mar 2004 18:16:16 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: threads and libstdc++ on FreeBSD 5.2.1-RELEASE 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, 15 Mar 2004 16:17:00 -0000 Let me guess: you're using 5.2.1-CURRENT or link the application against kse and not the lc_r? I will try kse today but problem is easy to reproduce: just copy & paste the source into the test.cc and build it as specified on top of it. When you will try to start the binary you will get "Segmentation fault (core dumped)". SY, Alex Kotov From owner-freebsd-threads@FreeBSD.ORG Mon Mar 15 08:30:53 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 9E01016A4CF for ; Mon, 15 Mar 2004 08:30:53 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2290643D45 for ; Mon, 15 Mar 2004 08:30:53 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id CB342530E; Mon, 15 Mar 2004 17:30:51 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id 4882C530A; Mon, 15 Mar 2004 17:30:45 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id D4BE633CA7; Mon, 15 Mar 2004 17:30:44 +0100 (CET) To: "Alex Kotov" References: <025801c40aa8$d7b76380$1900a8c0@nautilus> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 15 Mar 2004 17:30:44 +0100 In-Reply-To: <025801c40aa8$d7b76380$1900a8c0@nautilus> (Alex Kotov's message of "Mon, 15 Mar 2004 18:16:16 +0200") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: freebsd-threads@freebsd.org Subject: Re: threads and libstdc++ on FreeBSD 5.2.1-RELEASE 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, 15 Mar 2004 16:30:53 -0000 "Alex Kotov" writes: > Let me guess: you're using 5.2.1-CURRENT or link the application against > kse and not the lc_r? I assume this is addressed to me. In the future, please quote the message you're replying to, or at least include its message id in your References: header. I am running -CURRENT, not 5.2.1, and I used the exact command line shown in the PR. > I will try kse today but problem is easy to reproduce: just copy & paste > the source into the test.cc and build it as specified on top of it. When > you will try to start the binary you will get "Segmentation fault (core > dumped)". Like I said, I am unable to reproduce this. The program runs fine. If I change the gcc command line to use -lc_r instead of -pthread, it does dump core, but initializing tt to NULL fixes that. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-threads@FreeBSD.ORG Mon Mar 15 09:01:56 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 EF26716A4CF for ; Mon, 15 Mar 2004 09:01:56 -0800 (PST) Received: from newman.gte.com (newman.gte.com [132.197.8.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFA7A43D41 for ; Mon, 15 Mar 2004 09:01:55 -0800 (PST) (envelope-from ak03@gte.com) Received: from h132-197-179-27.gte.com (kanpc.gte.com [132.197.179.27]) by newman.gte.com (8.9.1/8.9.1) with ESMTP id MAA09742; Mon, 15 Mar 2004 12:01:55 -0500 (EST) Received: from kanpc.gte.com (localhost [IPv6:::1])i2FH1rSO067231; Mon, 15 Mar 2004 12:01:54 -0500 (EST) (envelope-from ak03@gte.com) Date: Mon, 15 Mar 2004 12:01:53 -0500 From: Alexander Kabaev To: "Alex Kotov" Message-Id: <20040315120153.25a4dd00@kanpc.gte.com> In-Reply-To: <025801c40aa8$d7b76380$1900a8c0@nautilus> References: <025801c40aa8$d7b76380$1900a8c0@nautilus> Organization: Verizon Data Services X-Mailer: Sylpheed version 0.9.10claws2 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: threads and libstdc++ on FreeBSD 5.2.1-RELEASE 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, 15 Mar 2004 17:01:57 -0000 On Mon, 15 Mar 2004 18:16:16 +0200 "Alex Kotov" wrote: > Let me guess: you're using 5.2.1-CURRENT or link the application > against kse and not the lc_r? > > I will try kse today but problem is easy to reproduce: just copy & > paste the source into the test.cc and build it as specified on top of > it. When you will try to start the binary you will get "Segmentation > fault (core dumped)". > > SY, > Alex Kotov > I can reproduce this. Appears to be a bug in ld, which fails to pull in uthread_create.o from libc_c.a archive when linking the program. -- Alexander Kabaev From owner-freebsd-threads@FreeBSD.ORG Mon Mar 15 09:28:28 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 DF43616A4CE for ; Mon, 15 Mar 2004 09:28:28 -0800 (PST) Received: from newman.gte.com (newman.gte.com [132.197.8.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F7E643D3F for ; Mon, 15 Mar 2004 09:28:28 -0800 (PST) (envelope-from ak03@gte.com) Received: from h132-197-179-27.gte.com (kanpc.gte.com [132.197.179.27]) by newman.gte.com (8.9.1/8.9.1) with ESMTP id MAA15826; Mon, 15 Mar 2004 12:28:28 -0500 (EST) Received: from kanpc.gte.com (localhost [IPv6:::1])i2FHSRPt067948; Mon, 15 Mar 2004 12:28:27 -0500 (EST) (envelope-from ak03@gte.com) Date: Mon, 15 Mar 2004 12:28:27 -0500 From: Alexander Kabaev To: Alexander Kabaev Message-Id: <20040315122827.45c26656@kanpc.gte.com> In-Reply-To: <20040315120153.25a4dd00@kanpc.gte.com> References: <025801c40aa8$d7b76380$1900a8c0@nautilus> <20040315120153.25a4dd00@kanpc.gte.com> Organization: Verizon Data Services X-Mailer: Sylpheed version 0.9.10claws2 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: threads and libstdc++ on FreeBSD 5.2.1-RELEASE 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, 15 Mar 2004 17:28:29 -0000 On Mon, 15 Mar 2004 12:01:53 -0500 Alexander Kabaev wrote: > On Mon, 15 Mar 2004 18:16:16 +0200 > "Alex Kotov" wrote: > > > Let me guess: you're using 5.2.1-CURRENT or link the application > > against kse and not the lc_r? > > > > I will try kse today but problem is easy to reproduce: just copy & > > paste the source into the test.cc and build it as specified on top > > of it. When you will try to start the binary you will get > > "Segmentation fault (core dumped)". > > > > SY, > > Alex Kotov > > > > I can reproduce this. Appears to be a bug in ld, which fails to pull > in uthread_create.o from libc_c.a archive when linking the program. > > -- > Alexander Kabaev Follow-up: it appears ld is doing exacty as expected. Weak symbol references are not supposed to cause archive member extraction accroding to Sun docs. One can force it with -x weakextract on Solaris, but unfortunately the version of ld in our binutils does not understand this keyword. This happens because libstdc++ marks pthread_create as weak in gthr-default.h header. -- Alexander Kabaev From owner-freebsd-threads@FreeBSD.ORG Mon Mar 15 11:01:36 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 EBCFA16A54F for ; Mon, 15 Mar 2004 11:01:36 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CECE543D45 for ; Mon, 15 Mar 2004 11:01:36 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) i2FJ1abv055998 for ; Mon, 15 Mar 2004 11:01:36 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2FJ1aIu055991 for freebsd-threads@freebsd.org; Mon, 15 Mar 2004 11:01:36 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 15 Mar 2004 11:01:36 -0800 (PST) Message-Id: <200403151901.i2FJ1aIu055991@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, 15 Mar 2004 19:01:37 -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 1 problem 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 Mar 15 15:42:25 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 752B716A4CE for ; Mon, 15 Mar 2004 15:42:25 -0800 (PST) Received: from smtp02.syd.iprimus.net.au (smtp02.syd.iprimus.net.au [210.50.76.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71E6143D1D for ; Mon, 15 Mar 2004 15:42:22 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (210.50.201.19) by smtp02.syd.iprimus.net.au (7.0.024) id 402CF870009E451C; Tue, 16 Mar 2004 10:42:17 +1100 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id 3922F41C8; Tue, 16 Mar 2004 10:42:58 +1100 (EST) Date: Tue, 16 Mar 2004 10:42:58 +1100 From: Tim Robbins To: Dag-Erling Sm?rgrav Message-ID: <20040315234258.GA31183@cat.robbins.dropbear.id.au> References: <024c01c40a9d$440184f0$1900a8c0@nautilus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: Alex Kotov cc: freebsd-threads@freebsd.org Subject: Re: threads and libstdc++ on FreeBSD 5.2.1-RELEASE 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, 15 Mar 2004 23:42:25 -0000 On Mon, Mar 15, 2004 at 04:02:13PM +0100, Dag-Erling Sm?rgrav wrote: > "Alex Kotov" writes: > > Can anybody answer something about this: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=64231 ? > > Unable to reproduce. It would really help if the PR contained more > information about the expected symptoms. Neither can I. I've just noticed a bug in libpthread, though: pressing ^T (sending SIGINFO) interrupts the sleep() and does not restart it. Tim From owner-freebsd-threads@FreeBSD.ORG Mon Mar 15 16:21:25 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 7995416A4CF for ; Mon, 15 Mar 2004 16:21:25 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id F130543D2F for ; Mon, 15 Mar 2004 16:21:24 -0800 (PST) (envelope-from silby@silby.com) Received: (qmail 49473 invoked from network); 16 Mar 2004 00:21:23 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 16 Mar 2004 00:21:23 -0000 X-pair-Authenticated: 209.68.2.70 Date: Mon, 15 Mar 2004 18:21:22 -0600 (CST) From: Mike Silbersack To: Daniel Eischen In-Reply-To: <20040314223946.R81769@odysseus.silby.com> Message-ID: <20040315182024.U89848@odysseus.silby.com> References: <20040314223946.R81769@odysseus.silby.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: Mutex unlock failure: ? 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: Tue, 16 Mar 2004 00:21:25 -0000 Ugh, it's probably all OK, I'll report back if there is still a problem. My libmap still contained this: libc_r.so.5 libkse.so.1 libc_r.so libkse.so Which, of course, means that I was using old libraries... Sorry, Mike "Silby" Silbersack On Sun, 14 Mar 2004, Mike Silbersack wrote: > > On Sun, 14 Mar 2004, Daniel Eischen wrote: > > > > Hrm, looks like uic is part of qt, not X11. So that rules out libc_r > > > interference. > > > > > > Can someone else try building kdepim with libpthread and see what happens? > > > > I built kdepim-3.2.0_1 a week or two ago and it built fine (libc_r -> > > libpthread). > > > > -- > > Dan Eischen > > That was last week. :) > > We're now up to qt 3.3 and kdepim 3.2.1. I had no problems with kde 3.2.0 > either. :( > > I tried a different kde port, and that failed to build in the exact same > way; there must be a bug or incompatibility in qt 3.3's uic. > > Mike "Silby" Silbersack > From owner-freebsd-threads@FreeBSD.ORG Mon Mar 15 16:33:20 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 4E26416A4CE; Mon, 15 Mar 2004 16:33:20 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3006743D1D; Mon, 15 Mar 2004 16:33:20 -0800 (PST) (envelope-from kris@FreeBSD.org) Received: from freefall.freebsd.org (kris@localhost [127.0.0.1]) i2G0XKbv005443; Mon, 15 Mar 2004 16:33:20 -0800 (PST) (envelope-from kris@freefall.freebsd.org) Received: (from kris@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2G0XKHq005439; Mon, 15 Mar 2004 16:33:20 -0800 (PST) (envelope-from kris) Date: Mon, 15 Mar 2004 16:33:20 -0800 (PST) From: Kris Kennaway Message-Id: <200403160033.i2G0XKHq005439@freefall.freebsd.org> To: kris@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-threads@FreeBSD.org Subject: Re: kern/64313: FreeBSD (OpenBSD) pthread implicit set/unset O_NONBLOCK flag 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: Tue, 16 Mar 2004 00:33:20 -0000 Synopsis: FreeBSD (OpenBSD) pthread implicit set/unset O_NONBLOCK flag Responsible-Changed-From-To: freebsd-bugs->freebsd-threads Responsible-Changed-By: kris Responsible-Changed-When: Mon Mar 15 16:33:11 PST 2004 Responsible-Changed-Why: Assign to threads developers http://www.freebsd.org/cgi/query-pr.cgi?pr=64313 From owner-freebsd-threads@FreeBSD.ORG Mon Mar 15 17:07:02 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 6925916A4CE for ; Mon, 15 Mar 2004 17:07:02 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9D9643D31 for ; Mon, 15 Mar 2004 17:07:01 -0800 (PST) (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 i2G171W7012366; Mon, 15 Mar 2004 20:07:01 -0500 (EST) Date: Mon, 15 Mar 2004 20:07:01 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Mike Silbersack In-Reply-To: <20040315182024.U89848@odysseus.silby.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: Mutex unlock failure: ? 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: Tue, 16 Mar 2004 01:07:02 -0000 On Mon, 15 Mar 2004, Mike Silbersack wrote: > > Ugh, it's probably all OK, I'll report back if there is still a problem. > > My libmap still contained this: > > libc_r.so.5 libkse.so.1 > libc_r.so libkse.so > > Which, of course, means that I was using old libraries... Actually, it means you might have been using both libkse and libpthread (new ports are built with -lpthread, old ports still may have -lc_r). -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Mon Mar 15 20:03:59 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 B616816A4CE for ; Mon, 15 Mar 2004 20:03:59 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 3804543D31 for ; Mon, 15 Mar 2004 20:03:59 -0800 (PST) (envelope-from silby@silby.com) Received: (qmail 62691 invoked from network); 16 Mar 2004 04:03:58 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 16 Mar 2004 04:03:58 -0000 X-pair-Authenticated: 209.68.2.70 Date: Mon, 15 Mar 2004 22:03:56 -0600 (CST) From: Mike Silbersack To: Daniel Eischen In-Reply-To: Message-ID: <20040315215955.P33289@odysseus.silby.com> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: Mutex unlock failure: ? 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: Tue, 16 Mar 2004 04:03:59 -0000 On Mon, 15 Mar 2004, Daniel Eischen wrote: > On Mon, 15 Mar 2004, Mike Silbersack wrote: > > > Ugh, it's probably all OK, I'll report back if there is still a problem. > > > > My libmap still contained this: > > > > libc_r.so.5 libkse.so.1 > > libc_r.so libkse.so > > > > Which, of course, means that I was using old libraries... > > Actually, it means you might have been using both libkse and > libpthread (new ports are built with -lpthread, old ports > still may have -lc_r). > > -- > Dan Eischen Ah, good point! FWIW, kdepim built properly and I'm on to building kdebase. It appears that this library mismatch was indeed the cause of my problems. Maybe someone with makefile-foo should throw something into installworld which deletes libkse. :) Mike "Silby" Silbersack From owner-freebsd-threads@FreeBSD.ORG Tue Mar 16 10:20:10 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 98FF716A4D0 for ; Tue, 16 Mar 2004 10:20:10 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E6BE43D31 for ; Tue, 16 Mar 2004 10:20:10 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i2GIKAbv037166 for ; Tue, 16 Mar 2004 10:20:10 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2GIKAO5037165; Tue, 16 Mar 2004 10:20:10 -0800 (PST) (envelope-from gnats) Date: Tue, 16 Mar 2004 10:20:10 -0800 (PST) Message-Id: <200403161820.i2GIKAO5037165@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: Craig Rodrigues Subject: Re: kern/64313: FreeBSD (OpenBSD) pthread implicit set/unset O_NONBLOCK flag 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: Tue, 16 Mar 2004 18:20:10 -0000 The following reply was made to PR kern/64313; it has been noted by GNATS. From: Craig Rodrigues To: freebsd-gnats-submit@FreeBSD.org Cc: lars@koellers.net Subject: Re: kern/64313: FreeBSD (OpenBSD) pthread implicit set/unset O_NONBLOCK flag Date: Tue, 16 Mar 2004 13:10:53 -0500 Hi, What is the point of this PR? It contains a patch to what looks like a program in ports. The O_NONBLOCK issue with libc_r is known. Take a look at: http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/41331 This problem doesn't occur with the new KSE ( http://www.freebsd.org/kse ) libpthread implementation of threads in FreeBSD 5.x. Most likely this problem will not be fixed in libc_r, since most efforts these days are focused on getting libpthread solid in 5.x. Dan Eischen has been suspending (and not closing) these kinds of PR's, i.e. problems that occur in libc_r but not in libpthread, because most likely they will not be fixed in libc_r (but they may be one day, if someone takes an interest in fixing up libc_r).