I have created a c code for a real-time project. I'm using an Ubuntu 15.04 and the code crash with this result(gdb):
Program received signal SIGSEGV , Segmentation fault.
[Switching to thread 0x7fffeb7fe700 (LWP 4072)]
__GI___pthread_mutex_lock (mutex=0xfffffffeb5c6dcb0)
at ../nptl/pthread_mutex_loxk.c:67
67 ../nptl/pthread_mutex_lock.c: File o directory non esistente
Tiping : (gdb) x/i $pc the following message appear on the screen:
=> 0x7ffff7bc4c84 <__GI___pthread_mutex_lock+4>: move 0x10(%rdi),%edx
Can the problem be caused by stackoverflow? How can I solve the problem? Is it possible to know the exact code's row in which the crash appear?