zoukankan      html  css  js  c++  java
  • 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.

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

  • 相关阅读:
    第一次热身赛和正式比赛感想
    简明解释算法中的大O符号
    poj 3045
    poj 3104
    poj 3273
    poj 3258
    poj 2456
    二分法小结
    Poj 2718 Smallest Difference
    GCJ——Crazy Rows (2009 Round 2 A)
  • 原文地址:https://www.cnblogs.com/gamesky/p/11394445.html
Copyright © 2011-2022 走看看