Date: Wed, 30 Jun 1999 13:38:08 -0700 (PDT) From: John Polstra <jdp@polstra.com> To: Max Khon <fjoe@iclub.nsu.ru> Cc: hackers@freebsd.org Subject: Re: dlopen returns non NULL Message-ID: <XFMail.990630133808.jdp@polstra.com> In-Reply-To: <Pine.BSF.4.05.9907010315100.88886-100000@iclub.nsu.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990630133808.jdp>