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.
Questions tagged [sigbus]
65 questions
1
vote
0 answers
signal 7 (SIGBUS), code 1 (BUS_ADRALN) - how to debug
I have a weird crash - the crash reproduces almost only on Samsung Galaxy Tab A (with S Pen) devices, on a release build.
The stack-trace is very short, and consist only of two relevant lines -
/lib/arm/my-jni.so…

Witterquick
- 6,048
- 3
- 26
- 50
1
vote
1 answer
When accessing mmap adress, signal SIGBUS was received
When I tried to access the address mmap returned, a Bus error is occured.
My code is below:
ftruncate(fd, shared_size);
addr = mmap(shared_start, shared_size, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_FIXED, fd, 0);
shared_size ==…

Suri2020
- 21
- 3
1
vote
0 answers
Python how to debug SIGBUS / SIGILL error?
I have a very long-running python script, which synchronises data across different systems. It does a lot of data retrieval, data transformation, HTTP requests, and all of that partially multithreaded.
The script sometimes produces SIGBUS / SIGILL…

Fabian Bosler
- 2,310
- 2
- 29
- 49
1
vote
0 answers
why memset share memory created by shm_open cause sigbus err on aarch64
Please someone help with below share memory proble on arm, why memset fails?
kernel-arch - aarch64
user-arch - arm
every time dolagent.app run, sigbus err occurred, backtrace with the core shows memset is the last line,
create shared…

jackxie
- 33
- 1
- 10
1
vote
1 answer
SIGBUS on ARM Cortex when accessing external device
I have a Zynq UltraScale MPSoC with a Quad core ARM Cortex on it running Linux. Occasionally, there is an event that is generating a SIGBUS error. I have included a snippet of the debug analysis below. I have been assured that the values for dst…

Rich Maes
- 1,204
- 1
- 12
- 29
1
vote
1 answer
How to correctly handle SIGBUS so I can continue to search an address?
I'm currently working on a project running on a heavily modified version of Linux patched to be able to access a VMEbus. Most of the bus-handling is done, I have a VMEAccess class that uses mmap to write at a specific address of /dev/mem so a driver…

Tzig
- 726
- 5
- 20
1
vote
1 answer
call stack shows SIGBUS, what does that mean
My call stack shows the following:
--- called from signal handler with signal 10 (SIGBUS) ---
001301b8 allocate__t24__default_alloc_template2b0i0Ui (20, 20, 309940, 36, fc55
1a00, 0) + a4
0011dcb8…

Dr. Debasish Jana
- 6,980
- 4
- 30
- 69
1
vote
0 answers
Unaligned memory access with AC flag does not raise any trap on Windows
With Intel x86_64 CPU.
I am trying to catch "unaligned memory access fault" on Windows.
this works perfectly on Linux (Ubuntu).
For example, I can turn on the AC flag on EFLAGS register like this
pushfd
or DWORD PTR[esp], 0x40000
…

daehee
- 5,047
- 7
- 44
- 70
1
vote
1 answer
SIGBUS on mmap with MAP_FIXED | MAP_FILE | MAP_SHARED
:) I'm trying to port some legacy code (large program) to CentOS 7 but I'm hitting a snag. The core of the code is a rather awkard structure built around using mmap to allocate a hard-coded address and map a file to it. The file acts like a…

KarenRei
- 589
- 6
- 13
1
vote
1 answer
SIGBUS Error - Assembly for ARM processor on RaspberryPi
I'm learning assembly in my spare time as i'm interested in low level operations. I tried running the code from this tutorial.
The code can be found here and below:
/******************************************************************************
*…

daviegravee
- 171
- 2
- 12
1
vote
2 answers
iOS Application crashes in release version on device
I am facing a strange issue, and have already spent quite a lot of time on this.
A crash occurs in my application, specifically in release build, on the device.
The crashlog is:
Incident Identifier: 1879D689-B225-4586-8E8E-D4D9DB392ABB
CrashReporter…

Robin
- 497
- 5
- 19
1
vote
1 answer
After running startActivity for 2nd time in Service, my app starts crashing with Exceptions, Sigbus or Sigsegv errors
I'm developing an app and have a really big problem understanding or finding the cause of the errors I'm getting. Full code is available on Github: https://github.com/lordgreg/Sfen. The problematic line is ALWAYS startActivity(intent) around line…

gregor
- 609
- 1
- 7
- 15
1
vote
2 answers
Catch SIGBUS in C and C++
I want to catch SIGBUS, my code is shown below:
#include
#include
#include
#include
void catch_sigbus (int sig)
{
//std::cout << "SIGBUS" << std::endl;
printf("SIGBUS\n");
exit(-1);
}
int…

thanhtv
- 323
- 1
- 4
- 12
1
vote
1 answer
NPAPI: need to RetainObject() a handler twice, otherwise SIGBUS
In my NPAPI plugin, some of the objects have an "onEvent" property that is readable and writeable, and which is called on certain events.
What I have in my Javascript code will look like this:
myObject.onEvent = function( event ) {
…

Gui13
- 12,993
- 17
- 57
- 104
0
votes
0 answers
Linux 22 posix shared memory for ipc between python and c++/unreal sigbus errors
In an existing project I've started to help work on that has worked fine in the past, we're using posix shared memory for ipc between python and c++ code for Unreal Engine 4.27.
Recently the code started having issues, and it seems to have started…

BRomrell
- 1