What the Message Means
Every process has a map of the memory it may use. When it reads or writes an address outside that map, or writes to a page that is read-only, the kernel sends it signal 11, SIGSEGV. Unless the program handles that signal, it ends at once. The shell then prints the message, and the exit status is 139, which is 128 plus 11:
$ ./report-tool
Segmentation fault (core dumped)
$ echo $?
139"(core dumped)" means the system saved a snapshot of the process memory, a core dump. Where it went depends on the settings below.
First Look: the Kernel Log
The kernel writes one line for each segmentation fault. Search for it:
sudo dmesg -T | grep -i segfault
sudo journalctl -k --since "1 hour ago" | grep -i segfaultThe line names the process and its PID, the address it touched, and, near the end, the file in which the crash happened, for example in libexample.so.1. If that file is a shared library, start with the package that owns it; if it is the program's own binary, the bug is most likely in the program. For a service, systemctl status shows that it ended with SIGSEGV. See the dmesg command and journalctl guides.
Common Causes
- A bug in the program: a null pointer, a buffer overrun, or very deep recursion. The same input usually crashes it in the same place.
- Libraries out of step: a partial upgrade left a program and its library at different versions, or a library copied by hand into
/usr/local/libis loaded instead of the packaged one.ldd /usr/bin/programshows which files are loaded. - A damaged binary or library: after a disk error or an interrupted installation.
- A third-party module: an extension or plugin built for another version of the main program.
- Faulty memory: unrelated programs crash at random places.
Bring the Packages Back in Step
On Ubuntu and Debian, finish any partial upgrade, then compare installed files with their package checksums:
sudo apt update
sudo apt full-upgrade
sudo apt install debsums
sudo debsums -sWith -s, debsums reports only problems, such as changed files; configuration files are left out unless you add -a. Find the package that owns a file with dpkg -S /path/to/file and reinstall it with sudo apt install --reinstall package.
On AlmaLinux and Rocky Linux:
sudo dnf upgrade
rpm -qf /usr/lib64/libexample.so.1
rpm -V package
sudo dnf reinstall packageChanged configuration files are normal here; look at binaries and libraries.
Collect a Core Dump
A core dump lets a developer see the exact line that crashed. Check where the system sends cores:
cat /proc/sys/kernel/core_patternIf the value pipes to systemd-coredump, cores are collected for you. On Debian and Ubuntu that tool comes in the systemd-coredump package; Ubuntu may send cores to its own crash reporter instead. For a program started from the shell, also run ulimit -c unlimited in that session. Then:
coredumpctl list
coredumpctl info 4821
coredumpctl gdb 4821info shows the signal, the executable, and a stack trace when symbols are available; inside gdb, bt prints the backtrace. A core dump holds whatever was in memory, including passwords and customer data: keep it private and delete it when you are done.
Exit Codes from Signals
| Exit code | Signal |
|---|---|
134 | SIGABRT: the program aborted itself |
135 | SIGBUS: a bad memory access of another kind |
137 | SIGKILL: killed from outside |
139 | SIGSEGV: segmentation fault |
Code 137 has its own guide: exit code 137.
When Memory Is the Suspect
If several unrelated programs crash at random addresses, suspect the RAM. On a dedicated server, look for memory errors in the kernel log with journalctl -k | grep -i -E "mce|edac" and run a memory test from boot in a maintenance window. Servers with ECC RAM correct and log single-bit errors. On a VPS the memory belongs to the host: note the times of the crashes and pass them to your provider.
What to Put in a Bug Report
- Versions: the program version and its package version (
dpkg -lorrpm -q), and the distribution release. - The kernel log line and the backtrace from coredumpctl.
- How to reproduce it: the command, the input, or the request that triggers it.
- What you ruled out: a package reinstall, third-party modules.
Updated:
Linux VPS with Full Root Access
MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.
More Guides
No Limits on Service or Support
You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

- 100% customer satisfaction goal
- Our own hardware
- 24/7 ticket and email support
- 4 countries with locations