Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Valgrind not showing source code for the dynamic library

Tags:

valgrind

I'm trying to debug my program using Valgrind. I compiled with -g3 -O0 -ggdb. How ever I am unable to see the source code corresponding to the point where Valgrind finds problem. The output just shows the name of the (binary)library.

Valkyrie screenshot

like image 720
deeJ Avatar asked Nov 02 '22 10:11

deeJ


1 Answers

These addresses are of no interest. They belong to the runtime support code that runs after main and calls destructors of global objects and atexit routines. They do not have any source (that you wrote) associated with them.

You can tell that from their placement between exit and __cxa_finalize in the call stack. No user code could possibly belong there.

like image 99
n. 1.8e9-where's-my-share m. Avatar answered Nov 25 '22 19:11

n. 1.8e9-where's-my-share m.