From owner-freebsd-threads@FreeBSD.ORG Mon Sep 15 05:19:43 2003 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 D271F16A4BF for ; Mon, 15 Sep 2003 05:19:43 -0700 (PDT) Received: from silver.he.iki.fi (helenius.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5034443F85 for ; Mon, 15 Sep 2003 05:19:42 -0700 (PDT) (envelope-from pete@he.iki.fi) Received: from he.iki.fi (h81.vuokselantie10.fi [193.64.42.129]) by silver.he.iki.fi (8.12.9/8.11.4) with ESMTP id h8FCJdkO034802 for ; Mon, 15 Sep 2003 15:19:39 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <3F65AE5A.2030201@he.iki.fi> Date: Mon, 15 Sep 2003 15:19:38 +0300 From: Petri Helenius User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-threads@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: malloc debugger 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 Sep 2003 12:19:43 -0000 Does anyone have a recommendation which malloc debug library would be most suitable to be used with threads? I´ve had limited success with dmalloc but it seems to end in loops quite frequently for reasons I´ve not figured out. I´m looking for just simple leak accounting, fence checking would be a plus though. Pete From owner-freebsd-threads@FreeBSD.ORG Mon Sep 15 06:51:45 2003 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 602FB16A4BF; Mon, 15 Sep 2003 06:51:45 -0700 (PDT) Received: from relay.macomnet.ru (relay.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3454943F93; Mon, 15 Sep 2003 06:51:43 -0700 (PDT) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (w88w7b45@news1.macomnet.ru [195.128.64.14]) by relay.macomnet.ru (8.11.6/8.11.6) with ESMTP id h8FDpfg15549310; Mon, 15 Sep 2003 17:51:41 +0400 (MSD) Date: Mon, 15 Sep 2003 17:51:41 +0400 (MSD) From: Maxim Konovalov To: deischen@FreeBSD.org In-Reply-To: <20030909213947.K95581@news1.macomnet.ru> Message-ID: <20030915174958.L22723@news1.macomnet.ru> References: <20030909213947.K95581@news1.macomnet.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: David Xu cc: threads@FreeBSD.org Subject: Re: libthr/libkse and Mozilla Firebird 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 Sep 2003 13:51:45 -0000 On Tue, 9 Sep 2003, 21:40+0400, Maxim Konovalov wrote: > On Tue, 9 Sep 2003, 13:22-0400, Daniel Eischen wrote: > > > On Tue, 9 Sep 2003, Maxim Konovalov wrote: > > > > > [...] > > > > > I have just re-run firebird, it exited without any warnings. > > > > > > > > How old is your kernel? > > > > > > $ uname -a > > > FreeBSD golf.macomnet.net 5.1-CURRENT FreeBSD 5.1-CURRENT #0: > > > Tue Sep 9 13:58.. > > > > > > > Messages will go to /var/log/messages, not stdout. > > > > > > Yep, I know. > > > > It is still possible that NVidia drivers/OpenGL is biting > > you. Any way to try it on another box or without any NVidia > > stuff? > > I will reconfigure X tomorrow and try. I can reproduce the same behaviour on my laptop and yesterday current without nvidia hardware so it is not nvidia related. -- Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org From owner-freebsd-threads@FreeBSD.ORG Mon Sep 15 08:16:19 2003 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 BD34316A4BF; Mon, 15 Sep 2003 08:16:19 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB38A43F75; Mon, 15 Sep 2003 08:16:18 -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.8/8.12.1) with ESMTP id h8FFGGDm020962; Mon, 15 Sep 2003 11:16:17 -0400 (EDT) Date: Mon, 15 Sep 2003 11:16:16 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Maxim Konovalov In-Reply-To: <20030915174958.L22723@news1.macomnet.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: David Xu cc: threads@FreeBSD.org Subject: Re: libthr/libkse and Mozilla Firebird X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@FreeBSD.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2003 15:16:19 -0000 On Mon, 15 Sep 2003, Maxim Konovalov wrote: > On Tue, 9 Sep 2003, 21:40+0400, Maxim Konovalov wrote: > > > On Tue, 9 Sep 2003, 13:22-0400, Daniel Eischen wrote: > > > > > On Tue, 9 Sep 2003, Maxim Konovalov wrote: > > > > > > > [...] > > > > > > I have just re-run firebird, it exited without any warnings. > > > > > > > > > > How old is your kernel? > > > > > > > > $ uname -a > > > > FreeBSD golf.macomnet.net 5.1-CURRENT FreeBSD 5.1-CURRENT #0: > > > > Tue Sep 9 13:58.. > > > > > > > > > Messages will go to /var/log/messages, not stdout. > > > > > > > > Yep, I know. > > > > > > It is still possible that NVidia drivers/OpenGL is biting > > > you. Any way to try it on another box or without any NVidia > > > stuff? > > > > I will reconfigure X tomorrow and try. > > I can reproduce the same behaviour on my laptop and yesterday current > without nvidia hardware so it is not nvidia related. How are you configuring libmap.conf? With default mappings or constrained mappings? Have you built any of your ports with the version of gcc that had -pthread removed? Does libc appear before libc_r (or libkse when libmap'd) in 'ldd '? I can't reproduce this on any of my systems. I have tested it on 2 different laptops with ATI chipsets, and 2 desktops with Matrox chipsets. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Mon Sep 15 08:23:15 2003 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 B171916A4BF; Mon, 15 Sep 2003 08:23:15 -0700 (PDT) Received: from relay.macomnet.ru (relay.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E54343FCB; Mon, 15 Sep 2003 08:23:13 -0700 (PDT) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (mei5piil@news1.macomnet.ru [195.128.64.14]) by relay.macomnet.ru (8.11.6/8.11.6) with ESMTP id h8FFNBg15803811; Mon, 15 Sep 2003 19:23:11 +0400 (MSD) Date: Mon, 15 Sep 2003 19:23:11 +0400 (MSD) From: Maxim Konovalov To: deischen@FreeBSD.org In-Reply-To: Message-ID: <20030915191845.S76427@news1.macomnet.ru> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: David Xu cc: threads@FreeBSD.org Subject: Re: libthr/libkse and Mozilla Firebird 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 Sep 2003 15:23:15 -0000 On Mon, 15 Sep 2003, 11:16-0400, Daniel Eischen wrote: > On Mon, 15 Sep 2003, Maxim Konovalov wrote: > > > On Tue, 9 Sep 2003, 21:40+0400, Maxim Konovalov wrote: > > > > > On Tue, 9 Sep 2003, 13:22-0400, Daniel Eischen wrote: > > > > > > > On Tue, 9 Sep 2003, Maxim Konovalov wrote: > > > > > > > > > [...] > > > > > > > I have just re-run firebird, it exited without any warnings. > > > > > > > > > > > > How old is your kernel? > > > > > > > > > > $ uname -a > > > > > FreeBSD golf.macomnet.net 5.1-CURRENT FreeBSD 5.1-CURRENT #0: > > > > > Tue Sep 9 13:58.. > > > > > > > > > > > Messages will go to /var/log/messages, not stdout. > > > > > > > > > > Yep, I know. > > > > > > > > It is still possible that NVidia drivers/OpenGL is biting > > > > you. Any way to try it on another box or without any NVidia > > > > stuff? > > > > > > I will reconfigure X tomorrow and try. > > > > I can reproduce the same behaviour on my laptop and yesterday current > > without nvidia hardware so it is not nvidia related. > > How are you configuring libmap.conf? With default mappings or > constrained mappings? $ cat /etc/libmap.conf libc_r.so.5 libkse.so.1 $ > Have you built any of your ports with the version of gcc > that had -pthread removed? I built it way before -pthread removal story. > Does libc appear before libc_r (or libkse when libmap'd) in 'ldd > '? $ ldd /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin: libmozjs.so => not found (0x0) libxpcom.so => not found (0x0) libplds4.so => /usr/local/lib/libplds4.so (0x48089000) libplc4.so => /usr/local/lib/libplc4.so (0x480b1000) libnspr4.so => /usr/local/lib/libnspr4.so (0x480da000) libgtk12.so.2 => /usr/X11R6/lib/libgtk12.so.2 (0x4810a000) libgdk12.so.2 => /usr/X11R6/lib/libgdk12.so.2 (0x4826e000) libgmodule12.so.3 => /usr/local/lib/libgmodule12.so.3 (0x482a6000) libglib12.so.3 => /usr/local/lib/libglib12.so.3 (0x482a9000) libintl.so.4 => /usr/local/lib/libintl.so.4 (0x482d0000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x482d9000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x482e7000) libm.so.2 => /lib/libm.so.2 (0x483ad000) libc_r.so.5 => /usr/lib/libc_r.so.5 (0x483c6000) libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x483ea000) libc.so.5 => /lib/libc.so.5 (0x484a6000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x48580000) > I can't reproduce this on any of my systems. I have > tested it on 2 different laptops with ATI chipsets, > and 2 desktops with Matrox chipsets. -- Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org From owner-freebsd-threads@FreeBSD.ORG Mon Sep 15 08:36:41 2003 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 EE71E16A4BF; Mon, 15 Sep 2003 08:36:40 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id D610543FDD; Mon, 15 Sep 2003 08:36:39 -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.8/8.12.1) with ESMTP id h8FFacDm024701; Mon, 15 Sep 2003 11:36:38 -0400 (EDT) Date: Mon, 15 Sep 2003 11:36:38 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Maxim Konovalov In-Reply-To: <20030915191845.S76427@news1.macomnet.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: David Xu cc: threads@FreeBSD.org Subject: Re: libthr/libkse and Mozilla Firebird X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@FreeBSD.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2003 15:36:41 -0000 On Mon, 15 Sep 2003, Maxim Konovalov wrote: > On Mon, 15 Sep 2003, 11:16-0400, Daniel Eischen wrote: > > > On Mon, 15 Sep 2003, Maxim Konovalov wrote: > > > I can reproduce the same behaviour on my laptop and yesterday current > > > without nvidia hardware so it is not nvidia related. > > > > How are you configuring libmap.conf? With default mappings or > > constrained mappings? > > $ cat /etc/libmap.conf > libc_r.so.5 libkse.so.1 > $ > > > Have you built any of your ports with the version of gcc > > that had -pthread removed? > > I built it way before -pthread removal story. > > > Does libc appear before libc_r (or libkse when libmap'd) in 'ldd > > '? > > $ ldd /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin: > libmozjs.so => not found (0x0) > libxpcom.so => not found (0x0) > libplds4.so => /usr/local/lib/libplds4.so (0x48089000) > libplc4.so => /usr/local/lib/libplc4.so (0x480b1000) > libnspr4.so => /usr/local/lib/libnspr4.so (0x480da000) > libgtk12.so.2 => /usr/X11R6/lib/libgtk12.so.2 (0x4810a000) > libgdk12.so.2 => /usr/X11R6/lib/libgdk12.so.2 (0x4826e000) > libgmodule12.so.3 => /usr/local/lib/libgmodule12.so.3 (0x482a6000) > libglib12.so.3 => /usr/local/lib/libglib12.so.3 (0x482a9000) > libintl.so.4 => /usr/local/lib/libintl.so.4 (0x482d0000) > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x482d9000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x482e7000) > libm.so.2 => /lib/libm.so.2 (0x483ad000) > libc_r.so.5 => /usr/lib/libc_r.so.5 (0x483c6000) ^^^^^^^^^^^^^^^^^^^^ > libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x483ea000) > libc.so.5 => /lib/libc.so.5 (0x484a6000) > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x48580000) Is this from the same system that currently has libc_r mapped to libkse? On my system, if I map libc_r to libkse, I get the following: -bash-2.05b$ ldd /usr/X11R6/lib/mozilla/mozilla-bin /usr/X11R6/lib/mozilla/mozilla-bin: libmozjs.so => not found (0x0) libplds4.so => not found (0x0) libplc4.so => not found (0x0) libnspr4.so => not found (0x0) libgtk12.so.2 => /usr/X11R6/lib/libgtk12.so.2 (0x280a7000) libgdk12.so.2 => /usr/X11R6/lib/libgdk12.so.2 (0x281c8000) libgmodule12.so.3 => /usr/local/lib/libgmodule12.so.3 (0x281fb000) libglib12.so.3 => /usr/local/lib/libglib12.so.3 (0x281fe000) libintl.so.4 => /usr/local/lib/libintl.so.4 (0x2821f000) libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x28227000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x2822f000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x2823c000) libm.so.2 => /lib/libm.so.2 (0x282f6000) libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x2830e000) libc_r.so.5 => /usr/lib/libkse.so.1 (0x283c0000) ^^^^^^^^^^^^^^^^^^^^ libc.so.5 => /lib/libc.so.5 (0x283e2000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x284aa000) I assume that you have built rtld-elf with WITH_LIBMAP=yes, so something seems screwy. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Mon Sep 15 08:43:30 2003 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 BE76F16A4BF; Mon, 15 Sep 2003 08:43:30 -0700 (PDT) Received: from relay.macomnet.ru (relay.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4410443FE5; Mon, 15 Sep 2003 08:43:28 -0700 (PDT) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (la8jy52c@news1.macomnet.ru [195.128.64.14]) by relay.macomnet.ru (8.11.6/8.11.6) with ESMTP id h8FFhQg15804900; Mon, 15 Sep 2003 19:43:26 +0400 (MSD) Date: Mon, 15 Sep 2003 19:43:26 +0400 (MSD) From: Maxim Konovalov To: deischen@FreeBSD.org In-Reply-To: Message-ID: <20030915194038.V89627@news1.macomnet.ru> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: David Xu cc: threads@FreeBSD.org Subject: Re: libthr/libkse and Mozilla Firebird 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 Sep 2003 15:43:31 -0000 On Mon, 15 Sep 2003, 11:36-0400, Daniel Eischen wrote: > On Mon, 15 Sep 2003, Maxim Konovalov wrote: > > > On Mon, 15 Sep 2003, 11:16-0400, Daniel Eischen wrote: > > > > > On Mon, 15 Sep 2003, Maxim Konovalov wrote: > > > > I can reproduce the same behaviour on my laptop and yesterday current > > > > without nvidia hardware so it is not nvidia related. > > > > > > How are you configuring libmap.conf? With default mappings or > > > constrained mappings? > > > > $ cat /etc/libmap.conf > > libc_r.so.5 libkse.so.1 > > $ > > > > > Have you built any of your ports with the version of gcc > > > that had -pthread removed? > > > > I built it way before -pthread removal story. > > > > > Does libc appear before libc_r (or libkse when libmap'd) in 'ldd > > > '? > > > > $ ldd /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin > > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin: > > libmozjs.so => not found (0x0) > > libxpcom.so => not found (0x0) > > libplds4.so => /usr/local/lib/libplds4.so (0x48089000) > > libplc4.so => /usr/local/lib/libplc4.so (0x480b1000) > > libnspr4.so => /usr/local/lib/libnspr4.so (0x480da000) > > libgtk12.so.2 => /usr/X11R6/lib/libgtk12.so.2 (0x4810a000) > > libgdk12.so.2 => /usr/X11R6/lib/libgdk12.so.2 (0x4826e000) > > libgmodule12.so.3 => /usr/local/lib/libgmodule12.so.3 (0x482a6000) > > libglib12.so.3 => /usr/local/lib/libglib12.so.3 (0x482a9000) > > libintl.so.4 => /usr/local/lib/libintl.so.4 (0x482d0000) > > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x482d9000) > > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x482e7000) > > libm.so.2 => /lib/libm.so.2 (0x483ad000) > > libc_r.so.5 => /usr/lib/libc_r.so.5 (0x483c6000) > ^^^^^^^^^^^^^^^^^^^^ > > libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x483ea000) > > libc.so.5 => /lib/libc.so.5 (0x484a6000) > > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x48580000) > > Is this from the same system that currently has libc_r mapped > to libkse? On my system, if I map libc_r to libkse, I get the > following: > > -bash-2.05b$ ldd /usr/X11R6/lib/mozilla/mozilla-bin > /usr/X11R6/lib/mozilla/mozilla-bin: > libmozjs.so => not found (0x0) > libplds4.so => not found (0x0) > libplc4.so => not found (0x0) > libnspr4.so => not found (0x0) > libgtk12.so.2 => /usr/X11R6/lib/libgtk12.so.2 (0x280a7000) > libgdk12.so.2 => /usr/X11R6/lib/libgdk12.so.2 (0x281c8000) > libgmodule12.so.3 => /usr/local/lib/libgmodule12.so.3 (0x281fb000) > libglib12.so.3 => /usr/local/lib/libglib12.so.3 (0x281fe000) > libintl.so.4 => /usr/local/lib/libintl.so.4 (0x2821f000) > libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x28227000) > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x2822f000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x2823c000) > libm.so.2 => /lib/libm.so.2 (0x282f6000) > libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x2830e000) > libc_r.so.5 => /usr/lib/libkse.so.1 (0x283c0000) > ^^^^^^^^^^^^^^^^^^^^ > libc.so.5 => /lib/libc.so.5 (0x283e2000) > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x284aa000) > > I assume that you have built rtld-elf with WITH_LIBMAP=yes, so > something seems screwy. yes, there is WITH_LIBMAP=yes in my /etc/make.conf and there are at least four MozillaFirebird-bin threads in ps axH output. and yes, I issued ldd with commented out libmap.conf. Now it shows: ... libc_r.so.5 => /usr/lib/libkse.so.1 (0x483c6000) libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x483ea000) libc.so.5 => /lib/libc.so.5 (0x484a6000) ... -- Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org From owner-freebsd-threads@FreeBSD.ORG Mon Sep 15 08:49:58 2003 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 5A88016A4BF; Mon, 15 Sep 2003 08:49:58 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E58143FE3; Mon, 15 Sep 2003 08:49:57 -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.8/8.12.1) with ESMTP id h8FFnuDm026988; Mon, 15 Sep 2003 11:49:56 -0400 (EDT) Date: Mon, 15 Sep 2003 11:49:56 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Maxim Konovalov In-Reply-To: <20030915194038.V89627@news1.macomnet.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: David Xu cc: threads@FreeBSD.org Subject: Re: libthr/libkse and Mozilla Firebird X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@FreeBSD.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2003 15:49:58 -0000 On Mon, 15 Sep 2003, Maxim Konovalov wrote: > On Mon, 15 Sep 2003, 11:36-0400, Daniel Eischen wrote: > > > On Mon, 15 Sep 2003, Maxim Konovalov wrote: > > > > > On Mon, 15 Sep 2003, 11:16-0400, Daniel Eischen wrote: > > > > > > > On Mon, 15 Sep 2003, Maxim Konovalov wrote: > > > > > I can reproduce the same behaviour on my laptop and yesterday current > > > > > without nvidia hardware so it is not nvidia related. > > > > > > > > How are you configuring libmap.conf? With default mappings or > > > > constrained mappings? > > > > > > $ cat /etc/libmap.conf > > > libc_r.so.5 libkse.so.1 > > > $ > > > > > > > Have you built any of your ports with the version of gcc > > > > that had -pthread removed? > > > > > > I built it way before -pthread removal story. > > > > > > > Does libc appear before libc_r (or libkse when libmap'd) in 'ldd > > > > '? > > > > > > $ ldd /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin > > > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin: > > > libmozjs.so => not found (0x0) > > > libxpcom.so => not found (0x0) > > > libplds4.so => /usr/local/lib/libplds4.so (0x48089000) > > > libplc4.so => /usr/local/lib/libplc4.so (0x480b1000) > > > libnspr4.so => /usr/local/lib/libnspr4.so (0x480da000) > > > libgtk12.so.2 => /usr/X11R6/lib/libgtk12.so.2 (0x4810a000) > > > libgdk12.so.2 => /usr/X11R6/lib/libgdk12.so.2 (0x4826e000) > > > libgmodule12.so.3 => /usr/local/lib/libgmodule12.so.3 (0x482a6000) > > > libglib12.so.3 => /usr/local/lib/libglib12.so.3 (0x482a9000) > > > libintl.so.4 => /usr/local/lib/libintl.so.4 (0x482d0000) > > > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x482d9000) > > > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x482e7000) > > > libm.so.2 => /lib/libm.so.2 (0x483ad000) > > > libc_r.so.5 => /usr/lib/libc_r.so.5 (0x483c6000) > > ^^^^^^^^^^^^^^^^^^^^ > > > libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x483ea000) > > > libc.so.5 => /lib/libc.so.5 (0x484a6000) > > > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x48580000) > > > > Is this from the same system that currently has libc_r mapped > > to libkse? On my system, if I map libc_r to libkse, I get the > > following: > > > > -bash-2.05b$ ldd /usr/X11R6/lib/mozilla/mozilla-bin > > /usr/X11R6/lib/mozilla/mozilla-bin: > > libmozjs.so => not found (0x0) > > libplds4.so => not found (0x0) > > libplc4.so => not found (0x0) > > libnspr4.so => not found (0x0) > > libgtk12.so.2 => /usr/X11R6/lib/libgtk12.so.2 (0x280a7000) > > libgdk12.so.2 => /usr/X11R6/lib/libgdk12.so.2 (0x281c8000) > > libgmodule12.so.3 => /usr/local/lib/libgmodule12.so.3 (0x281fb000) > > libglib12.so.3 => /usr/local/lib/libglib12.so.3 (0x281fe000) > > libintl.so.4 => /usr/local/lib/libintl.so.4 (0x2821f000) > > libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x28227000) > > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x2822f000) > > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x2823c000) > > libm.so.2 => /lib/libm.so.2 (0x282f6000) > > libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x2830e000) > > libc_r.so.5 => /usr/lib/libkse.so.1 (0x283c0000) > > ^^^^^^^^^^^^^^^^^^^^ > > libc.so.5 => /lib/libc.so.5 (0x283e2000) > > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x284aa000) > > > > I assume that you have built rtld-elf with WITH_LIBMAP=yes, so > > something seems screwy. > > yes, there is WITH_LIBMAP=yes in my /etc/make.conf and there are at > least four MozillaFirebird-bin threads in ps axH output. > > and yes, I issued ldd with commented out libmap.conf. Now it shows: > ... > libc_r.so.5 => /usr/lib/libkse.so.1 (0x483c6000) > libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x483ea000) > libc.so.5 => /lib/libc.so.5 (0x484a6000) > ... Do you have any malloc options set, or any kernel options set that are different from GENERIC? -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Mon Sep 15 08:56:21 2003 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 D55D116A4BF; Mon, 15 Sep 2003 08:56:21 -0700 (PDT) Received: from relay.macomnet.ru (relay.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4C2143FE9; Mon, 15 Sep 2003 08:56:19 -0700 (PDT) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (41cacrdg@news1.macomnet.ru [195.128.64.14]) by relay.macomnet.ru (8.11.6/8.11.6) with ESMTP id h8FFuIg15612456; Mon, 15 Sep 2003 19:56:18 +0400 (MSD) Date: Mon, 15 Sep 2003 19:56:18 +0400 (MSD) From: Maxim Konovalov To: deischen@FreeBSD.org In-Reply-To: Message-ID: <20030915195428.C96932@news1.macomnet.ru> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: David Xu cc: threads@FreeBSD.org Subject: Re: libthr/libkse and Mozilla Firebird 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 Sep 2003 15:56:22 -0000 [...] > Do you have any malloc options set, or any kernel options set no malloc options. > that are different from GENERIC? here you are: http://maxim.int.ru/stuff/GOLF5 The only option I am worry about is 'options HZ 1000'. Could it interfere with libkse? -- Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org From owner-freebsd-threads@FreeBSD.ORG Mon Sep 15 09:07:49 2003 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 8452016A4BF; Mon, 15 Sep 2003 09:07:49 -0700 (PDT) Received: from relay.macomnet.ru (relay.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2AFC43FEA; Mon, 15 Sep 2003 09:07:44 -0700 (PDT) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (dkhvv3sd@news1.macomnet.ru [195.128.64.14]) by relay.macomnet.ru (8.11.6/8.11.6) with ESMTP id h8FG7hg15608382; Mon, 15 Sep 2003 20:07:43 +0400 (MSD) Date: Mon, 15 Sep 2003 20:07:42 +0400 (MSD) From: Maxim Konovalov To: deischen@FreeBSD.org In-Reply-To: <20030915195428.C96932@news1.macomnet.ru> Message-ID: <20030915200204.F2297@news1.macomnet.ru> References: <20030915195428.C96932@news1.macomnet.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: David Xu cc: threads@FreeBSD.org Subject: Re: libthr/libkse and Mozilla Firebird 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 Sep 2003 16:07:49 -0000 On Mon, 15 Sep 2003, 19:56+0400, Maxim Konovalov wrote: > [...] > > Do you have any malloc options set, or any kernel options set > > no malloc options. > > > that are different from GENERIC? > > here you are: http://maxim.int.ru/stuff/GOLF5 > > The only option I am worry about is 'options HZ 1000'. Could it > interfere with libkse? >From ktrace.out the last things firebird done were: # kdump -f ktrace.out | tail -20 37436 MozillaFirebird-bin CALL socket(0x2,0x1,0) 37436 MozillaFirebird-bin RET socket 31/0x1f 37436 MozillaFirebird-bin CALL fcntl(0x1f,0x3,0x10) 37436 MozillaFirebird-bin RET fcntl 2 37436 MozillaFirebird-bin CALL fcntl(0x1f,0x4,0x6) 37436 MozillaFirebird-bin RET fcntl 0 37436 MozillaFirebird-bin CALL connect(0x1f,0xbfaedc48,0x10) 37436 MozillaFirebird-bin RET connect -1 errno 36 Operation now in progress 37436 MozillaFirebird-bin CALL poll(0xbfaedce8,0x6,0xffffffff) 37436 MozillaFirebird-bin RET fork 0 37436 MozillaFirebird-bin CALL gettimeofday(0xbfabaf10,0) 37436 MozillaFirebird-bin RET gettimeofday 0 37436 MozillaFirebird-bin CALL gettimeofday(0xbfabaee0,0) 37436 MozillaFirebird-bin RET gettimeofday 0 37436 MozillaFirebird-bin PSIG SIGSEGV caught handler=0x484f62e0 mask=0xfffefaff code=0xc 37436 MozillaFirebird-bin CALL unlink(0x81c4440) 37436 MozillaFirebird-bin NAMI "/home/maxim/.phoenix/default/17ma97wm.slt/lock" 37436 MozillaFirebird-bin RET unlink 0 37436 MozillaFirebird-bin CALL exit(0xb) -- Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org From owner-freebsd-threads@FreeBSD.ORG Mon Sep 15 11:14:22 2003 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 7429116A4BF for ; Mon, 15 Sep 2003 11:14:22 -0700 (PDT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB10743FE5 for ; Mon, 15 Sep 2003 11:14:21 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by attbi.com (rwcrmhc12) with ESMTP id <2003091518142101400ssujne>; Mon, 15 Sep 2003 18:14:21 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA41675; Mon, 15 Sep 2003 11:14:20 -0700 (PDT) Date: Mon, 15 Sep 2003 11:14:19 -0700 (PDT) From: Julian Elischer To: Petri Helenius In-Reply-To: <3F65AE5A.2030201@he.iki.fi> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE cc: freebsd-threads@freebsd.org Subject: Re: malloc debugger 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 Sep 2003 18:14:22 -0000 tried mprof? On Mon, 15 Sep 2003, Petri Helenius wrote: >=20 > Does anyone have a recommendation which malloc debug library would be mos= t > suitable to be used with threads? I=B4ve had limited success with dmalloc= =20 > but it seems > to end in loops quite frequently for reasons I=B4ve not figured out. >=20 > I=B4m looking for just simple leak accounting, fence checking would be a= =20 > plus though. >=20 > Pete >=20 >=20 > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org= " >=20 From owner-freebsd-threads@FreeBSD.ORG Mon Sep 15 13:09:05 2003 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 9D71D16A4F4; Mon, 15 Sep 2003 13:09:05 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF20043F85; Mon, 15 Sep 2003 13:09:04 -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.8/8.12.1) with ESMTP id h8FK93Dm012755; Mon, 15 Sep 2003 16:09:03 -0400 (EDT) Date: Mon, 15 Sep 2003 16:09:03 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Maxim Konovalov In-Reply-To: <20030915200204.F2297@news1.macomnet.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: David Xu cc: threads@FreeBSD.org Subject: Re: libthr/libkse and Mozilla Firebird X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@FreeBSD.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2003 20:09:05 -0000 On Mon, 15 Sep 2003, Maxim Konovalov wrote: > On Mon, 15 Sep 2003, 19:56+0400, Maxim Konovalov wrote: > > > [...] > > > Do you have any malloc options set, or any kernel options set > > > > no malloc options. > > > > > that are different from GENERIC? > > > > here you are: http://maxim.int.ru/stuff/GOLF5 > > > > The only option I am worry about is 'options HZ 1000'. Could it > > interfere with libkse? > > From ktrace.out the last things firebird done were: > > # kdump -f ktrace.out | tail -20 > 37436 MozillaFirebird-bin CALL socket(0x2,0x1,0) > 37436 MozillaFirebird-bin RET socket 31/0x1f > 37436 MozillaFirebird-bin CALL fcntl(0x1f,0x3,0x10) > 37436 MozillaFirebird-bin RET fcntl 2 > 37436 MozillaFirebird-bin CALL fcntl(0x1f,0x4,0x6) > 37436 MozillaFirebird-bin RET fcntl 0 > 37436 MozillaFirebird-bin CALL connect(0x1f,0xbfaedc48,0x10) > 37436 MozillaFirebird-bin RET connect -1 errno 36 Operation now in progress > 37436 MozillaFirebird-bin CALL poll(0xbfaedce8,0x6,0xffffffff) > 37436 MozillaFirebird-bin RET fork 0 > 37436 MozillaFirebird-bin CALL gettimeofday(0xbfabaf10,0) > 37436 MozillaFirebird-bin RET gettimeofday 0 > 37436 MozillaFirebird-bin CALL gettimeofday(0xbfabaee0,0) > 37436 MozillaFirebird-bin RET gettimeofday 0 > 37436 MozillaFirebird-bin PSIG SIGSEGV caught handler=0x484f62e0 mask=0xfffefaff code=0xc > 37436 MozillaFirebird-bin CALL unlink(0x81c4440) > 37436 MozillaFirebird-bin NAMI "/home/maxim/.phoenix/default/17ma97wm.slt/lock" > 37436 MozillaFirebird-bin RET unlink 0 > 37436 MozillaFirebird-bin CALL exit(0xb) Can you run it under the debugger? I was able to get mozilla to run under the debugger, but had to be root for it to work. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Tue Sep 16 00:34:08 2003 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 7DC2E16A4B3; Tue, 16 Sep 2003 00:34:08 -0700 (PDT) Received: from relay.macomnet.ru (relay.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FFB143FB1; Tue, 16 Sep 2003 00:34:06 -0700 (PDT) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (loqzh000@news1.macomnet.ru [195.128.64.14]) by relay.macomnet.ru (8.11.6/8.11.6) with ESMTP id h8G7Y4g14252785; Tue, 16 Sep 2003 11:34:04 +0400 (MSD) Date: Tue, 16 Sep 2003 11:34:04 +0400 (MSD) From: Maxim Konovalov To: deischen@FreeBSD.org In-Reply-To: Message-ID: <20030916112331.M89056@news1.macomnet.ru> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: David Xu cc: threads@FreeBSD.org Subject: Re: libthr/libkse and Mozilla Firebird 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 Sep 2003 07:34:08 -0000 [...] > > From ktrace.out the last things firebird done were: > > > > # kdump -f ktrace.out | tail -20 > > 37436 MozillaFirebird-bin CALL socket(0x2,0x1,0) > > 37436 MozillaFirebird-bin RET socket 31/0x1f > > 37436 MozillaFirebird-bin CALL fcntl(0x1f,0x3,0x10) > > 37436 MozillaFirebird-bin RET fcntl 2 > > 37436 MozillaFirebird-bin CALL fcntl(0x1f,0x4,0x6) > > 37436 MozillaFirebird-bin RET fcntl 0 > > 37436 MozillaFirebird-bin CALL connect(0x1f,0xbfaedc48,0x10) > > 37436 MozillaFirebird-bin RET connect -1 errno 36 Operation now in progress > > 37436 MozillaFirebird-bin CALL poll(0xbfaedce8,0x6,0xffffffff) > > 37436 MozillaFirebird-bin RET fork 0 > > 37436 MozillaFirebird-bin CALL gettimeofday(0xbfabaf10,0) > > 37436 MozillaFirebird-bin RET gettimeofday 0 > > 37436 MozillaFirebird-bin CALL gettimeofday(0xbfabaee0,0) > > 37436 MozillaFirebird-bin RET gettimeofday 0 > > 37436 MozillaFirebird-bin PSIG SIGSEGV caught handler=0x484f62e0 mask=0xfffefaff code=0xc > > 37436 MozillaFirebird-bin CALL unlink(0x81c4440) > > 37436 MozillaFirebird-bin NAMI "/home/maxim/.phoenix/default/17ma97wm.slt/lock" > > 37436 MozillaFirebird-bin RET unlink 0 > > 37436 MozillaFirebird-bin CALL exit(0xb) > > Can you run it under the debugger? I was able to get > mozilla to run under the debugger, but had to be root > for it to work. # firebird --debug /usr/X11R6/lib/firebird/lib/mozilla-1.5a/run-mozilla.sh -g /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin MOZILLA_FIVE_HOME=/usr/X11R6/lib/firebird/lib/mozilla-1.5a ... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)... Program terminated with signal SIGTRAP, Trace/breakpoint trap. The program no longer exists. (gdb) That works flawless if I comment out libc_r mapping. -- Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org From owner-freebsd-threads@FreeBSD.ORG Tue Sep 16 05:21:52 2003 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 090C216A4B3 for ; Tue, 16 Sep 2003 05:21:52 -0700 (PDT) Received: from silver.he.iki.fi (helenius.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C70543FA3 for ; Tue, 16 Sep 2003 05:21:50 -0700 (PDT) (envelope-from pete@he.iki.fi) Received: from he.iki.fi (h81.vuokselantie10.fi [193.64.42.129]) by silver.he.iki.fi (8.12.9/8.11.4) with ESMTP id h8GCLbkO025364; Tue, 16 Sep 2003 15:21:38 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <3F670050.9080208@he.iki.fi> Date: Tue, 16 Sep 2003 15:21:36 +0300 From: Petri Helenius User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Julian Elischer References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: freebsd-threads@freebsd.org Subject: Re: malloc debugger 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 Sep 2003 12:21:52 -0000 Julian Elischer wrote: >tried mprof? > > If you mean the "really old" one which haven´t seen that many changes in the last 10 years, it dumps core when the command mprof is run. I also found a much more recent one, which claims to support threads, called mpatrol but it seems to suffer from the same issues as does dmalloc, where thread routines call malloc which ends up in infinite recursion and eventual stack exhaustion and core dump. Pete From owner-freebsd-threads@FreeBSD.ORG Tue Sep 16 07:40:53 2003 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 530D816A4B3; Tue, 16 Sep 2003 07:40:53 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6728143F85; Tue, 16 Sep 2003 07:40:50 -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.8/8.12.1) with ESMTP id h8GEemDm011475; Tue, 16 Sep 2003 10:40:49 -0400 (EDT) Date: Tue, 16 Sep 2003 10:40:48 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Maxim Konovalov In-Reply-To: <20030916112331.M89056@news1.macomnet.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: David Xu cc: threads@FreeBSD.org Subject: Re: libthr/libkse and Mozilla Firebird X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@FreeBSD.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2003 14:40:53 -0000 On Tue, 16 Sep 2003, Maxim Konovalov wrote: > [...] > > > From ktrace.out the last things firebird done were: > > > > > > # kdump -f ktrace.out | tail -20 > > > 37436 MozillaFirebird-bin CALL socket(0x2,0x1,0) > > > 37436 MozillaFirebird-bin RET socket 31/0x1f > > > 37436 MozillaFirebird-bin CALL fcntl(0x1f,0x3,0x10) > > > 37436 MozillaFirebird-bin RET fcntl 2 > > > 37436 MozillaFirebird-bin CALL fcntl(0x1f,0x4,0x6) > > > 37436 MozillaFirebird-bin RET fcntl 0 > > > 37436 MozillaFirebird-bin CALL connect(0x1f,0xbfaedc48,0x10) > > > 37436 MozillaFirebird-bin RET connect -1 errno 36 Operation now in progress > > > 37436 MozillaFirebird-bin CALL poll(0xbfaedce8,0x6,0xffffffff) > > > 37436 MozillaFirebird-bin RET fork 0 > > > 37436 MozillaFirebird-bin CALL gettimeofday(0xbfabaf10,0) > > > 37436 MozillaFirebird-bin RET gettimeofday 0 > > > 37436 MozillaFirebird-bin CALL gettimeofday(0xbfabaee0,0) > > > 37436 MozillaFirebird-bin RET gettimeofday 0 > > > 37436 MozillaFirebird-bin PSIG SIGSEGV caught handler=0x484f62e0 mask=0xfffefaff code=0xc > > > 37436 MozillaFirebird-bin CALL unlink(0x81c4440) > > > 37436 MozillaFirebird-bin NAMI "/home/maxim/.phoenix/default/17ma97wm.slt/lock" > > > 37436 MozillaFirebird-bin RET unlink 0 > > > 37436 MozillaFirebird-bin CALL exit(0xb) > > > > Can you run it under the debugger? I was able to get > > mozilla to run under the debugger, but had to be root > > for it to work. > > # firebird --debug > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/run-mozilla.sh -g > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin > MOZILLA_FIVE_HOME=/usr/X11R6/lib/firebird/lib/mozilla-1.5a > ... > (no debugging symbols found)...(no debugging symbols found)... > (no debugging symbols found)... > Program terminated with signal SIGTRAP, Trace/breakpoint trap. > The program no longer exists. > (gdb) -bash-2.05b$ ldd /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin: libmozjs.so => not found (0x0) libxpcom.so => not found (0x0) libplds4.so => /usr/local/lib/libplds4.so (0x28089000) libplc4.so => /usr/local/lib/libplc4.so (0x280b2000) libnspr4.so => /usr/local/lib/libnspr4.so (0x280dc000) libgtk12.so.2 => /usr/X11R6/lib/libgtk12.so.2 (0x2810f000) libgdk12.so.2 => /usr/X11R6/lib/libgdk12.so.2 (0x2825c000) libgmodule12.so.3 => /usr/local/lib/libgmodule12.so.3 (0x28295000) libglib12.so.3 => /usr/local/lib/libglib12.so.3 (0x28298000) libintl.so.5 => /usr/local/lib/libintl.so.5 (0x282bd000) libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x282c6000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x282ce000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x282dd000) libm.so.2 => /usr/lib/libm.so.2 (0x283a5000) libc_r.so.5 => /usr/lib/libkse.so.1 (0x283be000) libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x283e0000) libc.so.5 => /usr/lib/libc.so.5 (0x2849c000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28575000) -bash-2.05b$ firebird --debug /usr/X11R6/lib/firebird/lib/mozilla-1.5a/run-mozilla.sh -g /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin MOZILLA_FIVE_HOME=/usr/X11R6/lib/firebird/lib/mozilla-1.5a LD_LIBRARY_PATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a:/usr/X11R6/lib/firebird/lib/mozilla-1.5a/plugins:/usr/X11R6/lib/browser_plugins:/usr/X11R6/lib/firebird/lib/mre/mre-1.5a DISPLAY=:0.0 FONTCONFIG_PATH=/usr/X11R6/etc/fonts:/usr/X11R6/lib/firebird/lib/mozilla-1.5a/res/Xft DYLD_LIBRARY_PATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a:/usr/X11R6/lib/firebird/lib/mre/mre-1.5a LIBRARY_PATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a:/usr/X11R6/lib/firebird/lib/mozilla-1.5a/components:/usr/X11R6/lib/firebird/lib/mre/mre-1.5a SHLIB_PATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a:/usr/X11R6/lib/firebird/lib/mre/mre-1.5a LIBPATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a:/usr/X11R6/lib/firebird/lib/mre/mre-1.5a ADDON_PATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a MOZ_PROGRAM=/usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin MOZ_TOOLKIT= moz_debug=1 moz_debugger= /usr/bin/gdb /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin -x /tmp/mozargs700 GNU gdb 5.2.1 (FreeBSD) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-undermydesk-freebsd"...(no debugging symbols found)... (gdb) I don't know what else I can do. Do you have a /usr/lib/libpthread.so? Can you try with a GENERIC kernel, or at least a stripped GENERIC with removed devices. I noticed you had MAXDSIZ=(1024*1024*1024) without the 'UL' (MAXDSIZ=(1024UL*1024*1024)). -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Tue Sep 16 10:24:07 2003 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 57D6916A4B3 for ; Tue, 16 Sep 2003 10:24:07 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C5DD43FA3 for ; Tue, 16 Sep 2003 10:24:06 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by attbi.com (rwcrmhc11) with ESMTP id <200309161724030130034abde>; Tue, 16 Sep 2003 17:24:03 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id KAA53326; Tue, 16 Sep 2003 10:24:01 -0700 (PDT) Date: Tue, 16 Sep 2003 10:24:00 -0700 (PDT) From: Julian Elischer To: Petri Helenius In-Reply-To: <3F670050.9080208@he.iki.fi> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE cc: freebsd-threads@freebsd.org Subject: Re: malloc debugger 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 Sep 2003 17:24:07 -0000 In the past I made changes to mprof to allow it to handle C++ larger symbol names and have run it in threaded programs.. unfortunatly I don't have it any more.. There were about 3 things that needed to be fixed.. On Tue, 16 Sep 2003, Petri Helenius wrote: > Julian Elischer wrote: >=20 > >tried mprof? > > =20 > > > If you mean the "really old" one which haven=B4t seen that many changes i= n=20 > the last > 10 years, it dumps core when the command mprof is run. >=20 > I also found a much more recent one, which claims to support threads, cal= led > mpatrol but it seems to suffer from the same issues as does dmalloc, wher= e > thread routines call malloc which ends up in infinite recursion and event= ual > stack exhaustion and core dump. >=20 > Pete >=20 >=20 >=20 From owner-freebsd-threads@FreeBSD.ORG Tue Sep 16 10:40:25 2003 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 D75C116A4C0; Tue, 16 Sep 2003 10:40:25 -0700 (PDT) Received: from grus.itea.ntnu.no (grus.itea.ntnu.no [129.241.190.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F84843F75; Tue, 16 Sep 2003 10:40:23 -0700 (PDT) (envelope-from morten@rodal.no) Received: from localhost (localhost [127.0.0.1]) by grus.itea.ntnu.no (Postfix) with ESMTP id 60A82C3013; Tue, 16 Sep 2003 19:40:22 +0200 (CEST) Received: from slurp.rodal.no (m200h.studby.ntnu.no [129.241.135.200]) by grus.itea.ntnu.no (Postfix) with ESMTP id DA862C3011; Tue, 16 Sep 2003 19:40:21 +0200 (CEST) Received: (from morten@localhost) by slurp.rodal.no (8.12.9/8.12.9/Submit) id h8GHeLpw007571; Tue, 16 Sep 2003 19:40:21 +0200 (CEST) (envelope-from morten) Date: Tue, 16 Sep 2003 19:40:20 +0200 From: Morten Rodal To: deischen@FreeBSD.org Message-ID: <20030916174020.GA5195@slurp.rodal.no> References: <20030916112331.M89056@news1.macomnet.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. cc: threads@FreeBSD.org cc: David Xu Subject: Re: libthr/libkse and Mozilla Firebird 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 Sep 2003 17:40:26 -0000 On Tue, Sep 16, 2003 at 10:40:48AM -0400, Daniel Eischen wrote: > On Tue, 16 Sep 2003, Maxim Konovalov wrote: [...] > > # firebird --debug > > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/run-mozilla.sh -g > > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin > > MOZILLA_FIVE_HOME=/usr/X11R6/lib/firebird/lib/mozilla-1.5a > > ... > > (no debugging symbols found)...(no debugging symbols found)... > > (no debugging symbols found)... > > Program terminated with signal SIGTRAP, Trace/breakpoint trap. > > The program no longer exists. > > (gdb) > > -bash-2.05b$ ldd /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin: > libmozjs.so => not found (0x0) > libxpcom.so => not found (0x0) > libplds4.so => /usr/local/lib/libplds4.so (0x28089000) > libplc4.so => /usr/local/lib/libplc4.so (0x280b2000) > libnspr4.so => /usr/local/lib/libnspr4.so (0x280dc000) > libgtk12.so.2 => /usr/X11R6/lib/libgtk12.so.2 (0x2810f000) > libgdk12.so.2 => /usr/X11R6/lib/libgdk12.so.2 (0x2825c000) > libgmodule12.so.3 => /usr/local/lib/libgmodule12.so.3 (0x28295000) > libglib12.so.3 => /usr/local/lib/libglib12.so.3 (0x28298000) > libintl.so.5 => /usr/local/lib/libintl.so.5 (0x282bd000) > libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x282c6000) > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x282ce000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x282dd000) > libm.so.2 => /usr/lib/libm.so.2 (0x283a5000) > libc_r.so.5 => /usr/lib/libkse.so.1 (0x283be000) > libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x283e0000) > libc.so.5 => /usr/lib/libc.so.5 (0x2849c000) > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28575000) > -bash-2.05b$ firebird --debug > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/run-mozilla.sh -g > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin > MOZILLA_FIVE_HOME=/usr/X11R6/lib/firebird/lib/mozilla-1.5a > > LD_LIBRARY_PATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a:/usr/X11R6/lib/firebird/lib/mozilla-1.5a/plugins:/usr/X11R6/lib/browser_plugins:/usr/X11R6/lib/firebird/lib/mre/mre-1.5a > DISPLAY=:0.0 > FONTCONFIG_PATH=/usr/X11R6/etc/fonts:/usr/X11R6/lib/firebird/lib/mozilla-1.5a/res/Xft > DYLD_LIBRARY_PATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a:/usr/X11R6/lib/firebird/lib/mre/mre-1.5a > > LIBRARY_PATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a:/usr/X11R6/lib/firebird/lib/mozilla-1.5a/components:/usr/X11R6/lib/firebird/lib/mre/mre-1.5a > > SHLIB_PATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a:/usr/X11R6/lib/firebird/lib/mre/mre-1.5a > > LIBPATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a:/usr/X11R6/lib/firebird/lib/mre/mre-1.5a > ADDON_PATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a > MOZ_PROGRAM=/usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin > MOZ_TOOLKIT= > moz_debug=1 > moz_debugger= > /usr/bin/gdb /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin -x > /tmp/mozargs700 > GNU gdb 5.2.1 (FreeBSD) > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-undermydesk-freebsd"...(no debugging symbols > found)... > (gdb) > > > I don't know what else I can do. > Try typing "run"? Hopefully you haven't got a SMP machine or your computer *WILL* panic! -- Morten Rodal From owner-freebsd-threads@FreeBSD.ORG Tue Sep 16 12:14:01 2003 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 CF08516A4B3; Tue, 16 Sep 2003 12:14:01 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83F8143FEA; Tue, 16 Sep 2003 12:14:00 -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.8/8.12.1) with ESMTP id h8GJDwDm028453; Tue, 16 Sep 2003 15:13:59 -0400 (EDT) Date: Tue, 16 Sep 2003 15:13:58 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Morten Rodal In-Reply-To: <20030916174020.GA5195@slurp.rodal.no> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@FreeBSD.org cc: David Xu Subject: Re: libthr/libkse and Mozilla Firebird X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@FreeBSD.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2003 19:14:02 -0000 On Tue, 16 Sep 2003, Morten Rodal wrote: > On Tue, Sep 16, 2003 at 10:40:48AM -0400, Daniel Eischen wrote: > > On Tue, 16 Sep 2003, Maxim Konovalov wrote: > [...] > > > # firebird --debug > > > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/run-mozilla.sh -g > > > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin > > > MOZILLA_FIVE_HOME=/usr/X11R6/lib/firebird/lib/mozilla-1.5a > > > ... > > > (no debugging symbols found)...(no debugging symbols found)... > > > (no debugging symbols found)... > > > Program terminated with signal SIGTRAP, Trace/breakpoint trap. > > > The program no longer exists. > > > (gdb) > > > > -bash-2.05b$ ldd /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin > > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin: > > libmozjs.so => not found (0x0) > > libxpcom.so => not found (0x0) > > libplds4.so => /usr/local/lib/libplds4.so (0x28089000) > > libplc4.so => /usr/local/lib/libplc4.so (0x280b2000) > > libnspr4.so => /usr/local/lib/libnspr4.so (0x280dc000) > > libgtk12.so.2 => /usr/X11R6/lib/libgtk12.so.2 (0x2810f000) > > libgdk12.so.2 => /usr/X11R6/lib/libgdk12.so.2 (0x2825c000) > > libgmodule12.so.3 => /usr/local/lib/libgmodule12.so.3 (0x28295000) > > libglib12.so.3 => /usr/local/lib/libglib12.so.3 (0x28298000) > > libintl.so.5 => /usr/local/lib/libintl.so.5 (0x282bd000) > > libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x282c6000) > > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x282ce000) > > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x282dd000) > > libm.so.2 => /usr/lib/libm.so.2 (0x283a5000) > > libc_r.so.5 => /usr/lib/libkse.so.1 (0x283be000) > > libstdc++.so.4 => /usr/lib/libstdc++.so.4 (0x283e0000) > > libc.so.5 => /usr/lib/libc.so.5 (0x2849c000) > > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28575000) > > -bash-2.05b$ firebird --debug > > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/run-mozilla.sh -g > > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin > > MOZILLA_FIVE_HOME=/usr/X11R6/lib/firebird/lib/mozilla-1.5a > > > > LD_LIBRARY_PATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a:/usr/X11R6/lib/firebird/lib/mozilla-1.5a/plugins:/usr/X11R6/lib/browser_plugins:/usr/X11R6/lib/firebird/lib/mre/mre-1.5a > > DISPLAY=:0.0 > > FONTCONFIG_PATH=/usr/X11R6/etc/fonts:/usr/X11R6/lib/firebird/lib/mozilla-1.5a/res/Xft > > DYLD_LIBRARY_PATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a:/usr/X11R6/lib/firebird/lib/mre/mre-1.5a > > > > LIBRARY_PATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a:/usr/X11R6/lib/firebird/lib/mozilla-1.5a/components:/usr/X11R6/lib/firebird/lib/mre/mre-1.5a > > > > SHLIB_PATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a:/usr/X11R6/lib/firebird/lib/mre/mre-1.5a > > > > LIBPATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a:/usr/X11R6/lib/firebird/lib/mre/mre-1.5a > > ADDON_PATH=/usr/X11R6/lib/firebird/lib/mozilla-1.5a > > MOZ_PROGRAM=/usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin > > MOZ_TOOLKIT= > > moz_debug=1 > > moz_debugger= > > /usr/bin/gdb /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin -x > > /tmp/mozargs700 > > GNU gdb 5.2.1 (FreeBSD) > > Copyright 2002 Free Software Foundation, Inc. > > GDB is free software, covered by the GNU General Public License, and you are > > welcome to change it and/or distribute copies of it under certain conditions. > > Type "show copying" to see the conditions. > > There is absolutely no warranty for GDB. Type "show warranty" for details. > > This GDB was configured as "i386-undermydesk-freebsd"...(no debugging symbols > > found)... > > (gdb) > > > > > > I don't know what else I can do. > > > > Try typing "run"? Hopefully you haven't got a SMP machine or your > computer *WILL* panic! I'll try that tomorrow. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Tue Sep 16 17:46:52 2003 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 5CD0C16A4B3 for ; Tue, 16 Sep 2003 17:46:52 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36B5E43FBF for ; Tue, 16 Sep 2003 17:46:50 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by attbi.com (rwcrmhc11) with ESMTP id <20030917004029013003a5rhe>; Wed, 17 Sep 2003 00:40:29 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id RAA57270 for ; Tue, 16 Sep 2003 17:40:27 -0700 (PDT) X-Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id RAA57155 for ; Tue, 16 Sep 2003 17:26:26 -0700 (PDT) X-Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id DA105571B9 for ; Tue, 16 Sep 2003 17:25:38 -0700 (PDT) (envelope-from owner-freebsd-hackers@freebsd.org) X-Received: by hub.freebsd.org (Postfix) id F04F716A4DC; Tue, 16 Sep 2003 17:25:37 -0700 (PDT) Delivered-To: julian@freebsd.org X-Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id E24B216A4D9; Tue, 16 Sep 2003 17:25:37 -0700 (PDT) Delivered-To: freebsd-hackers@freebsd.org X-Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D66316A4B3 for ; Tue, 16 Sep 2003 17:24:08 -0700 (PDT) X-Received: from bast.unixathome.org (bast.unixathome.org [66.11.174.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DEBB43F75 for ; Tue, 16 Sep 2003 17:24:06 -0700 (PDT) (envelope-from dan@langille.org) X-Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id D89193D28 for ; Tue, 16 Sep 2003 20:23:55 -0400 (EDT) From: "Dan Langille" To: hackers@freebsd.org Date: Tue, 16 Sep 2003 20:23:41 -0400 MIME-Version: 1.0 Message-ID: <3F67714D.32262.7B04653@localhost> Priority: normal X-mailer: Pegasus Mail for Windows (v4.02a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Sender: owner-freebsd-hackers@freebsd.org Errors-To: owner-freebsd-hackers@freebsd.org ReSent-Date: Tue, 16 Sep 2003 17:40:17 -0700 (PDT) Resent-From: Julian Elischer Resent-To: threads@freebsd.org ReSent-Subject: [PATCH] : libc_r/uthread/uthread_write.c ReSent-Message-ID: Subject: [PATCH] : libc_r/uthread/uthread_write.c X-BeenThere: freebsd-threads@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2003 00:46:52 -0000 I've had preliminary success with this patch. More testing needs to be done, but in the meantime, I would appreciate reviews and comments. The patched code is available from http://beta.freebsddiary.org/tmp/uthread_write.c and the patch appears below. In short, the logic has been changed to ensure that if __sys_write returns zero, this value is returned by _write. The syslog calls are just for debugging and will be removed. Thank you. --- uthread_write.c.org Tue Sep 16 12:14:22 2003 +++ uthread_write.c Tue Sep 16 16:38:02 2003 @@ -39,6 +39,7 @@ #include #include #include "pthread_private.h" +#include ssize_t _write(int fd, const void *buf, size_t nbytes) @@ -93,7 +94,7 @@ * write: */ if (blocking && ((n < 0 && (errno == EWOULDBLOCK || - errno == EAGAIN)) || (n >= 0 && num < nbytes))) { + errno == EAGAIN)) || (n > 0 && num < nbytes))) { curthread->data.fd.fd = fd; _thread_kern_set_timeout(NULL); @@ -136,6 +137,15 @@ ret = num; else ret = n; + + } else if (n == 0) { + ret = 0; + if (n == 0) { + setlogmask (LOG_UPTO (LOG_NOTICE)); + openlog("uthread_write.c", LOG_CONS | LOG_PID | LOG_NDELAY, LOG_LOCAL1); + syslog (LOG_NOTICE, "zero has been returned in uthread_write.c; num = '%d'", num); + } + break; /* Check if the write has completed: */ } else if (num >= nbytes) -- Dan Langille : http://www.langille.org/ _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-threads@FreeBSD.ORG Wed Sep 17 11:48:07 2003 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 4B9CC16A4B3; Wed, 17 Sep 2003 11:48:07 -0700 (PDT) Received: from fri.itea.ntnu.no (fri.itea.ntnu.no [129.241.7.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCA6043F75; Wed, 17 Sep 2003 11:48:05 -0700 (PDT) (envelope-from morten@rodal.no) Received: from localhost (localhost [127.0.0.1]) by fri.itea.ntnu.no (Postfix) with ESMTP id 2DE99C7028; Wed, 17 Sep 2003 20:48:04 +0200 (CEST) Received: from slurp.rodal.no (m200h.studby.ntnu.no [129.241.135.200]) by fri.itea.ntnu.no (Postfix) with ESMTP id 672BEC705F; Wed, 17 Sep 2003 20:48:03 +0200 (CEST) Received: (from morten@localhost) by slurp.rodal.no (8.12.9/8.12.9/Submit) id h8HIm2D6020005; Wed, 17 Sep 2003 20:48:02 +0200 (CEST) (envelope-from morten) Date: Wed, 17 Sep 2003 20:48:01 +0200 From: Morten Rodal To: deischen@FreeBSD.org Message-ID: <20030917184759.GA19852@slurp.rodal.no> References: <20030915200204.F2297@news1.macomnet.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. cc: threads@FreeBSD.org cc: David Xu Subject: Re: libthr/libkse and Mozilla Firebird 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: Wed, 17 Sep 2003 18:48:07 -0000 I apologize if you guys get this mail twice, but it doesn't seem to have reached threads@freebsd.org?! So, I'm resending it. On Mon, Sep 15, 2003 at 04:09:03PM -0400, Daniel Eischen wrote: > On Mon, 15 Sep 2003, Maxim Konovalov wrote: > > > On Mon, 15 Sep 2003, 19:56+0400, Maxim Konovalov wrote: > > > > > [...] > > > > Do you have any malloc options set, or any kernel options set > > > > > > no malloc options. > > > > > > > that are different from GENERIC? > > > > > > here you are: http://maxim.int.ru/stuff/GOLF5 > > > > > > The only option I am worry about is 'options HZ 1000'. Could it > > > interfere with libkse? > > > > From ktrace.out the last things firebird done were: > > > > # kdump -f ktrace.out | tail -20 > > 37436 MozillaFirebird-bin CALL socket(0x2,0x1,0) > > 37436 MozillaFirebird-bin RET socket 31/0x1f > > 37436 MozillaFirebird-bin CALL fcntl(0x1f,0x3,0x10) > > 37436 MozillaFirebird-bin RET fcntl 2 > > 37436 MozillaFirebird-bin CALL fcntl(0x1f,0x4,0x6) > > 37436 MozillaFirebird-bin RET fcntl 0 > > 37436 MozillaFirebird-bin CALL connect(0x1f,0xbfaedc48,0x10) > > 37436 MozillaFirebird-bin RET connect -1 errno 36 Operation now in progress > > 37436 MozillaFirebird-bin CALL poll(0xbfaedce8,0x6,0xffffffff) > > 37436 MozillaFirebird-bin RET fork 0 > > 37436 MozillaFirebird-bin CALL gettimeofday(0xbfabaf10,0) > > 37436 MozillaFirebird-bin RET gettimeofday 0 > > 37436 MozillaFirebird-bin CALL gettimeofday(0xbfabaee0,0) > > 37436 MozillaFirebird-bin RET gettimeofday 0 > > 37436 MozillaFirebird-bin PSIG SIGSEGV caught handler=0x484f62e0 mask=0xfffefaff code=0xc > > 37436 MozillaFirebird-bin CALL unlink(0x81c4440) > > 37436 MozillaFirebird-bin NAMI "/home/maxim/.phoenix/default/17ma97wm.slt/lock" > > 37436 MozillaFirebird-bin RET unlink 0 > > 37436 MozillaFirebird-bin CALL exit(0xb) I get the same(?) ktrace when my firebird disappears. 66628 MozillaFirebird-bin CALL break(0x90a1000) 66628 MozillaFirebird-bin RET break 0 66628 MozillaFirebird-bin PSIG SIGSEGV caught handler=0x288b72e0 mask=0xfffefaff code=0xc 66628 MozillaFirebird-bin CALL unlink(0x81c9040) 66628 MozillaFirebird-bin NAMI "/usr/home/morten/.phoenix/default/gd75op6b.slt/lock" 66628 MozillaFirebird-bin RET unlink 0 66628 MozillaFirebird-bin CALL exit(0xb) > > Can you run it under the debugger? I was able to get > mozilla to run under the debugger, but had to be root > for it to work. > How are you able to run it under the debugger? Whenever I try (haven't tried as root) my computer panics! For more info on the panic (if it has anything to do with debugging libkse programs) see this thread on current@ Message-ID: <20030912065458.GA604@atlantis.rodal.no> or http://lists.freebsd.org/pipermail/freebsd-current/2003-September/010356.html -- Morten Rodal From owner-freebsd-threads@FreeBSD.ORG Wed Sep 17 12:21:08 2003 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 3A0EC16A4B3; Wed, 17 Sep 2003 12:21:08 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 336E443FBD; Wed, 17 Sep 2003 12:21:07 -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.8/8.12.1) with ESMTP id h8HJL5Dm010207; Wed, 17 Sep 2003 15:21:06 -0400 (EDT) Date: Wed, 17 Sep 2003 15:21:05 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Morten Rodal In-Reply-To: <20030917184759.GA19852@slurp.rodal.no> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@FreeBSD.org cc: David Xu Subject: Re: libthr/libkse and Mozilla Firebird X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@FreeBSD.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2003 19:21:08 -0000 On Wed, 17 Sep 2003, Morten Rodal wrote: > I apologize if you guys get this mail twice, but it doesn't seem to > have reached threads@freebsd.org?! So, I'm resending it. > > > On Mon, Sep 15, 2003 at 04:09:03PM -0400, Daniel Eischen wrote: > > On Mon, 15 Sep 2003, Maxim Konovalov wrote: > > > > > On Mon, 15 Sep 2003, 19:56+0400, Maxim Konovalov wrote: > > > > > > > [...] > > > > > Do you have any malloc options set, or any kernel options set > > > > > > > > no malloc options. > > > > > > > > > that are different from GENERIC? > > > > > > > > here you are: http://maxim.int.ru/stuff/GOLF5 > > > > > > > > The only option I am worry about is 'options HZ 1000'. Could it > > > > interfere with libkse? > > > > > > From ktrace.out the last things firebird done were: > > > > > > # kdump -f ktrace.out | tail -20 > > > 37436 MozillaFirebird-bin CALL socket(0x2,0x1,0) > > > 37436 MozillaFirebird-bin RET socket 31/0x1f > > > 37436 MozillaFirebird-bin CALL fcntl(0x1f,0x3,0x10) > > > 37436 MozillaFirebird-bin RET fcntl 2 > > > 37436 MozillaFirebird-bin CALL fcntl(0x1f,0x4,0x6) > > > 37436 MozillaFirebird-bin RET fcntl 0 > > > 37436 MozillaFirebird-bin CALL connect(0x1f,0xbfaedc48,0x10) > > > 37436 MozillaFirebird-bin RET connect -1 errno 36 Operation now in progress > > > 37436 MozillaFirebird-bin CALL poll(0xbfaedce8,0x6,0xffffffff) > > > 37436 MozillaFirebird-bin RET fork 0 > > > 37436 MozillaFirebird-bin CALL gettimeofday(0xbfabaf10,0) > > > 37436 MozillaFirebird-bin RET gettimeofday 0 > > > 37436 MozillaFirebird-bin CALL gettimeofday(0xbfabaee0,0) > > > 37436 MozillaFirebird-bin RET gettimeofday 0 > > > 37436 MozillaFirebird-bin PSIG SIGSEGV caught handler=0x484f62e0 mask=0xfffefaff code=0xc > > > 37436 MozillaFirebird-bin CALL unlink(0x81c4440) > > > 37436 MozillaFirebird-bin NAMI "/home/maxim/.phoenix/default/17ma97wm.slt/lock" > > > 37436 MozillaFirebird-bin RET unlink 0 > > > 37436 MozillaFirebird-bin CALL exit(0xb) > > I get the same(?) ktrace when my firebird disappears. > > 66628 MozillaFirebird-bin CALL break(0x90a1000) > 66628 MozillaFirebird-bin RET break 0 > 66628 MozillaFirebird-bin PSIG SIGSEGV caught handler=0x288b72e0 mask=0xfffefaff code=0xc > 66628 MozillaFirebird-bin CALL unlink(0x81c9040) > 66628 MozillaFirebird-bin NAMI "/usr/home/morten/.phoenix/default/gd75op6b.slt/lock" > 66628 MozillaFirebird-bin RET unlink 0 > 66628 MozillaFirebird-bin CALL exit(0xb) > > > > > Can you run it under the debugger? I was able to get > > mozilla to run under the debugger, but had to be root > > for it to work. > > > > How are you able to run it under the debugger? Whenever I try > (haven't tried as root) my computer panics! > > For more info on the panic (if it has anything to do with debugging > libkse programs) see this thread on current@ > > Message-ID: <20030912065458.GA604@atlantis.rodal.no> > > or > > http://lists.freebsd.org/pipermail/freebsd-current/2003-September/010356.html I just posted a similar panic when trying to debug mozilla on an SMP system. Something seems wrong in the kernel and it doesn't appear to be KSE related. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Thu Sep 18 04:53:24 2003 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 A9ABA16A4BF; Thu, 18 Sep 2003 04:53:24 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC96B43FBD; Thu, 18 Sep 2003 04:53:23 -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.8/8.12.1) with ESMTP id h8IBrMDm025821; Thu, 18 Sep 2003 07:53:22 -0400 (EDT) Date: Thu, 18 Sep 2003 07:53:22 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Maxim Konovalov In-Reply-To: <20030916112331.M89056@news1.macomnet.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: David Xu cc: threads@FreeBSD.org Subject: Re: libthr/libkse and Mozilla Firebird 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, 18 Sep 2003 11:53:24 -0000 On Tue, 16 Sep 2003, Maxim Konovalov wrote: > [...] > > > From ktrace.out the last things firebird done were: > > > > > > # kdump -f ktrace.out | tail -20 > > > 37436 MozillaFirebird-bin CALL socket(0x2,0x1,0) > > > 37436 MozillaFirebird-bin RET socket 31/0x1f > > > 37436 MozillaFirebird-bin CALL fcntl(0x1f,0x3,0x10) > > > 37436 MozillaFirebird-bin RET fcntl 2 > > > 37436 MozillaFirebird-bin CALL fcntl(0x1f,0x4,0x6) > > > 37436 MozillaFirebird-bin RET fcntl 0 > > > 37436 MozillaFirebird-bin CALL connect(0x1f,0xbfaedc48,0x10) > > > 37436 MozillaFirebird-bin RET connect -1 errno 36 Operation now in progress > > > 37436 MozillaFirebird-bin CALL poll(0xbfaedce8,0x6,0xffffffff) > > > 37436 MozillaFirebird-bin RET fork 0 > > > 37436 MozillaFirebird-bin CALL gettimeofday(0xbfabaf10,0) > > > 37436 MozillaFirebird-bin RET gettimeofday 0 > > > 37436 MozillaFirebird-bin CALL gettimeofday(0xbfabaee0,0) > > > 37436 MozillaFirebird-bin RET gettimeofday 0 > > > 37436 MozillaFirebird-bin PSIG SIGSEGV caught handler=0x484f62e0 mask=0xfffefaff code=0xc > > > 37436 MozillaFirebird-bin CALL unlink(0x81c4440) > > > 37436 MozillaFirebird-bin NAMI "/home/maxim/.phoenix/default/17ma97wm.slt/lock" > > > 37436 MozillaFirebird-bin RET unlink 0 > > > 37436 MozillaFirebird-bin CALL exit(0xb) > > > > Can you run it under the debugger? I was able to get > > mozilla to run under the debugger, but had to be root > > for it to work. > > # firebird --debug > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/run-mozilla.sh -g > /usr/X11R6/lib/firebird/lib/mozilla-1.5a/MozillaFirebird-bin > MOZILLA_FIVE_HOME=/usr/X11R6/lib/firebird/lib/mozilla-1.5a > ... > (no debugging symbols found)...(no debugging symbols found)... > (no debugging symbols found)... > Program terminated with signal SIGTRAP, Trace/breakpoint trap. > The program no longer exists. > (gdb) I get that too; I have no idea why. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Thu Sep 18 04:54:33 2003 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 8FB9916A4B3; Thu, 18 Sep 2003 04:54:33 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1427543FAF; Thu, 18 Sep 2003 04:54:32 -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.8/8.12.1) with ESMTP id h8IBsVDm026002; Thu, 18 Sep 2003 07:54:31 -0400 (EDT) Date: Thu, 18 Sep 2003 07:54:31 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Morten Rodal In-Reply-To: <20030916063449.GB813@slurp.rodal.no> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@FreeBSD.org cc: David Xu Subject: Re: libthr/libkse and Mozilla Firebird X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@FreeBSD.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Sep 2003 11:54:33 -0000 On Tue, 16 Sep 2003, Morten Rodal wrote: > How are you able to run it under the debugger? Whenever I try > (haven't tried as root) my computer panics! This is fixed now; bde committed a fix to i386/i386/trap.c. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Sat Sep 20 03:56:20 2003 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 681CF16A4B3 for ; Sat, 20 Sep 2003 03:56:20 -0700 (PDT) Received: from thuis.piwebs.com (217-19-20-186.dsl.cambrium.nl [217.19.20.186]) by mx1.FreeBSD.org (Postfix) with SMTP id 9C83643FEC for ; Sat, 20 Sep 2003 03:56:18 -0700 (PDT) (envelope-from avleeuwen@piwebs.com) Received: (qmail 31107 invoked by uid 85); 20 Sep 2003 10:56:24 -0000 Received: from avleeuwen@piwebs.com by thuis.piwebs.com by uid 82 with qmail-scanner-1.20rc1 (uvscan: v4.2.40/v4288. Clear:RC:1:. Processed in 0.084327 secs); 20 Sep 2003 10:56:24 -0000 Received: from unknown (HELO 192.168.0.109) (192.168.0.109) by 0 with SMTP; 20 Sep 2003 10:56:23 -0000 From: Arjan van Leeuwen To: threads@freebsd.org Date: Sat, 20 Sep 2003 12:56:16 +0200 User-Agent: KMail/1.5.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309201256.16926.avleeuwen@piwebs.com> cc: kde@freebsd.org Subject: Compiling arts in -CURRENT without -pthread 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: Sat, 20 Sep 2003 10:56:20 -0000 Hi, I'm trying to compile arts (audio/arts) in -CURRENT. I replaced -lpthread with ${PTHREAD_LIBS} in the ports' configure script. This makes it recognize -lc_r correctly, and it also uses that when building the port. However, after some time, the port will fail with these error messages: ---***start***--- /bin/sh ../libtool --silent --mode=link --tag=CXX c++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -pipe -mfpmath=sse -march=athlon-xp -fmemoize-lookups -fsave-memoized -fno-exceptions -fno-check-new -ftemplate-depth-99 -o libmcop_mt.la.closure libmcop_mt_la_closure.lo -no-undefined -version-info 1:0 threads_posix.lo ../mcop/libmcop.la -lc_r -Wl,-export-dynamic -L/usr/ local/lib -L/usr/X11R6/lib -ljpeg -L/usr/X11R6/lib libtool: link: warning: `-version-info' is ignored for programs .libs/threads_posix.o: In function `Arts::PosixThreads::pth_rec_cond_wait_timed(Arts::PosixThreads::_GslCond*, Arts::PosixThreads::_GslMutex*, unsigned long, unsigned long)': .libs/threads_posix.o(.text+0xad): undefined reference to `pthread_cond_timedwait' .libs/threads_posix.o: In function `Arts::PosixThreads::PosixThreads::isMainThread()': .libs/ threads_posix.o(.gnu.linkonce.t._ZN4Arts12PosixThreads12PosixThreads12isMainThreadEv +0x19): undefined reference to `pthread_equal' .libs/threads_posix.o: In function `Arts::PosixThreads::Thread_impl::setPriority(int)': .libs/ threads_posix.o(.gnu.linkonce.t._ZN4Arts12PosixThreads11Thread_impl11setPriorityEi +0x25): undefined reference to `pthread_setschedparam' .libs/threads_posix.o: In function `Arts::PosixThreads::Thread_impl::start()': .libs/ threads_posix.o(.gnu.linkonce.t._ZN4Arts12PosixThreads11Thread_impl5startEv +0x24): undefined reference to `pthread_create' .libs/threads_posix.o: In function `Arts::PosixThreads::Thread_impl::waitDone()': .libs/ threads_posix.o(.gnu.linkonce.t._ZN4Arts12PosixThreads11Thread_impl8waitDoneEv +0x17): undefined reference to `pthread_join' gmake[2]: *** [libmcop_mt.la.closure] Error 1 gmake[2]: Leaving directory `/usr/ports/audio/arts/work/arts-1.1.4/mcop_mt' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/audio/arts/work/arts-1.1.4' gmake: *** [all] Error 2 *** Error code 2 ---***end***--- How can all these pthread_* functions be undefined when it is linking against -lc_r? Arjan From owner-freebsd-threads@FreeBSD.ORG Sat Sep 20 04:54:24 2003 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 0999216A4B3 for ; Sat, 20 Sep 2003 04:54:24 -0700 (PDT) Received: from thuis.piwebs.com (217-19-20-186.dsl.cambrium.nl [217.19.20.186]) by mx1.FreeBSD.org (Postfix) with SMTP id 6EDC343FF5 for ; Sat, 20 Sep 2003 04:54:20 -0700 (PDT) (envelope-from avleeuwen@piwebs.com) Received: (qmail 31385 invoked by uid 85); 20 Sep 2003 11:54:26 -0000 Received: from avleeuwen@piwebs.com by thuis.piwebs.com by uid 82 with qmail-scanner-1.20rc1 (uvscan: v4.2.40/v4288. Clear:RC:1:. Processed in 0.101908 secs); 20 Sep 2003 11:54:26 -0000 Received: from unknown (HELO 192.168.0.109) (192.168.0.109) by 0 with SMTP; 20 Sep 2003 11:54:25 -0000 From: Arjan van Leeuwen To: threads@freebsd.org Date: Sat, 20 Sep 2003 13:54:18 +0200 User-Agent: KMail/1.5.3 References: <200309201256.16926.avleeuwen@piwebs.com> In-Reply-To: <200309201256.16926.avleeuwen@piwebs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309201354.18392.avleeuwen@piwebs.com> cc: kde@freebsd.org Subject: Re: [kde-freebsd] Compiling arts in -CURRENT without -pthread 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: Sat, 20 Sep 2003 11:54:24 -0000 On Saturday 20 September 2003 12:56, Arjan van Leeuwen wrote: > Hi, > > I'm trying to compile arts (audio/arts) in -CURRENT. I replaced -lpthread > with ${PTHREAD_LIBS} in the ports' configure script. This makes it > recognize -lc_r correctly, and it also uses that when building the port. > > However, after some time, the port will fail with these error messages: > (...) > > How can all these pthread_* functions be undefined when it is linking > against -lc_r? I just discovered that it works without any errors when using -lkse instead of -lc_r. Aren't these two libraries supposed to be compatible? Arjan From owner-freebsd-threads@FreeBSD.ORG Sat Sep 20 07:53:06 2003 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 9F84316A4B3; Sat, 20 Sep 2003 07:53:06 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54D1243FBF; Sat, 20 Sep 2003 07:53:05 -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 h8KEr4gG016008; Sat, 20 Sep 2003 10:53:04 -0400 (EDT) Date: Sat, 20 Sep 2003 10:53:04 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Arjan van Leeuwen In-Reply-To: <200309201354.18392.avleeuwen@piwebs.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: kde@freebsd.org Subject: Re: [kde-freebsd] Compiling arts in -CURRENT without -pthread 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: Sat, 20 Sep 2003 14:53:06 -0000 On Sat, 20 Sep 2003, Arjan van Leeuwen wrote: > On Saturday 20 September 2003 12:56, Arjan van Leeuwen wrote: > > Hi, > > > > I'm trying to compile arts (audio/arts) in -CURRENT. I replaced -lpthread > > with ${PTHREAD_LIBS} in the ports' configure script. This makes it > > recognize -lc_r correctly, and it also uses that when building the port. > > > > However, after some time, the port will fail with these error messages: > > > (...) > > > > How can all these pthread_* functions be undefined when it is linking > > against -lc_r? > > I just discovered that it works without any errors when using -lkse instead of > -lc_r. Aren't these two libraries supposed to be compatible? Yes, that's really strange. Are you sure that you have a correct libc_r in /usr/lib? You seem to be building arts in the correct manner, and -lc_r _should_ work. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Sat Sep 20 08:00:27 2003 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 4DF2F16A4BF for ; Sat, 20 Sep 2003 08:00:27 -0700 (PDT) Received: from hex.athame.co.uk (guru164.netsonic.fi [194.29.193.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CFB843FFB for ; Sat, 20 Sep 2003 08:00:26 -0700 (PDT) (envelope-from andy@athame.co.uk) Received: from vimes.int.athame.co.uk ([192.168.1.3]) by hex.athame.co.uk with esmtp (Exim 4.22) id 1A0jDi-0001P8-50; Sat, 20 Sep 2003 18:00:22 +0300 From: Andy Fawcett To: Daniel Eischen , Arjan van Leeuwen Date: Sat, 20 Sep 2003 18:00:16 +0300 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309201800.16834.andy@athame.co.uk> cc: threads@freebsd.org Subject: Re: [kde-freebsd] Compiling arts in -CURRENT without -pthread 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: Sat, 20 Sep 2003 15:00:27 -0000 On Saturday 20 September 2003 17:53, Daniel Eischen wrote: > On Sat, 20 Sep 2003, Arjan van Leeuwen wrote: > > On Saturday 20 September 2003 12:56, Arjan van Leeuwen wrote: > > > Hi, > > > > > > I'm trying to compile arts (audio/arts) in -CURRENT. I replaced > > > -lpthread with ${PTHREAD_LIBS} in the ports' configure script. > > > This makes it recognize -lc_r correctly, and it also uses that > > > when building the port. > > > > > > However, after some time, the port will fail with these error > > > messages: > > > > (...) > > > > > How can all these pthread_* functions be undefined when it is > > > linking against -lc_r? > > > > I just discovered that it works without any errors when using -lkse > > instead of -lc_r. Aren't these two libraries supposed to be > > compatible? > > Yes, that's really strange. Are you sure that you have a correct > libc_r in /usr/lib? You seem to be building arts in the correct > manner, and -lc_r _should_ work. I've also seen the identical effect, FWIW, when I started making the post-pthread changes. Unfortunately I ran out of time to check further. I don't do anything special with the world build, so I don't know what the problem is. A. -- Andy Fawcett | andy@athame.co.uk | tap@kde.org "In an open world without walls and fences, | tap@lspace.org we wouldn't need Windows and Gates." -- anon | tap@fruitsalad.org From owner-freebsd-threads@FreeBSD.ORG Sat Sep 20 08:18:01 2003 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 7DF9916A4E2 for ; Sat, 20 Sep 2003 08:18:01 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id B17ED43FE5 for ; Sat, 20 Sep 2003 08:18:00 -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 h8KFHugG019587; Sat, 20 Sep 2003 11:17:56 -0400 (EDT) Date: Sat, 20 Sep 2003 11:17:56 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Andy Fawcett In-Reply-To: <200309201800.16834.andy@athame.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: Arjan van Leeuwen Subject: Re: [kde-freebsd] Compiling arts in -CURRENT without -pthread X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2003 15:18:01 -0000 On Sat, 20 Sep 2003, Andy Fawcett wrote: > On Saturday 20 September 2003 17:53, Daniel Eischen wrote: > > On Sat, 20 Sep 2003, Arjan van Leeuwen wrote: > > > On Saturday 20 September 2003 12:56, Arjan van Leeuwen wrote: > > > > Hi, > > > > > > > > I'm trying to compile arts (audio/arts) in -CURRENT. I replaced > > > > -lpthread with ${PTHREAD_LIBS} in the ports' configure script. > > > > This makes it recognize -lc_r correctly, and it also uses that > > > > when building the port. > > > > > > > > However, after some time, the port will fail with these error > > > > messages: > > > > > > (...) > > > > > > > How can all these pthread_* functions be undefined when it is > > > > linking against -lc_r? > > > > > > I just discovered that it works without any errors when using -lkse > > > instead of -lc_r. Aren't these two libraries supposed to be > > > compatible? > > > > Yes, that's really strange. Are you sure that you have a correct > > libc_r in /usr/lib? You seem to be building arts in the correct > > manner, and -lc_r _should_ work. > > I've also seen the identical effect, FWIW, when I started making the > post-pthread changes. Unfortunately I ran out of time to check further. > > I don't do anything special with the world build, so I don't know what > the problem is. I think the problem might be with libstool^Wlibtool. Take a look at the libtool that the build is using (from my experience some of these ports use the system's installed libtool, others use their own libtool). See if it handles -lc_r specially. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Sat Sep 20 08:20:24 2003 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 89C0116A4B3; Sat, 20 Sep 2003 08:20:24 -0700 (PDT) Received: from hex.athame.co.uk (guru164.netsonic.fi [194.29.193.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id A043E43FBF; Sat, 20 Sep 2003 08:20:23 -0700 (PDT) (envelope-from andy@athame.co.uk) Received: from vimes.int.athame.co.uk ([192.168.1.3]) by hex.athame.co.uk with esmtp (Exim 4.22) id 1A0jX4-0001aq-DP; Sat, 20 Sep 2003 18:20:22 +0300 From: Andy Fawcett To: deischen@freebsd.org, Daniel Eischen Date: Sat, 20 Sep 2003 18:20:21 +0300 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309201820.21929.andy@athame.co.uk> cc: threads@freebsd.org cc: Arjan van Leeuwen Subject: Re: [kde-freebsd] Compiling arts in -CURRENT without -pthread 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: Sat, 20 Sep 2003 15:20:24 -0000 On Saturday 20 September 2003 18:17, Daniel Eischen wrote: > On Sat, 20 Sep 2003, Andy Fawcett wrote: > > On Saturday 20 September 2003 17:53, Daniel Eischen wrote: > > > On Sat, 20 Sep 2003, Arjan van Leeuwen wrote: > > > > On Saturday 20 September 2003 12:56, Arjan van Leeuwen wrote: > > > > > Hi, > > > > > > > > > > I'm trying to compile arts (audio/arts) in -CURRENT. I > > > > > replaced -lpthread with ${PTHREAD_LIBS} in the ports' > > > > > configure script. This makes it recognize -lc_r correctly, > > > > > and it also uses that when building the port. > > > > > > > > > > However, after some time, the port will fail with these error > > > > > messages: > > > > > > > > (...) > > > > > > > > > How can all these pthread_* functions be undefined when it is > > > > > linking against -lc_r? > > > > > > > > I just discovered that it works without any errors when using > > > > -lkse instead of -lc_r. Aren't these two libraries supposed to > > > > be compatible? > > > > > > Yes, that's really strange. Are you sure that you have a correct > > > libc_r in /usr/lib? You seem to be building arts in the correct > > > manner, and -lc_r _should_ work. > > > > I've also seen the identical effect, FWIW, when I started making > > the post-pthread changes. Unfortunately I ran out of time to check > > further. > > > > I don't do anything special with the world build, so I don't know > > what the problem is. > > I think the problem might be with libstool^Wlibtool. Take a > look at the libtool that the build is using (from my experience > some of these ports use the system's installed libtool, others > use their own libtool). See if it handles -lc_r specially. KDE uses its own version. I know this from several years of KDE experience. A. -- Andy Fawcett | andy@athame.co.uk | tap@kde.org "In an open world without walls and fences, | tap@lspace.org we wouldn't need Windows and Gates." -- anon | tap@fruitsalad.org From owner-freebsd-threads@FreeBSD.ORG Sat Sep 20 09:10:29 2003 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 284C916A4B3; Sat, 20 Sep 2003 09:10:29 -0700 (PDT) Received: from procyon.firepipe.net (procyon.firepipe.net [198.78.66.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2ECFD43FDD; Sat, 20 Sep 2003 09:10:28 -0700 (PDT) (envelope-from will@csociety.org) Received: by procyon.firepipe.net (Postfix, from userid 1000) id 1539945EAE; Sat, 20 Sep 2003 09:10:28 -0700 (PDT) Date: Sat, 20 Sep 2003 09:10:27 -0700 From: Will Andrews To: Arjan van Leeuwen Message-ID: <20030920161027.GK47671@procyon.firepipe.net> Mail-Followup-To: Arjan van Leeuwen , threads@freebsd.org, kde@freebsd.org References: <200309201256.16926.avleeuwen@piwebs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200309201256.16926.avleeuwen@piwebs.com> User-Agent: Mutt/1.4.1i cc: threads@freebsd.org cc: kde@freebsd.org Subject: Re: [kde-freebsd] Compiling arts in -CURRENT without -pthread 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: Sat, 20 Sep 2003 16:10:29 -0000 On Sat, Sep 20, 2003 at 12:56:16PM +0200, Arjan van Leeuwen wrote: > I'm trying to compile arts (audio/arts) in -CURRENT. I replaced -lpthread with > ${PTHREAD_LIBS} in the ports' configure script. This makes it recognize -lc_r > correctly, and it also uses that when building the port. > > However, after some time, the port will fail with these error messages: Lauri and I are working on getting qt/kde building on -current again the right way. In other words, she's made a patch for KDE's acinclude.m4.in and I'm testing it (explicitly for recent -CURRENT). If it works, we'll pull it into ports after the freeze lifts. So, please do not waste time on suboptimal solutions. Regards, -- wca From owner-freebsd-threads@FreeBSD.ORG Sat Sep 20 09:47:57 2003 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 0332C16A4B3; Sat, 20 Sep 2003 09:47:57 -0700 (PDT) Received: from procyon.firepipe.net (procyon.firepipe.net [198.78.66.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C09643FAF; Sat, 20 Sep 2003 09:47:56 -0700 (PDT) (envelope-from will@csociety.org) Received: by procyon.firepipe.net (Postfix, from userid 1000) id 5ECFA45EAE; Sat, 20 Sep 2003 09:47:56 -0700 (PDT) Date: Sat, 20 Sep 2003 09:47:56 -0700 From: Will Andrews To: Daniel Eischen Message-ID: <20030920164756.GL47671@procyon.firepipe.net> Mail-Followup-To: Daniel Eischen , threads@freebsd.org, kde@freebsd.org References: <200309201354.18392.avleeuwen@piwebs.com> 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 cc: kde@freebsd.org Subject: Re: [kde-freebsd] Compiling arts in -CURRENT without -pthread 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: Sat, 20 Sep 2003 16:47:57 -0000 On Sat, Sep 20, 2003 at 10:53:04AM -0400, Daniel Eischen wrote: > Yes, that's really strange. Are you sure that you have a correct > libc_r in /usr/lib? You seem to be building arts in the correct > manner, and -lc_r _should_ work. Dan, if PTHREAD_LIBS isn't defined, what library should 5.1C apps fall back to? It seems my 5.1C (2003/09/19) system does not have a libpthread, which I thought it was supposed to. So, please, tell me what a reasonable "default" would be to use if PTHREAD_LIBS is not defined. Is it -lkse? Why is FreeBSD not exporting an -lpthread like others seem to be? Regards, -- wca From owner-freebsd-threads@FreeBSD.ORG Sat Sep 20 11:34:02 2003 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 60ACD16A4B3; Sat, 20 Sep 2003 11:34:02 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85BBE43FAF; Sat, 20 Sep 2003 11:34:01 -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 h8KIXxgG018332; Sat, 20 Sep 2003 14:33:59 -0400 (EDT) Date: Sat, 20 Sep 2003 14:33:59 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Will Andrews In-Reply-To: <20030920161027.GK47671@procyon.firepipe.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: kde@freebsd.org cc: Arjan van Leeuwen Subject: Re: [kde-freebsd] Compiling arts in -CURRENT without -pthread 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: Sat, 20 Sep 2003 18:34:02 -0000 On Sat, 20 Sep 2003, Will Andrews wrote: > On Sat, Sep 20, 2003 at 12:56:16PM +0200, Arjan van Leeuwen wrote: > > I'm trying to compile arts (audio/arts) in -CURRENT. I replaced -lpthread with > > ${PTHREAD_LIBS} in the ports' configure script. This makes it recognize -lc_r > > correctly, and it also uses that when building the port. > > > > However, after some time, the port will fail with these error messages: > > Lauri and I are working on getting qt/kde building on -current > again the right way. In other words, she's made a patch for > KDE's acinclude.m4.in and I'm testing it (explicitly for recent > -CURRENT). If it works, we'll pull it into ports after the > freeze lifts. FYI, the libtool in libarts is wrong. It noops -lc_r. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Sat Sep 20 11:45:07 2003 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 460C716A501; Sat, 20 Sep 2003 11:45:07 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7C8243FF5; Sat, 20 Sep 2003 11:45:04 -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 h8KIj3gG020047; Sat, 20 Sep 2003 14:45:03 -0400 (EDT) Date: Sat, 20 Sep 2003 14:45:02 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Will Andrews In-Reply-To: <20030920164756.GL47671@procyon.firepipe.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: kde@freebsd.org Subject: Re: [kde-freebsd] Compiling arts in -CURRENT without -pthread X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2003 18:45:07 -0000 On Sat, 20 Sep 2003, Will Andrews wrote: > On Sat, Sep 20, 2003 at 10:53:04AM -0400, Daniel Eischen wrote: > > Yes, that's really strange. Are you sure that you have a correct > > libc_r in /usr/lib? You seem to be building arts in the correct > > manner, and -lc_r _should_ work. > > Dan, if PTHREAD_LIBS isn't defined, what library should 5.1C apps > fall back to? It seems my 5.1C (2003/09/19) system does not have > a libpthread, which I thought it was supposed to. So, please, > tell me what a reasonable "default" would be to use if > PTHREAD_LIBS is not defined. Is it -lkse? It should probably check for: 1) PTHREAD_LIBS 2) -lpthread 3) -lc_r in that order. I think we want to be like other OSs that have libpthread, Solaris for example, with the exception that we check to see if PTHREAD_LIBS is defined and use that in preference to the others. Solaris has both libpthread and libthread, but libthread exports different symbols (thr_* instead of pthread_*), so its probably explicitly selected rather than automagically selected. No, we don't have libpthread yet. We are waiting for ports to catch up to the PTHREAD_LIBS changes and then libkse will be renamed back to libpthread. If we change it now, some ports may be unbroken because they find -lpthread, but yet may still half-heartedly support PTHREAD_LIBS. So setting PTHREAD_LIBS to something other than libpthread won't break the port but will cause it not to run correctly (if at all). We also want to be able to select any of our threading libraries regardless of the existence of -lpthread, so falling back to -lpthread should probably only happen when building outside the ports system (PTHREAD_LIBS not defined). > Why is FreeBSD not exporting an -lpthread like others seem to be? To help you guys. Just like removing -pthread ;-) -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Sat Sep 20 12:48:29 2003 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 79E3F16A4B3; Sat, 20 Sep 2003 12:48:29 -0700 (PDT) Received: from procyon.firepipe.net (procyon.firepipe.net [198.78.66.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id D408743FAF; Sat, 20 Sep 2003 12:48:28 -0700 (PDT) (envelope-from will@csociety.org) Received: by procyon.firepipe.net (Postfix, from userid 1000) id 1772520C97; Sat, 20 Sep 2003 12:48:28 -0700 (PDT) Date: Sat, 20 Sep 2003 12:48:27 -0700 From: Will Andrews To: Daniel Eischen Message-ID: <20030920194827.GN47671@procyon.firepipe.net> Mail-Followup-To: Daniel Eischen , threads@freebsd.org, kde@freebsd.org References: <20030920164756.GL47671@procyon.firepipe.net> 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 cc: kde@freebsd.org Subject: Re: [kde-freebsd] Compiling arts in -CURRENT without -pthread 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: Sat, 20 Sep 2003 19:48:29 -0000 On Sat, Sep 20, 2003 at 02:45:02PM -0400, Daniel Eischen wrote: > It should probably check for: > > 1) PTHREAD_LIBS > 2) -lpthread > 3) -lc_r Yes, that's what our patch (in testing) does now. > No, we don't have libpthread yet. We are waiting > for ports to catch up to the PTHREAD_LIBS changes > and then libkse will be renamed back to libpthread. > If we change it now, some ports may be unbroken > because they find -lpthread, but yet may still > half-heartedly support PTHREAD_LIBS. So setting > PTHREAD_LIBS to something other than libpthread > won't break the port but will cause it not to > run correctly (if at all). We also want to be > able to select any of our threading libraries > regardless of the existence of -lpthread, so > falling back to -lpthread should probably only > happen when building outside the ports system > (PTHREAD_LIBS not defined). > > > Why is FreeBSD not exporting an -lpthread like others seem to be? > > To help you guys. Just like removing -pthread ;-) Your plan seems to have bumps in it. I suggest a more graceful approach next time, like announcing to ports@ the removal a lot sooner, removing it at least a month before any ports freeze, and generally pushing people to implement things the way you want them. The way it's gone so far, I'd say -CURRENT users are suffering the brunt of the problem caused by your abrupt removal of the -pthread option. Even if they're supposed to be able to put up with rough waters, it could have been done better anyway. "We obsoleted -pthread 2 years ago" does not help us, sorry. Regards, -- wca From owner-freebsd-threads@FreeBSD.ORG Sat Sep 20 17:31:21 2003 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 8482016A4B3; Sat, 20 Sep 2003 17:31:21 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC37E43FB1; Sat, 20 Sep 2003 17:31:18 -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 h8L0VHgG019829; Sat, 20 Sep 2003 20:31:17 -0400 (EDT) Date: Sat, 20 Sep 2003 20:31:17 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Will Andrews In-Reply-To: <20030920194827.GN47671@procyon.firepipe.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: kde@freebsd.org Subject: Re: [kde-freebsd] Compiling arts in -CURRENT without -pthread X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2003 00:31:21 -0000 On Sat, 20 Sep 2003, Will Andrews wrote: > On Sat, Sep 20, 2003 at 02:45:02PM -0400, Daniel Eischen wrote: > > It should probably check for: > > > > 1) PTHREAD_LIBS > > 2) -lpthread > > 3) -lc_r > > Yes, that's what our patch (in testing) does now. > > > No, we don't have libpthread yet. We are waiting > > for ports to catch up to the PTHREAD_LIBS changes > > and then libkse will be renamed back to libpthread. > > If we change it now, some ports may be unbroken > > because they find -lpthread, but yet may still > > half-heartedly support PTHREAD_LIBS. So setting > > PTHREAD_LIBS to something other than libpthread > > won't break the port but will cause it not to > > run correctly (if at all). We also want to be > > able to select any of our threading libraries > > regardless of the existence of -lpthread, so > > falling back to -lpthread should probably only > > happen when building outside the ports system > > (PTHREAD_LIBS not defined). > > > > > Why is FreeBSD not exporting an -lpthread like others seem to be? > > > > To help you guys. Just like removing -pthread ;-) > > Your plan seems to have bumps in it. I suggest a more graceful > approach next time, like announcing to ports@ the removal a lot > sooner, removing it at least a month before any ports freeze, and > generally pushing people to implement things the way you want > them. The way it's gone so far, I'd say -CURRENT users are > suffering the brunt of the problem caused by your abrupt removal > of the -pthread option. Even if they're supposed to be able to > put up with rough waters, it could have been done better anyway. > "We obsoleted -pthread 2 years ago" does not help us, sorry. Not to start an argument, but I have stated my intentions in the past. And not 2 years ago. Things seem to fall mostly on deaf ears until you actually do it. -- Dan Eischen