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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With