dlopen() crash -gcc 3.4.6 20060404

Anitha Boyapati anithab@sankhya.com
Thu Jul 26 09:56:00 GMT 2007



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




More information about the Gcc-help mailing list