This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8847: dynamic_cast segfaults with shared lib
- From: Markus Hillebrand <himself at markus-hillebrand dot de>
- To: gcc-gnats at gcc dot gnu dot org,gcc-prs at gcc dot gnu dot org,hans dot utz at informatik dot uni-ulm dot de,gcc-bugs at gcc dot gnu dot org,nobody at gcc dot gnu dot org
- Date: Sat, 18 Jan 2003 01:30:44 +0100
- Subject: Re: c++/8847: dynamic_cast segfaults with shared lib
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-
trail&database=gcc&pr=8847
Hi!
Maybe I can provide a hint on that problem ...
Today I had some similiar problems by updating some
of my libraries and some other sources. I also had a
segmentation-fault on a dynamic_cast. After reading this
posting I remembered, that problems can occur, when
using shared libraries are used without using the -fPIC
compiler option.
I recompiled the library (omniORB-4.0.0, RedHat 7.3 x-86 Linux,
with gcc-3.2.1) and my source with this option and the problem
disappeared. I think this is some nasty thing, that there is no
(linker) check about that. Maybe someone will provide some more
comfortable checkings here ...
With best regards,
M. Hillebrand