Android致命信号11(Sigsegv),代码2(SEGV_ACCERR),故障addr 0x714b52a000

发布于 2025-01-31 07:01:41 字数 1315 浏览 1 评论 0原文

我将NDK应用于我的项目。

我找到了一个解决方案,该解决方案本来可以通过对该内存的阅读许可来解决错误,但这对我不起作用。

我给了阅读对使用“ mprotect”访问的内存的访问权限。

另外,由于我尝试了各种测试用例,因此这个问题是不一致的和可能的。但是他们都得到了不同的结果。

我的测试设备是Galaxy 21。

这是我的错误:

************************************************************************************************
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x714b52a000
     x0  ffffffffffffffff  x1  0000000000000008  x2  0000000000000001  x3  0000000000000069
     x4  0000000000000021  x5  8080800000000080  x6  fefeff70a93f3eff  x7  7f7f7f7fff7f7f7f
     x8  000000714c060840  x9  000000714b529ffe  x10 00000000003a565e  x11 00000000000000ff
     x12 00000000003a565e  x13 0000000000000000  x14 00000072c0154110  x15 ffffffffffffffff
     x16 0000007524677f30  x17 0000007524607f78  x18 00000071aa400898  x19 00000073a023a1a0
     x20 0000000000000000  x21 0000007218f2bac0  x22 0000000000000000  x23 00000073a023a250
     x24 0000007218f2bac0  x25 0000000000000003  x26 000000000000000b  x27 00000071aa404000
     x28 00000071aa400db0  x29 00000071aa400590
     lr  000000714b935670  sp  00000071aa400430  pc  000000714b935684  pst 0000000020001000
************************************************************************************************

I applied the NDK to my project.

I found a solution that was supposed to fix the error by giving read permission to that memory, but this didn't work for me.

I gave read access to the memory I wanted to access using 'mprotect'.

Also, this problem is not consistent and probable because I tried various test cases; but they all got different results.

My test device is Galaxy 21.

Here is my error:

************************************************************************************************
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x714b52a000
     x0  ffffffffffffffff  x1  0000000000000008  x2  0000000000000001  x3  0000000000000069
     x4  0000000000000021  x5  8080800000000080  x6  fefeff70a93f3eff  x7  7f7f7f7fff7f7f7f
     x8  000000714c060840  x9  000000714b529ffe  x10 00000000003a565e  x11 00000000000000ff
     x12 00000000003a565e  x13 0000000000000000  x14 00000072c0154110  x15 ffffffffffffffff
     x16 0000007524677f30  x17 0000007524607f78  x18 00000071aa400898  x19 00000073a023a1a0
     x20 0000000000000000  x21 0000007218f2bac0  x22 0000000000000000  x23 00000073a023a250
     x24 0000007218f2bac0  x25 0000000000000003  x26 000000000000000b  x27 00000071aa404000
     x28 00000071aa400db0  x29 00000071aa400590
     lr  000000714b935670  sp  00000071aa400430  pc  000000714b935684  pst 0000000020001000
************************************************************************************************

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文