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 [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message