What is SEGV_MAPERR
, why does it always come up with SIGSEGV
?
There are two common kinds of SEGV, which is an error that results from an invalid memory access:
SEGV_ACCERR
.SEGV_MAPERR
.Documentation of a sort (indexed Linux source code) for SEGV_MAPERR
is here: https://elixir.bootlin.com/linux/latest/A/ident/SEGV_MAPERR.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With