首页 > 移动平台 > 详细

Android -- SEGV_MAPERR,SEGV_ACCERR

时间:2019-08-22 15:25:23      阅读:168      评论:0      收藏:0      [点我收藏+]

Per siginfo.h:

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.

 

1.访问的页面甚至没有映射到应用程序的地址空间。
2.访问了一个具有错误权限的页面。

Android -- SEGV_MAPERR,SEGV_ACCERR

原文:https://www.cnblogs.com/gamesky/p/11394445.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!