From owner-freebsd-stable Mon Mar 27 18:55:31 2000 Delivered-To: freebsd-stable@freebsd.org Received: from charon.ipass.net (charon.ipass.net [198.79.53.8]) by hub.freebsd.org (Postfix) with ESMTP id 576D737B71F for ; Mon, 27 Mar 2000 18:55:28 -0800 (PST) (envelope-from rhh@ipass.net) Received: from stealth.ipass.net. (ppp-1-159.dialup.rdu.ipass.net [209.170.132.159]) by charon.ipass.net (8.9.3/8.9.3) with ESMTP id VAA21753; Mon, 27 Mar 2000 21:55:26 -0500 (EST) Received: (from rhh@localhost) by stealth.ipass.net. (8.9.3/8.8.8) id VAA64237; Mon, 27 Mar 2000 21:58:04 -0500 (EST) (envelope-from rhh) Date: Mon, 27 Mar 2000 21:58:04 -0500 From: Randall Hopper To: John Polstra Cc: stable@freebsd.org Subject: Re: Dynamic linker bug in 3.4-RELEASE (I think) Message-ID: <20000327215804.A64173@ipass.net> References: <20000317195156.A24243@ipass.net> <200003280211.SAA03086@vashon.polstra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200003280211.SAA03086@vashon.polstra.com>; from jdp@polstra.com on Mon, Mar 27, 2000 at 06:11:27PM -0800 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Polstra: |In article <20000317195156.A24243@ipass.net>, |Randall Hopper wrote: |> I have a small program I wrote that uses sigwait and takes about 1 second |> to complete. |> |> If I run it over-and-over many times repeatedly, occasionally the dynamic |> linker will fail to resolve the "sigwait" symbol. | |Is your program multi-threaded? There are some known problems in |connection with that. This program isn't threaded, though I compiled it with -pthread (another util in that dir is threaded, and I'd used the same CFLAGS for both). |Try setting LD_BIND_NOW=1 in the environment and see if that changes |the behavior. That seemed to clear it up. (Though, it happens so rarely it's hard to be sure.) Randall To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message