我是靠谱客的博主 欣喜指甲油,最近开发中收集的这篇文章主要介绍Android -- SEGV_MAPERR,SEGV_ACCERR,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

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

最后

以上就是欣喜指甲油为你收集整理的Android -- SEGV_MAPERR,SEGV_ACCERR的全部内容,希望文章能够帮你解决Android -- SEGV_MAPERR,SEGV_ACCERR所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(61)

评论列表共有 0 条评论

立即
投稿
返回
顶部