I get a Segmentation fault (Address not found
). The outcome I receive looks something like this:
#3 Object "/some/dir/bin/myProject", at 0x415526, in
#2 Object "/some/dir/bin/myProject", at 0x40d3f9, in
#1 Object "/some/dir/bin/myProject", at 0x409b1a, in
#0 Object "/lib64/libpthread.so.0", at 0x7f9a82a78cd0, in pthread_mutex_lock
I would like to know to which command the positions translate in myProject.cpp
. How can I do that?
The reason why I do not examine this with gdb
is that this error is caused by the way multiple threads communicate and human intervention introduces so much wait time that this error does not happen. The error is also sporadic...
Additional question:
My understanding of the error Address not found
is that this is probably caused by dereferencing a nullprt or when trying to access a container at the wrong place. Would you agree?
EDIT
Thank`s for suggesting to debug the core dump files. The problem with this is: When there is this error, the program does not crash! The error (or a similar one) is printed to console and the program gets stuck (multithreading again...). It does not terminate, so I guess that there are no dump files (correct me if I am wrong!). I could not find any...