View Single Post
Old 07-23-2017, 12:10 PM   #63
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by nasser View Post
knc1,

I tried it. The output varies depending on whether I use the 'ld-linux' or 'export LD_LIBRARY' method to pre-load the required libraries.

I'm still trying to sort out and understand the output.

With the 'ld-linux' method, the output show a 'Segmentation fault' at the end, after a 'trying libpthread.so' message.

With the 'export LD_LIBRARY' method, the output goes into an endless loop! After I did a Ctrl-C and scrolled back, I could only see a series of 'searching', 'finding' and 'trying' messages.
That is interesting.
I haven't seen or heard of that happening, the dynamic loader is a pretty solid piece of software.
To put it into a loop deserves some sort of award (or a message to Ulrich Drepper).

It should have output the complete pathname to each library it was going to try using. That so you can check the specific file that is giving the trouble.

That information is cached, and only output when first encountered.
I.E: you have to capture the head of the output, not the tail.

And -
LD_DEBUG=help
IIRC, that will output a full set of the options (you can use more than one at a time) - maybe =libs is not the most helpful one in this case.

Last edited by knc1; 07-23-2017 at 12:16 PM.
knc1 is offline   Reply With Quote