What is SEGV_MAPERR
, why does it always come up with SIGSEGV
?
相关问题
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Error building gcc 4.8.3 from source: libstdc++.so
- Why should we check WIFEXITED after wait in order
- Null-terminated string, opening file for reading
It's a segmentation fault. Most probably a dangling pointer issue, or some sort of buffer overflow.
SIGSSEGV
is the signal that terminates it based on the issue, segmentation fault.Check for dangling pointers as well as the overflow issue.
Enabling core dumps will help you determine the problem.
There are two common kinds of SEGV, which is an error that results from an invalid memory access:
Documentation of a sort (indexed Linux source code) for SEGV_MAPERR is here: http://lxr.free-electrons.com/ident?i=SEGV_MAPERR.