c++/8847: dynamic_cast segfaults with shared lib
Markus Hillebrand
himself@markus-hillebrand.de
Sat Jan 18 01:45:00 GMT 2003
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
More information about the Gcc-bugs
mailing list