Per siginfo.h:app
SEGV_MAPERR means you tried to access an address that doesn’t map to anything.dom
SEGV_ACCERR means you tried to access an address that you don’t have permission to access.ui
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.code
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.orm
1.訪問的頁面甚至沒有映射到應用程序的地址空間。
2.訪問了一個具備錯誤權限的頁面。get