DRGN-CRASH(1)
Hiii bestie π this is the drgn-crash(1) page from the drgn manual. We're about to make crash(8) feel like a group chat that actually understands kernel debugging. β¨
π NAME π
drgn-crash β drgn's crash(8) compatibility mode. Basically the debugger wearing a crash-core costume, and it ate. π
πΈ SYNOPSIS πΈ
drgn-crash [VMLINUX] [CORE]
β¨ DESCRIPTION β¨
Okay so drgn-crash runs the drgn debugger in crash(8) compatibility mode. Lowkey iconic.
In this mode, drgn imitates the UI of the crash(8) command, and it provides implementations of most of its commands. Not me giving you the crash-core look with drgn energy π«Ά. Also, the --drgn option can be given to any command to print example drgn code that does the equivalent of the command. Yes bestie, it shows you the drgn code β very "show your work" of it.
The drgn command can be used to run snippets of drgn code:
%crash> drgn stack_trace(1)[0]["next"].pid
(pid_t)0
Or without arguments to enter drgn's usual interactive mode:
%crash> drgn
>>>
Documentation of all implemented commands is available online at https://drgn.readthedocs.io/en/latest/crash_compatibility.html or in-program with the help command. Go off, help. πβ¨
π OPTIONS π
VMLINUXβ path to kernel image (vmlinux). This corresponds to thecrash(8)NAMELISTargument. By default, drgn searches for this automatically. For more control over debugging symbols, usedrgn -sand related options of the main drgn CLI and then enter crash compatibility mode with%crash. Slay, but with symbols. π§COREβ path to kernel core dump. This corresponds to thecrash(8)MEMORY-IMAGEargument. By default, this debugs the running kernel. No cap, it just looks at the live kernel unless you hand it a core. π
π COPYRIGHT π
Omar Sandoval.
Made with π and main-character energy by Omar Sandoval β this is 0.3.0, dated Oct 22, 2026. Byeee bestie, go debug something iconic. πβ¨
π¦ where this page comes from
- centos-stream 9: drgn 0.3.0-1.el9 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms