Valgrind not showing source code for the dynamic library

valgrind

Solution

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.

Problem

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.

Original source