Questions tagged [sigbus]

The SIGBUS signal is sent to a process when it causes a bus error. The conditions that lead to the signal being raised are, for example, incorrect memory access alignment or non-existent physical address.

65 questions
0
votes
0 answers

Diagnosing SIGBUS error on OS X Yosemite

I'm attempting to convert some code to run on OS X and having problems with some of the low-level memory writing code (which works on Linux/Windows platforms). Specifically the method being called is: void Dset_mem_write_i1B(void* ptr,int val) { …
akosky
  • 834
  • 9
  • 5
0
votes
3 answers

Memory leak problem. iPhone SDK

i've got a problem, i cannot solve it, just recieving error: Program received signal: “0”. The Debugger has exited due to signal 10 (SIGBUS).The Debugger has exited due to signal 10 (SIGBUS). Here is some method, if i comment it out, problem goes…
x0661t
  • 1
  • 3
-1
votes
1 answer

OpenGL getShaderInfoLog Bus Error 10

When I run the following code (or any of the variations I've tried), I get a bus error. It compiles fine. #include #include #include #include #include void main() { /* * * * * * * * * * *…
-2
votes
1 answer

K+R 2.4: bus error when assigning (Mac OS)

I'm currently trying to solve exercise 2.4 of the K+R book and came across an odd error I can't really reproduce elsewhere. I'm using: Apple LLVM version 8.0.0 (clang-800.0.42.1) Target: x86_64-apple-darwin16.4.0 Thread model: posix InstalledDir:…
satou
  • 1
-3
votes
1 answer

In what cases c-style casting of base class to derived may cause crash

I'm investigating a random crash (SIGBUS), and trying to find out what could possibly corrupt the pointer which invokes crashed method. I found that this pointer is casted from it's base class using C-style casting in C++ code. So, I wonder in what…
mol
  • 2,607
  • 4
  • 21
  • 40
1 2 3 4
5