Backtrace on P1014.

Carmelo AMOROSO carmelo.amoroso at st.com
Fri Apr 26 06:53:22 UTC 2013


On 26/04/2013 5.30, ANDY KENNEDY wrote:
> I'm attempting to link static an app that contains backtrace.  I
> set LDFLAGS to "-lubacktrace -ldl" and I get a viable file which
> does run.  The app crashes.  During the call to backtrace, I get
> an error:
> 
> libgcc_s.so.1 must be installed for backtrace to work
> 
> I have attempted to launch the app with LD_LIBRARY_PATH, however,
> it appears that this has an unobtainable path:
> 
> 

?

> ~/working/uClibc-0.9.33.2$ grep -R __LDSO_LIBRARY_PATH__ .
> ./ldso/libdl/libdl.c:#if !defined SHARED && defined __LDSO_LIBRARY_PATH__
> 
> Does anyone know why the __LDSO_LIBRARY_PATH__ is here?
> 

could you elaborate a bit more ?
Actually we have tested backtrace() in shared case ... not sure if there
could be problem when static libraries are used. It could be that there
are problems in using dlopen with static lirabries (even if we have used
it in the past).

We'll try to give a look. If you have a test case to share, please do.

P.S.
On which platform are you trying to use it ?

> Thanks,
> Andy

Cheers,
Carmelo

> _______________________________________________

> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc
> 
> 



More information about the uClibc mailing list