public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/964] New: Symbol resolution on the dopened libraries doesn't happen from the dependent libraries
@ 2005-05-24 11:03 jjaimon at novell dot com
  2005-05-24 11:05 ` [Bug libc/964] Symbol resolution on the dlopen'ed " jjaimon at novell dot com
  2005-06-01 14:52 ` gotom at debian dot or dot jp
  0 siblings, 2 replies; 3+ messages in thread
From: jjaimon at novell dot com @ 2005-05-24 11:03 UTC (permalink / raw)
  To: glibc-bugs

The man page for dlopen says 
"External  references in the library are resolved using the libraries in that
library's dependency  list  and  any  other  libraries  previously opened  with
 the  RTLD_GLOBAL flag.  If the executable was linked with the flag "-rdynamic"
(or, synonymously, "--export-dynamic"),  then  the global  symbols  in  the
executable will also be used to resolve references in a dynamically loaded library"
However, the symbol resoultion within the dlopened libraries goes to the binary
level and start searching down.  For eg.
             Application
                  /\
                 /  \
          libopen    libpam
                       \
                        \dlopen()
                         \
                         liblum
                           \
                            \
                            libnvl
both libopen and libnvl exports same set of APIs.  When liblum calls one of the
API exported by libnvl, the expectation is that, the call will get resolved from
libnvl since liblum is dlopened by libpam and libnvl is dynamically linked with
liblum.  However, the symbol gets resolved from libopen which is wrong as per
the man page.

-- 
           Summary: Symbol resolution on the dopened libraries doesn't
                    happen from the dependent libraries
           Product: glibc
           Version: 2.3.4
            Status: NEW
          Severity: critical
          Priority: P1
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: jjaimon at novell dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=964

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/964] Symbol resolution on the dlopen'ed libraries doesn't happen from the dependent libraries
  2005-05-24 11:03 [Bug libc/964] New: Symbol resolution on the dopened libraries doesn't happen from the dependent libraries jjaimon at novell dot com
@ 2005-05-24 11:05 ` jjaimon at novell dot com
  2005-06-01 14:52 ` gotom at debian dot or dot jp
  1 sibling, 0 replies; 3+ messages in thread
From: jjaimon at novell dot com @ 2005-05-24 11:05 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Symbol resolution on the    |Symbol resolution on the
                   |dopened libraries doesn't   |dlopen'ed libraries doesn't
                   |happen from the dependent   |happen from the dependent
                   |libraries                   |libraries


http://sources.redhat.com/bugzilla/show_bug.cgi?id=964

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/964] Symbol resolution on the dlopen'ed libraries doesn't happen from the dependent libraries
  2005-05-24 11:03 [Bug libc/964] New: Symbol resolution on the dopened libraries doesn't happen from the dependent libraries jjaimon at novell dot com
  2005-05-24 11:05 ` [Bug libc/964] Symbol resolution on the dlopen'ed " jjaimon at novell dot com
@ 2005-06-01 14:52 ` gotom at debian dot or dot jp
  1 sibling, 0 replies; 3+ messages in thread
From: gotom at debian dot or dot jp @ 2005-06-01 14:52 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From gotom at debian dot or dot jp  2005-06-01 14:52 -------
Glibc provides info, but it does not provide manpages you
pointed out.  Please contact to the appropriate manpage
authors about your report instead of us.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://sources.redhat.com/bugzilla/show_bug.cgi?id=964

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-01 14:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-24 11:03 [Bug libc/964] New: Symbol resolution on the dopened libraries doesn't happen from the dependent libraries jjaimon at novell dot com
2005-05-24 11:05 ` [Bug libc/964] Symbol resolution on the dlopen'ed " jjaimon at novell dot com
2005-06-01 14:52 ` gotom at debian dot or dot jp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).