Linuxexit code > 0
Bus error (core dumped)
$./my-program: Bus error (core dumped)
Analysis
The process tried to access a memory address that the hardware cannot physically address (often alignment issues or non-existent memory).
Common Triggers
- ●Hardware failure (RAM/Disk).
- ●Programming error: accessing unaligned memory.
- ●Trying to access a memory-mapped file beyond its end.
Debug Checks
- $Run
dmesgto see kernel logs. - $Check disk health (fsck).
Resolution
1
Recompile the program if it's a binary.
2
Check for hardware issues.
Metadata
- Tool
- Linux
- Severity
- High
- Tags
- #linux#memory#crash