[bootlin/training-materials updates] master: debugging: labs: Add ntoe about LD_LIBRARY_PATH (f1371cc5)

Clément Léger clement.leger at bootlin.com
Fri Dec 2 09:31:02 CET 2022


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/f1371cc58c2578bba9563a5e0d82cc5d0bfcf7a1

>---------------------------------------------------------------

commit f1371cc58c2578bba9563a5e0d82cc5d0bfcf7a1
Author: Clément Léger <clement.leger at bootlin.com>
Date:   Fri Dec 2 09:29:51 2022 +0100

    debugging: labs: Add ntoe about LD_LIBRARY_PATH
    
    Signed-off-by: Clément Léger <clement.leger at bootlin.com>


>---------------------------------------------------------------

f1371cc58c2578bba9563a5e0d82cc5d0bfcf7a1
 .../debugging-application-tracing/debugging-application-tracing.tex | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/labs/debugging-application-tracing/debugging-application-tracing.tex b/labs/debugging-application-tracing/debugging-application-tracing.tex
index 5f81d061..c5450e4a 100644
--- a/labs/debugging-application-tracing/debugging-application-tracing.tex
+++ b/labs/debugging-application-tracing/debugging-application-tracing.tex
@@ -17,7 +17,7 @@ $ cd /home/<user>/debugging-labs/nfsroot/root/ltrace/
 $ make
 \end{bashinput}
 
-From there, run the \code{authent} application on the target:
+From there, run the \code{authent} application on the target.
 
 \begin{bashinput}
 $ cd /root/ltrace
@@ -26,6 +26,10 @@ $ ./authent
 Error: failed to authenticate the user !
 \end{bashinput}
 
+Note: Since our application uses a local dynamic shared library which is not in
+the default paths expected by ld (see \manpage{ld.so}{8}), we need to provide
+that path using \code{LD_LIBRARY_PATH}.
+
 As you can see, it seems our application is failing to correctly authenticate
 the system. Using {\em ltrace}, trace the application in order to understand
 what is going on.




More information about the training-materials-updates mailing list