Multiple values for LD_LIBRARY_PATH in LD_DEBUG outputs
Nima Hamidi
nimaa.hamidi@gmail.com
Sun Sep 8 21:40:44 GMT 2024
Adding some details: I’m using glibc2.28 on rhel8.
On Sep 8, 2024 at 4:34 PM -0500, Nima Hamidi <nimaa.hamidi@gmail.com>, wrote:
> Hello all,
>
> I’m debugging a DSO loading issue, and I’ve set LD_DEBUG=libs prior to running my binary. In the output, I see chunks of output of the form:
>
> find library=libfoo.so [0] searching
> search path=<path-1> (LD_LIBRARY_PATH)
> trying file=<path-1>/libfoo.so
> search path=<path-2> (RPATH from file libbar.so)
> trying file=<path-2>/libfoo.so
> search path=<path-3> (LD_LIBRARY_PATH)
> trying file=<path-3>/libfoo.so
> search path=<path-4> (RPATH from file libbar.so)
> trying file=<path-4>/libfoo.so
>
> Why do I see multiple (LD_LIBRARY_PATH) in this chunk? Would you not expect to see one? And would you not expect that to match my LD_LIBRARY_PATH output (which is not the case)? Same question about RPATH corresponding to each individual DSO.
>
> Thanks,
> Nima
More information about the Libc-help
mailing list