This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: dlopen() crash -gcc 3.4.6 20060404
- From: Anitha Boyapati <anithab at sankhya dot com>
- To: Gaurav Kheterpal <gaurav dot kheterpal at premiereglobal dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 26 Jul 2007 15:21:06 +0530 (IST)
- Subject: Re: dlopen() crash -gcc 3.4.6 20060404
> >
> > libchrcv.so is a shared library which in turn links against 2 libraries ?
> > librcvagent.so and libcontrolagent.so. I verified that both these .so files
> > are present in the path specified in LD_LIBRARY_PATH.
Do you mean to - libchrcv.so does another 2 such dlopen () and loads
2 other files ? If that is the case maybe you are using dlclose
unitenionally somewhere (quite common when use static variables).
In such a case, the handle is lost.
Btwn - is this C ? ( I wonder what those printf's mean!)
> >
> > I compile this program using gcc test.c ?ldl & it compiles & links fine.
> > However, when I execute it, I get a segmentation fault. The output is:-
> >
> > Starting now !!!
> > Segmentation fault
> >
> > There is no core file generated. I capture the LD_DEBUG output & it is
> > attached for reference.
> >
> > I?ll be thankful if somebody can look at the attached file & guide me on
> > what the problem is.
> >
> > Thanks in advance.
> >
> > Regards,
> > Gaurav.
> >
> >
> >
>
>
--
Regards,
Anitha B
@S A N K H Y A