From owner-freebsd-hackers Mon Jan 19 14:15:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA24826 for hackers-outgoing; Mon, 19 Jan 1998 14:15:18 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA23511 for ; Mon, 19 Jan 1998 14:14:04 -0800 (PST) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id OAA25533; Mon, 19 Jan 1998 14:13:34 -0800 (PST) (envelope-from jdp) Message-Id: <199801192213.OAA25533@austin.polstra.com> To: brian@Awfulhak.org Subject: Re: Recent libalias/ppp crashes. dlsym() bug ? In-Reply-To: <199801192047.UAA21903@awfulhak.org> References: <199801192047.UAA21903@awfulhak.org> Organization: Polstra & Co., Seattle, WA Cc: hackers@FreeBSD.ORG Date: Mon, 19 Jan 1998 14:13:34 -0800 From: John Polstra Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk In article <199801192047.UAA21903@awfulhak.org>, Brian Somers wrote: > This begs the question: Why can I load a function with dlsym() that > has unresolved variables in it ? Almost certainly because you specified a mode lf RTLD_LAZY in your dlopen call. If you want all external references to be checked immediately, use RTLD_NOW instead. See dlopen(3). John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth