[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: dlopen returns non NULL
From:       John Polstra <jdp () polstra ! com>
Date:       1999-06-30 20:38:08
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic