This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]