Android -- SEGV_MAPERR,SEGV_ACCERR
2015-07-23 13:28
447 查看
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.
来自:http://stackoverflow.com/questions/19124925/what-is-the-meaning-of-code-in-segmentation-fault
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.
来自:http://stackoverflow.com/questions/19124925/what-is-the-meaning-of-code-in-segmentation-fault
相关文章推荐
- Android百度 地图打开显示某坐标的地图
- Triumph! Android Studio 1.2 Sneaks In Full Testing Support(译文)
- Android 删除再创建导致open failed: EBUSY (Device or resource busy)
- AES加密解密在JAVA和ANDROID下互通
- Android中icon和logo的区别
- Android中icon和logo的区别
- android“设置”里的版本号
- Android调用系统日历插入日程
- 【原创】Android studio入门详细教程,首次启动配置,不翻墙搞定
- Android LruCache用于Bitmap
- android开发——camera类拍照指定图片大小
- Android studio 编译出现非法字符: \65279解决办法
- GitHub 优秀的 Android 开源项目
- Android Studio 活动的最佳实践 知晓当前是在哪一个活动 随时随地地进入程序 启动活动的最佳写法 第一行代码
- 快捷方式连同程序一起卸载
- GitHub上最火的74个Android开源项目(三)
- GitHub上最火的40个Android开源项目(二)
- GitHub上最火的40个Android开源项目(一)
- androidStudio自动黑盒测试
- Android APK反编译就这么简单 详解