Skip to content
GitLab
Explore
Sign in
Admin message
A maintenance window for GitLab is scheduled on Wednesday, September 16th, from 08:00 to 12:00.
Changes
Page history
Create KnowledgeBase/Debugging Tips
authored
Sep 17, 2021
by
Gianluca Chiozzi
Hide whitespace changes
Inline
Side-by-side
KnowledgeBase/Debugging-Tips.md
0 → 100644
View page @
a55708a3
[[
_TOC_
]]
### Where are libraries loaded from?
**Problem**
I have problems with libraries loaded (eventually dynamically) from my application and I am not sure if the correct library is loaded.
Is there a way to know which libraries are loaded and from where?
**Solution**
`LD_DEBUG`
can output to a file all ld operations:
-
Set the file where you want to save the information:
```
> export LD_DEBUG_OUTPUT=/dev/shm/my_ld_file
```
-
Run you application
`my_executable`
with ld debug options set:
```
> LD_DEBUG=libs my_executable
```
\ No newline at end of file