I have an MPI application with which combines both C and Fortran sources. Occasionally it crashes due to a memory related bug, but I am having trouble finding the bug (it is som
If you are in gdb and you have debugging symbols, it is quite easy. Use list.
gdb
list
(gdb) list *0x804d5ce
This should give you the line of code, and show you the source if it is able to find the source file.
Without gdb you could try to use addr2line:
addr2line
$ addr2line -e finite_element 0x804d5ce