Quick answer: the kernel killed the game with signal 11 (SIGSEGV) because it read, wrote or executed memory it has no right to, and “(core dumped)” means a snapshot of the process was handed to the system’s core dump handler. Find that snapshot with coredumpctl list on distributions that use systemd-coredump, or under /var/lib/apport/coredump/ on Ubuntu, and open it with gdb next to an unstripped copy of the same build. The backtrace names the function that faulted. The message alone does not identify a cause, so do not guess from it.
“Segmentation fault (core dumped)” is two short facts printed by the shell. The first says how the process died. The second says that evidence exists. Most reports stop there, because the player does not know where the core dump went and the developer does not ask for the right thing. This guide covers what the message does and does not tell you, where each distribution puts the dump, how to read the one-line kernel record of the fault, how to get a backtrace with function names out of a release build, and the causes that show up most in Linux game builds: null pointers after a failed load, bundled runtime libraries, the Steam overlay, Wayland sessions and graphics drivers.
- The exact error
- What “(core dumped)” promises, and where the dump went
- Read the kernel’s one-line record
- Get a backtrace from the core
- What usually causes it in a game build
- Fix the common cases
- Engine notes
- What to ask a player for
- How to confirm the fix
- What Bugnet adds, and what it does not
- Related guides
- Frequently asked questions
The exact error
Started from a terminal, the game exits and the shell prints:
$ ./MyGame.x86_64
Segmentation fault (core dumped)
$ echo $?
139
When a launcher script starts the binary, bash adds the script name, line number and process id:
./MyGame.sh: line 5: 38735 Segmentation fault (core dumped) "$DIR/MyGame.x86_64" "$@"
The exit status 139 is 128 plus the signal number, 11. A close relative is Aborted (core dumped) with status 134, which is signal 6 (SIGABRT): the process ended itself by calling abort(), usually from a failed assertion or from a crash handler that had already caught the original fault.
The shell writes this text, the game does not. A game started from Steam or a desktop icon has no shell watching it, so the player sees a window close and nothing else. That is why the first request to a player is always to start the game from a terminal.
What “(core dumped)” promises, and where the dump went
A core dump is a copy of the process’s memory and registers at the moment it died. The suffix means the kernel produced one and passed it on. It does not mean a file named core is sitting in the game folder. The destination is set by one kernel setting:
cat /proc/sys/kernel/core_pattern
ulimit -c
core_pattern starts with | Found on | Where the dump is |
|---|---|---|
|/usr/lib/systemd/systemd-coredump | Distributions that use systemd-coredump, such as Fedora and Arch Linux | Compressed in /var/lib/systemd/coredump/, indexed in the journal. Use coredumpctl. |
|/usr/share/apport/apport | Ubuntu | /var/lib/apport/coredump/, but only when the core size limit of the process was not zero |
core or another plain file pattern | Systems with no handler installed | A file in the working directory of the process, only when ulimit -c is not 0 |
systemd-coredump
coredumpctl list MyGame.x86_64
coredumpctl info MyGame.x86_64
coredumpctl debug MyGame.x86_64
coredumpctl -o MyGame.core dump MyGame.x86_64
list shows one row per crash with the signal, the executable and a COREFILE column. present means the dump is stored. missing means it existed and has been cleaned up; stored dumps are deleted after a few days by default. truncated means the dump was larger than the configured limit. info prints the details of the matching crashes (add -1 for only the newest), debug opens the newest one in gdb, and dump writes it to a file. Older guides call the third command coredumpctl gdb, which still works as another name for debug.
Ubuntu and apport
Apport exists to report crashes in Ubuntu’s own packages. For a game binary that belongs to no package it writes executable does not belong to a package, ignoring to /var/log/apport.log and creates no crash report. It keeps the raw core only if the process was allowed to dump one. With the usual default limit of zero, the shell still prints “(core dumped)”, because the kernel did pipe the dump to apport, and no file is kept. Raise the limit in the same shell and reproduce the crash:
ulimit -c unlimited
./MyGame.x86_64
ls -lh /var/lib/apport/coredump/
A plain file
Here the limit decides everything. With ulimit -c at 0 the kernel skips the dump and the shell prints only Segmentation fault. Run ulimit -c unlimited, start the game from that shell, and look for core or core.<pid> in the directory the game ran in.
Read the kernel’s one-line record
Before opening a debugger, check the kernel log with sudo dmesg | grep segfault or journalctl -k | grep segfault:
MyGame.x86_64[38735]: segfault at 8 ip 00007f3a5c1b2f40 sp 00007ffd4a3c8e10 error 4 in libgamecore.so[132f40,7f3a5c0a1000+2e5000] likely on CPU 3 (core 3, socket 0)
- The name before the bracket is the name of the crashing thread, cut to 15 characters, followed by its id. A thread you named
AudioMixerappears as that, not as the game. at 8is the address the code tried to use. A value this small is a null pointer plus the offset of a member.ipis the instruction pointer andspthe stack pointer.in libgamecore.so[...]is the file the faulting instruction was mapped from. Current kernels print the offset inside that file, then the start address and size of the mapping. Older kernels print only the start address and size.
error is a hexadecimal bit field from the CPU’s page fault. On x86 the values you meet are:
error | Meaning | Usual story |
|---|---|---|
4 | Read from an address that is not mapped | Null or dangling pointer read |
6 | Write to an address that is not mapped | Null pointer write. If the address is just below sp, a stack overflow from deep recursion. |
5 | Read from a mapped page the process may not read | Access to a guard page or a protected region |
7 | Write to a mapped page that is read-only | Writing to a string literal or constant data |
14 | Instruction fetch from an address that is not mapped | Call through a null or stale function pointer. at and ip are equal. |
15 | Instruction fetch from a page that is not executable | Jump into data, often after stack corruption |
One limit matters for games. The kernel prints this line only when the process has no handler installed for SIGSEGV. Unity, Godot and Unreal Engine all install their own crash handlers, so a game built with them usually leaves no segfault line here and writes to its own log (see the engine notes below). Expect the kernel line from custom engines and from frameworks such as SDL, which leave the signal alone.
Get a backtrace from the core
The dump is useful with two more things: the exact binary that crashed and its debug symbols.
gdb ./MyGame.x86_64 MyGame.core
(gdb) bt
(gdb) thread apply all bt
(gdb) info sharedlibrary
#0 0x00007f3a5c1b2f40 in AudioBank::Load (this=0x0, path=...) at src/audio/bank.cpp:112
#1 0x000055d0c0a4be21 in Game::LoadLevel (this=0x55d0c2b1a2c0, name=...) at src/game.cpp:310
#2 0x000055d0c0a47d02 in main (argc=1, argv=0x7ffd4a3c9048) at src/main.cpp:41
Frame 0 is where the fault happened, and this=0x0 is the null pointer. info sharedlibrary lists every library the process had loaded with its path, which is how you spot a bundled library where you expected the system one, or an injected one.
A stripped release binary gives #0 0x00007f3a5c1b2f40 in ?? () from ./libgamecore.so and no names. Keep the symbols of every build you ship, in a separate file:
objcopy --only-keep-debug MyGame.x86_64 MyGame.x86_64.debug
strip --strip-debug MyGame.x86_64
objcopy --add-gnu-debuglink=MyGame.x86_64.debug MyGame.x86_64
Ship the stripped binary and archive the .debug file with the build number. Put it next to the binary when you open a core and gdb picks it up through the debug link. The file has to come from the same build; symbols from a rebuild of the same commit do not reliably match. How to strip debug symbols from release builds covers the build-system side.
For a backtrace without an interactive session, which is also the command to give a technical player:
gdb -batch -ex "thread apply all bt" ./MyGame.x86_64 MyGame.core > backtrace.txt 2>&1
What usually causes it in a game build
| Cause | Signs |
|---|---|
| A pointer used after a load or create call failed | Fault address is zero or small. Top frame is in your code. Happens on some machines or some installs only. |
A bundled libstdc++.so.6 or libgcc_s.so.1 older than the system’s | The graphics driver fails to load, then the game crashes during window or context setup |
| The Steam overlay library | Crashes only when started through Steam. gameoverlayrenderer.so appears in the backtrace. |
| Wayland against X11 | Crashes only on one session type, in windowing or input code |
| A missing or broken Vulkan or OpenGL driver | Crashes at startup on a few hardware and driver combinations |
| Memory corruption: use after free, buffer overrun | The crashing function changes from run to run, and the top frame is often in malloc or free |
In an engine with a managed or scripted layer, a null reference in C# or GDScript is an exception or a script error. It does not produce a segmentation fault. A real SIGSEGV in a Unity or Godot game points at native code: a native plug-in or GDExtension, the graphics driver, or the engine itself.
Fix the common cases
Check what load and create calls return
Linux file systems are case-sensitive, so a path that worked on Windows can return nothing. This SDL2 code crashes with segfault at 8, because icon is null and format is the member at offset 8 of SDL_Surface in a 64-bit build:
// Broken: the file on disk is assets/icon.bmp
SDL_Surface *icon = SDL_LoadBMP("Assets/Icon.bmp");
SDL_SetColorKey(icon, SDL_TRUE, SDL_MapRGB(icon->format, 255, 0, 255));
SDL_SetWindowIcon(window, icon);
// Fixed: correct case, and a failed load is logged, not dereferenced
SDL_Surface *icon = SDL_LoadBMP("assets/icon.bmp");
if (icon == NULL) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "icon not loaded: %s", SDL_GetError());
} else {
SDL_SetColorKey(icon, SDL_TRUE, SDL_MapRGB(icon->format, 255, 0, 255));
SDL_SetWindowIcon(window, icon);
SDL_FreeSurface(icon);
}
Apply the same rule to window, context and device creation. On a player’s machine those calls fail for reasons you never see in development, and an unchecked null from SDL_CreateWindow or a failed Vulkan call turns a clear error message into this crash.
Stop shipping your own C++ runtime
The system’s graphics driver is loaded into your process and needs the system’s C++ runtime. If the game folder holds an older libstdc++.so.6 and the launcher puts that folder first on the library path, the driver can fail to load. Check which copy is in use:
LD_DEBUG=libs ./MyGame.x86_64 2>&1 | grep -E "libstdc\+\+|libgcc_s"
Remove the bundled copies and link the runtime into your binary with -static-libstdc++ -static-libgcc. The shared library guide in the list below explains which libraries to bundle and which to leave to the system.
Rule the Steam overlay in or out
Steam starts games with its overlay library, gameoverlayrenderer.so, in LD_PRELOAD. To test without it, turn off Enable the Steam Overlay while in-game in the game’s Properties > General, or set the launch option:
LD_PRELOAD="" %command%
If the crash stops, capture a backtrace with the overlay on. The frames show whether the fault is inside the overlay or in your rendering code reacting to it. The wrong ELF class: ELFCLASS32 lines that ld.so prints about this library in a terminal are harmless: Steam lists a 32-bit and a 64-bit copy and the loader skips the one that does not fit.
Test both session types
echo $XDG_SESSION_TYPE prints wayland or x11. Code that assumes an X11 window handle, or a library built without Wayland support, crashes on one and runs on the other. Force a backend to compare: SDL_VIDEODRIVER=x11 for SDL2 (SDL3 reads SDL_VIDEO_DRIVER), and --display-driver x11 for a Godot 4 game.
Check the graphics driver
vulkaninfo --summary lists the Vulkan devices the system offers. No devices, or only a software one, means every Vulkan call your game makes will fail, and the crash is your code ignoring that. Handle the result codes as described in fixing “Failed to create Vulkan instance”; the codes are the same on Linux.
Find memory corruption with AddressSanitizer
When the crash site moves around, the fault is a symptom of earlier damage and a core dump shows only where it surfaced. Build a test binary with -fsanitize=address -fno-omit-frame-pointer -g on both the compile and link lines and play through the same path. AddressSanitizer stops at the first bad access and prints where the memory was allocated and freed.
Engine notes
- Unity. The player catches the signal and writes to
~/.config/unity3d/<Company>/<Product>/Player.log: a line such asCaught fatal signal - signo:11 code:1 errno:0 addr:0x10, thenObtained 12 stack frames.and the frames.code:1is an unmapped address andcode:2a permission fault. The library named in the first frames (a driver, a plug-in,UnityPlayer.so) is the lead. Start the player with-logFile -to get the log in the terminal. - Godot. The crash handler prints
handle_crash: Program crashed with signal 11, the engine version and a numbered backtrace that ends with-- END OF C++ BACKTRACE --in Godot 4.5 and later (-- END OF BACKTRACE --before that). It then callsabort(), so the shell reportsAborted (core dumped)for what began as a segmentation fault. Official export templates ship without debug symbols, so engine frames usually show addresses only. - Unreal Engine. The log shows
Signal 11 caught.and, after the engine’s handler finishes,Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.The shell then prints the usual message. The engine also writes acrashinfo-<Project>-pid-<pid>-<GUID>folder underSaved/CrashescontainingCrashContext.runtime-xmlandDiagnostics.txt.
What to ask a player for
- The terminal output. In Steam, Manage > Browse local files opens the game folder. Start the game from a terminal in that folder and copy everything it prints.
- The engine log, if the game has one, from the paths above.
- The crash summary. On systemd-coredump systems, the output of
coredumpctl infofor the game. It includes the signal, the executable path and, where the system can produce one, a stack trace of the crashing thread. - The system. Distribution and version from
/etc/os-release, the session type, and the GPU and driver. Steam’s Help > System Information has all of it in one copyable page. - Two quick tests. Does it still crash with the Steam overlay off, and after Verify integrity of game files?
Do not ask for the core file itself as a first step. It can be hundreds of megabytes or more, and it is a copy of the game’s memory, which may include account tokens and file paths from the player’s machine. Ask for the backtrace text from the batch gdb command, and only request the dump from a player who understands what it contains.
How to confirm the fix
Reproduce the crash first, on the setup the reports name, and keep the backtrace. After the fix, run the same path and check the exit status and the dump list:
./MyGame.x86_64; echo "exit status: $?"
coredumpctl list --since today
A status of 0 and no new row is the result you want. Then cover the axes that produced the crash in the first place: one Wayland and one X11 session, one Mesa driver and the NVIDIA proprietary driver, a launch through Steam with the overlay on, and an install on a case-sensitive file system from the same depot players receive.
What Bugnet adds, and what it does not
Bugnet’s SDKs run inside the game, so they do not capture a SIGSEGV as a native stack trace, read core dumps or symbolicate anything; the kernel, coredumpctl and gdb do that. Bugnet supplies the context around the crash. Every report, automatic or written by a player, carries the OS version, CPU, GPU, RAM and game version, so “it closes at the title screen” arrives with what you need to see whether the crashes sit on one driver or one distribution. The Unreal SDK binds FCoreDelegates::OnHandleSystemError, so when the engine’s own error handler runs, the report contains the engine’s message and the recent log lines. The Unity SDK files logged errors and managed exceptions with recent log lines, which often shows the last thing the game did before the native fault.
A session that dies to a native crash the SDK never saw is not counted as crashed in the crash-free session rate. To count these, set a “previous run did not exit cleanly” flag at startup, clear it on a normal quit, and log an error at the next launch if it is still set; the SDK files it and stacks the repeats. When a player sends a backtrace, attach it to the report as a text file (text attachments up to 10 MB are accepted, binary dumps are not), as described in the bug reports docs.
Related guides
- How to Fix “error while loading shared libraries: cannot open shared object file” for Your Linux Game
- How to Fix “version GLIBC_2.34 not found” for Your Linux Game
- How to Get Crash Logs From a Player on Steam Deck (Proton Logs and File Paths)
- How to Fix Unity Crashes on Linux
- Where Are Godot Crash Logs? Finding godot.log on Windows, macOS, Linux and Steam Deck
Frequently asked questions
What does Segmentation fault (core dumped) mean?
The kernel ended the process with signal 11, SIGSEGV, because it tried to read, write or execute memory it has no access to. The core dumped part means a snapshot of the process was produced and handed to the system's core dump handler. The shell prints the message, so it only appears when the game is started from a terminal.
Where is the core dump file on Linux?
It depends on the kernel's core_pattern setting. Distributions that use systemd-coredump, such as Fedora and Arch Linux, store it compressed under /var/lib/systemd/coredump and list it with coredumpctl list. Ubuntu pipes it to apport, which keeps a core in /var/lib/apport/coredump only when the core size limit was raised with ulimit -c unlimited.
How do I read the segfault line in dmesg?
The line gives the thread name and id, the address the code tried to use after the word at, the instruction pointer, the stack pointer, an error code and the library the faulting instruction was in. An address of zero or a small number is a null pointer. On x86, error 4 is a read from an unmapped address, 6 is a write to one, and 14 is a jump to one.
Why is there no segfault line in dmesg for my Unity, Godot or Unreal game?
The kernel prints that line only when the process has no handler for SIGSEGV. Unity, Godot and Unreal Engine install their own crash handlers, so the details go to the engine's log instead. In Godot the handler ends by calling abort, which is why the shell shows Aborted (core dumped).
Should I ask players to send me the core dump?
Usually not. A core file can be hundreds of megabytes or more and it contains the game's memory, which may include account tokens and file paths. Ask for the terminal output, the engine log and the backtrace text from gdb or coredumpctl info.
Archive the debug symbols of every build you ship. A core dump from a player is only readable next to the symbols of that exact build.