public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/19567] New: dynamic_cast failure in dlopen-ed shared object
@ 2005-01-21 17:24 daveregs at rsaisp dot com
  2005-01-21 17:31 ` [Bug libstdc++/19567] " daveregs at rsaisp dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: daveregs at rsaisp dot com @ 2005-01-21 17:24 UTC (permalink / raw)
  To: gcc-bugs

Please note this is not a duplicate of #4993, because I am using RTLD_GLOBAL and
-Wl,-E.

This test project demonstatrates a problem when using dynamic_cast from inside a
shared object to attempt to convert a base class (interface) to a derived class
(another interface) whose definitions are in header files shared between the
application and the shared object.

When casting from a base class to the derived class from inside the main
executable, dynamic_cast works as expected and returns a non null pointer. 
However, from inside of the dlopen-ed shared library, the dynamic_cast function
incorrectly returns zero.

Attachment will follow.

-- 
           Summary: dynamic_cast failure in dlopen-ed shared object
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: daveregs at rsaisp dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19567


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

end of thread, other threads:[~2005-02-02  3:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-21 17:24 [Bug libstdc++/19567] New: dynamic_cast failure in dlopen-ed shared object daveregs at rsaisp dot com
2005-01-21 17:31 ` [Bug libstdc++/19567] " daveregs at rsaisp dot com
2005-01-21 17:33 ` daveregs at rsaisp dot com
2005-01-28 14:54 ` chris at bubblescope dot net
2005-01-28 15:10 ` daveregs at rsaisp dot com
2005-02-02  3:28 ` [Bug c++/19567] " daveregs at rsaisp dot com
2005-02-02  3:52 ` pinskia at gcc dot gnu dot org

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).