Debugging SIGBUS on x86 Linux

前端 未结 9 1356
生来不讨喜
生来不讨喜 2020-11-30 08:38

What can cause SIGBUS (bus error) on a generic x86 userland application in Linux? All of the discussion I\'ve been able to find online is regarding memory alignment errors,

9条回答
  •  余生分开走
    2020-11-30 09:37

    SIGBUS can happen in Linux for quite a few reasons other than memory alignment faults - for example, if you attempt to access an mmap region beyond the end of the mapped file.

    Are you using anything like mmap, shared memory regions, or similar?

提交回复
热议问题