From owner-freebsd-hackers Wed Jun 30 13:38:12 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 74C8715660 for ; Wed, 30 Jun 1999 13:38:09 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.1) with ESMTP id NAA05736; Wed, 30 Jun 1999 13:38:09 -0700 (PDT) (envelope-from jdp@polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id NAA07449; Wed, 30 Jun 1999 13:38:08 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Wed, 30 Jun 1999 13:38:08 -0700 (PDT) Organization: Polstra & Co., Inc. From: John Polstra To: Max Khon Subject: Re: dlopen returns non NULL Cc: hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Max Khon wrote: >> For a.out, it's a known bug and there is already an open PR on it. >> I wouldn't be surprised if the bug existed in ELF too. > > 3.2-STABLE built on 10 Jun, ELF Thanks for the info. Could you please do a send-pr on this bug, and tell me the PR number? Then I'll assign myself as the resposible person. Please be sure to state that it's the ELF dynamic linker. If you're in a big hurry and would like to work on it yourself, the relevant code is in "src/libexec/rtld-elf/rtld.c" in the function dlopen() near the comment that says "XXX - Clean up properly after an error." :-) The fix may be as simple as calling unref_object_dag() from the failure cases there, but it will need careful checking. Some additional changes may be needed in load_needed_objects() near the comment that says "XXX - cleanup." :-) Thanks, John --- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "No matter how cynical I get, I just can't keep up." -- Nora Ephron To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message