My C program crashed on CentOS 5.7 with the following log:
kernel: [1030648.130682] myapp[16454]: segfault at 0 ip b765f683 sp bfc3fa0c error 4 in libc-2.5.so[b75ee000+157000]
Seems a call to libc caused the segfault. How can I know in which function in libc the segfault happened?
It's a prod environment and no coredump file was left; and it rarely reproduces. So, what I can do now is to analyze which function in libc (called by my program) caused this segfault, then I can check my code.
It'll be great if there are pointers that explain what these numbers mean: ip b765f683, sp bfc3fa0c, error 4, b75ee000+157000. I googled but didn't find good references.
Thanks.