signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 41963214 signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 4006e000
SEGV_MAPERR means you tried to access an address that doesn't map to anything.
SEGV_ACCERR means you tried to access an address that you don't have permission to access.
So in both cases you accessed an address you shouldn't have, which is probably the only thing your actual code is guilty of. In the former case there's no memory in that address range anyway. In the latter case there is memory in that address range but you don't own it.
If you were to access a random address then which you get depends on how the OS happens to have your process set up at that moment.
SIGSEGV不同code
最新推荐文章于 2023-05-13 17:35:42 发布