Quick answer: A tombstone is the text file Android writes when native code crashes: signal, registers, a backtrace for every thread and the memory map. Pull it from an unrooted device with adb bugreport (it is under FS/data/tombstones in the zip) or take the short copy from adb logcat -b crash. Frames are offsets into your stripped libraries, so run ndk-stack -sym <dir> -dump tombstone.txt against unstripped libraries whose BuildId matches the one printed in each frame.
When a game dies in native code on Android, the system writes down everything it knew about the process at that instant and files it as a tombstone. It is the closest thing to a desktop crash dump you will get from a phone, and it is plain text. The catch is that a release build’s frames are bare hex offsets, and turning them into function names only works with the symbol files from that exact build. This guide covers where tombstones live and how to get one, what each section says, where each engine keeps its symbols, and the commands that produce a readable stack.
- What a tombstone is and where it lives
- Get a tombstone without root
- An annotated example
- Why your frames are only offsets
- Where each engine puts the symbols
- Symbolicate the whole tombstone with ndk-stack
- Resolve one frame with llvm-addr2line
- Read an IL2CPP name back to C#
- Common mistakes
- Keeping the result with the bug
- Related guides
- Frequently asked questions
What a tombstone is and where it lives
When a native crash signal arrives (SIGSEGV, SIGABRT, SIGBUS, SIGILL, SIGFPE, SIGTRAP), Android starts a small crash dumper that inspects the dying process and writes two things: a short summary to logcat under the tag DEBUG, and a full report to /data/tombstones/tombstone_NN. The device keeps a limited number and overwrites the oldest. Android 12 and later also keep a protobuf version of each one.
The logcat copy has the header, the registers and the crashing thread’s backtrace. The file adds every other thread’s stack, memory around each register, the full memory map, open file descriptors and the tail of the log. For a null pointer the logcat copy is enough. For a use after free, a deadlock that ended in a kill, or anything involving another thread, you want the file.
Get a tombstone without root
/data/tombstones is not readable by adb shell on a production device. These routes work anyway:
- The crash log buffer. Fastest, and available immediately after the crash:
adb logcat -b crash -d > crash.txt - A bug report. The zip contains copies of files the shell cannot read directly, tombstones included:
A player or tester can produce the same zip from the bug report entry in Developer options and send you the file. It holds system-wide logs, so ask for it privately.adb bugreport bugreport.zip unzip bugreport.zip "FS/data/tombstones/*" -d bugreport - From inside your game, on the next launch.
ApplicationExitInfoexists from API level 30, and from API level 31 (Android 12) itsgetTraceInputStream()returns the tombstone for exits withREASON_CRASH_NATIVE, as a protobuf:
The stream can be null: the system stores these traces in a shared ring buffer that other apps’ crashes overwrite. The schema isval am = getSystemService(ActivityManager::class.java) for (info in am.getHistoricalProcessExitReasons(null, 0, 5)) { if (info.reason == ApplicationExitInfo.REASON_CRASH_NATIVE) { info.traceInputStream?.use { input -> File(filesDir, "tombstone-${info.timestamp}.pb").outputStream().use { input.copyTo(it) } } } }tombstone.protoin the Android source tree. - Play Console. Android vitals > Crashes and ANRs shows the crashing thread’s stack for each cluster. It is not the whole tombstone, but it covers players you cannot reach.
- An emulator or rooted test device.
adb rootthenadb pull /data/tombstonesworks on emulator images that are not Google Play images.
For walking a non-technical player through this, see getting crash logs from a player’s phone. If adb will not see the device, fix the unauthorized or offline state first.
An annotated example
This is an example with invented values and a made-up package name, shortened to the parts you read first. The field names and their order are what a current arm64 device prints:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/panther/panther:14/AP2A.240805.005/12025142:user/release-keys'
Revision: 'MP1.0'
ABI: 'arm64'
Timestamp: 2026-11-20 21:14:03.412345678+0100
Process uptime: 187s
Cmdline: com.studio.mygame
pid: 12300, tid: 12345, name: UnityMain >>> com.studio.mygame <<<
uid: 10234
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000018
Cause: null pointer dereference
x0 0000000000000000 x1 0000007b2c4d1e80 x2 0000000000000010 x3 0000000000000000
x28 0000007a9c3ff000 x29 0000007a9c3fe8b0
lr 0000007b1e2a4b20 sp 0000007a9c3fe890 pc 0000007b1e2a4b3c pst 0000000060001000
14 total frames
backtrace:
#00 pc 00000000012a4b3c /data/app/~~Qf3xT1==/com.studio.mygame-9aBc==/lib/arm64/libil2cpp.so (BuildId: 6f1e2d3c4b5a69788796a5b4c3d2e1f001234567)
#01 pc 00000000012a3f10 /data/app/~~Qf3xT1==/com.studio.mygame-9aBc==/lib/arm64/libil2cpp.so (BuildId: 6f1e2d3c4b5a69788796a5b4c3d2e1f001234567)
#02 pc 0000000000a81c44 /data/app/~~Qf3xT1==/com.studio.mygame-9aBc==/lib/arm64/libunity.so (BuildId: 0a1b2c3d4e5f60718293a4b5c6d7e8f901234567)
#03 pc 00000000000b6a34 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 9c1f0a3e5b7d2c4e6f8091a2b3c4d5e6)
memory map (1432 entries): (fault address prefixed with --->)
- The line of asterisks marks the start of a crash dump. Tools look for it, so keep it when you copy a crash out of a log.
- Build fingerprint is brand, product, device, Android version and build ID. This is how you know which phone and OS build crashed. ABI says which architecture the process ran as, and therefore which symbol folder you need:
arm64maps toarm64-v8a,armtoarmeabi-v7a. - Timestamp and Process uptime separate a crash at launch from one an hour into a session.
- pid, tid, name: the process, the thread that crashed and that thread’s name, then the process name between the arrows.
UnityMainis Unity’s script and player-loop thread. Unreal names its game, render and RHI threads. - signal: which signal, the reason code and the address involved. Cause is the system’s own guess, present for the patterns it recognises. An Abort message line appears here when the process aborted on purpose. The SIGSEGV guide and the SIGABRT guide decode these lines in detail.
- Registers:
pcis the instruction that faulted,lrthe return address,spthe stack pointer. A register holding the fault address (herex0is zero and the fault is at offset0x18from it) tells you which pointer was bad. - backtrace: one line per frame, innermost first. Each has the frame number,
pcas an offset into the library file, the library’s path on the device, a function name plus offset when the library exports one, and the library’sBuildId. - memory map: every mapped region with its permissions and backing file, with an arrow on the region containing the fault address. For a wild address, this shows whether it landed in another library, in a thread stack or in nothing.
On installs where libraries are loaded straight from the APK, the path reads like base.apk!libil2cpp.so (offset 0x1a2b000). The pc value is still relative to the library.
Why your frames are only offsets
Frame #03 has a name because libc.so exports its functions. Your game’s libraries are stripped for release and export almost nothing, so the dumper can only print where in the file the instruction was. The names live in the unstripped copy of the same library, which the build produced and you were supposed to keep. Symbolication is looking the offset up in that copy.
The lookup is only valid if both files came from the same link. That is what BuildId is for: a hash the linker embeds in the library, identical in the stripped and unstripped versions. Print it from a symbol file with either of these and compare it with the tombstone:
llvm-readelf -n libil2cpp.so | grep "Build ID"
file libil2cpp.so
Where each engine puts the symbols
| Engine | How to produce them | What you get |
|---|---|---|
| Unity 2022 LTS | File > Build Settings, Android, Create symbols.zip: Public or Debugging | A zip next to the build named like MyGame-1.4.2-v87-IL2CPP.symbols.zip, with one folder per ABI holding symbol files for libmain, libunity and libil2cpp |
| Unity 6 | File > Build Profiles, Android, Debug Symbols: Public or Debugging, with Symbols output options set to .zip | The same zip and contents |
| Unreal Engine 5 | Packaging for Android | An unstripped libUnreal.so in a folder such as Binaries/Android/MyGame_Symbols_v1/MyGame-arm64/ (the number is the store version) |
| Godot 4 | Download Godot_native_debug_symbols.<version>.stable.template_release.android.zip from the Godot release page | Symbols for the official export templates of that exact version, one folder per ABI |
| Custom C++ with Gradle | A normal release build | Unstripped libraries in app/build/intermediates/cxx/<build-type>/<hash>/obj/<abi> |
Unity’s Public option is a symbol table: function names, no line numbers. Debugging adds full debug information for libil2cpp, so your own code resolves to file and line. libmain and libunity only ever get public symbols. If the files in the zip carry an extra extension such as .sym.so or .so.dbg, copy them to a folder under their plain library names before using them.
If you built Godot export templates yourself, the official symbols do not match. Add debug_symbols=yes separate_debug_symbols=yes to your SCons command and keep the android-template-release-native-symbols.zip it produces. In UE4 the library is libUE4.so and the unstripped copy sat under the project’s Intermediate/Android folder; check your own packaging output, since the layout has changed between versions.
Whatever the engine, archive the symbols for every build you ship, keyed by version code. A rebuild of the same commit produces a different BuildId and is useless for a crash from the shipped binary. Uploading the same files to Play Console as native debug symbols makes Android vitals show names too.
Symbolicate the whole tombstone with ndk-stack
ndk-stack ships in the Android NDK (<sdk>/ndk/<version>/ndk-stack, ndk-stack.cmd on Windows; Unity installs an NDK with its Android module). Point it at the folder of unstripped libraries for the ABI that crashed:
ndk-stack -sym symbols/arm64-v8a -dump tombstone.txt
# or live, straight from the device
adb logcat | ndk-stack -sym symbols/arm64-v8a
The input must include the line of asterisks. For each frame it finds a library for, it prints the function and, when debug information is present, the source file and line. It compares BuildIds when both the frame and the file have one, so a mismatched library is skipped instead of producing confident nonsense. System libraries such as libc.so and GPU drivers stay unsymbolicated unless you have that device’s files, which is normal.
Unity users can do the same inside the editor: the Android Logcat package (Window > Analysis > Android Logcat) has a Stacktrace Utility where you configure the symbol paths, paste the crash and resolve it. Be careful with it: if the symbol path points at the wrong build it still prints function names, and they are wrong.
Resolve one frame with llvm-addr2line
When you only have a stack from a store dashboard or a screenshot, resolve addresses one at a time. Use the pc value from the frame as is, with the library named in that frame:
llvm-addr2line -C -f -i -e symbols/arm64-v8a/libil2cpp.so 0x12a4b3c 0x12a3f10
-e names the unstripped library, -f prints function names, -C demangles C++ names and -i also prints functions that were inlined at that address. The tool is in the NDK under toolchains/llvm/prebuilt/<host>/bin. Output is a function name followed by a file and line, repeated for inlined callers:
PlayerController_Update_m3A1F0C2B9D4E5F60A7B8C9D0E1F2A3B4C5D6E7F8
/build/MyGame/il2cppOutput/cpp/Assembly-CSharp.cpp:20431
A result of ?? and ??:0 means the address is not in that file: wrong library, wrong ABI, or an absolute address where an offset was expected.
Read an IL2CPP name back to C#
IL2CPP turns each C# method into a C++ function named from the type, the method and a hash: PlayerController_Update_m3A1F... is PlayerController.Update(). Namespaces and nested types are joined with underscores, generic methods carry type names and may end in _gshared when the code is shared between instantiations, and the file is named after the assembly (Assembly-CSharp.cpp, split into numbered files for large projects). With debugging symbols the line number refers to that generated C++ file, not your .cs file. Open the generated source at that line and the surrounding calls make it obvious which C# statement it was. A frame in libunity.so directly above your method is the engine API your script called.
Unreal frames demangle to ordinary C++ names such as AMyCharacter::Tick(float). In Godot, GDScript never appears as a native frame: you see the interpreter’s functions, and the script error itself is in the Godot log. If the native stack ends in the scripting runtime with nothing useful, this guide on native crashes without a managed trace has more approaches.
Common mistakes
- Symbols for the wrong ABI. An
armtombstone needs thearmeabi-v7afolder even if most of your players are 64-bit. - Symbols from a rebuild. Same commit, different BuildId. Compare the IDs before trusting any output.
- Absolute addresses. The
pcin the register block is a runtime address. Thepcin a backtrace frame is already an offset into the library, and that is the one the tools want. - Stopping at the top frame. A crash in
memcpyor in a driver is caused by the first frame of yours beneath it. - Ignoring inlined frames. In optimised builds the function you are looking for may only appear in the
-ioutput, folded into its caller. - Losing the first line. Without the asterisks
ndk-stackprints nothing. - Reading only the crashing thread. For heap corruption and races the cause is frequently on another thread, and the full tombstone lists them all.
Keeping the result with the bug
Bugnet does not collect tombstones, does not capture native crashes as stack traces and does not symbolicate. Everything above is work you do with the Android tools. Where it helps is the step before and the step after. Before: a player’s in-game report or an automatically filed engine error arrives with OS version, CPU, GPU, RAM and game version, which tells you which build’s symbols to fetch and which GPU and OS version to reproduce on. After: save the ndk-stack output as a text file and attach it to that report (text attachments up to 10 MB are accepted, binary dumps are not), so the symbolicated stack, the device details and the player’s description sit in one place. The bug reports docs cover attachments, and integrations can forward the report to Jira or Linear.
Related guides
- How to Fix “Fatal signal 11 (SIGSEGV)” Crashes in an Android Game
- How to Fix “Fatal signal 6 (SIGABRT)” Crashes in an Android Game
- How to Symbolicate Native Crashes in a Game
- How to Read Unity Android Crash Logs with Logcat
- How to Get Crash Logs From a Player’s iPhone or Android Phone
Frequently asked questions
Where are Android tombstones stored?
In /data/tombstones on the device, as files named tombstone_00, tombstone_01 and so on. That folder is not readable from adb shell on a production device, but adb bugreport copies its contents into the bug report zip under FS/data/tombstones.
How do I get a tombstone without root?
Run adb bugreport and unzip the result, or dump the short version with adb logcat -b crash right after the crash. On Android 12 and later an app can also read its own native crash tombstone on the next launch through ApplicationExitInfo.getTraceInputStream.
Why does my tombstone show only addresses and no function names?
Release libraries are stripped of symbols, so the system can only print the offset of each frame inside the library file. Function names come from the unstripped copy of the same library, looked up with ndk-stack or llvm-addr2line.
What is the BuildId in a tombstone frame?
A hash the linker embeds in each native library. The stripped library on the device and the unstripped copy from the same build share it. Compare it with the output of llvm-readelf -n on your symbol file to confirm you have the right symbols.
Which address do I pass to addr2line?
The pc value printed in the backtrace frame, which is already an offset relative to the library. Do not use the pc from the register block, which is an absolute runtime address, and use the library named in that same frame.
A tombstone is only as readable as the symbols you archived. Save the unstripped libraries for every build you ship, and check the BuildId before you believe a symbolicated frame.