CRASHINFO(8)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’… CRASHINFO(8) β€” the system manager's manual, but make it cute

okay so bestie, you found yourself a crashinfo page from the System Manager's Manual section 8, and honestly? it's giving "your kernel fell over and we're gonna do forensics about it." let's get into it 🫢


✨ NAME ✨

crashinfo β€” analyze a core dump of the operating system πŸ’€

like, the OS crashed, it left a little diary entry, and this is the tool that reads it.


πŸŽ€ SYNOPSIS πŸŽ€

crashinfo [-d crashdir] [-n dumpnr] [-k kernel] [core]

that's it. that's the whole vibe check. four little things you can pass it and one optional positional. slay. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so the crashinfo utility analyzes a core dump saved by savecore(8). it generates a text file containing the analysis, and it drops that text file in the same directory as the core dump. for a given core dump file named vmcore.XX, the generated text file will be named core.txt.XX. iconic naming convention, no notes. πŸ’…

by default, crashinfo analyzes the most recent core dump in the core dump directory. but if you want a specific one, you can point at it with either the core or dumpnr arguments β€” your choice, main character energy either way. 🌟

once crashinfo has located a core dump, it analyzes the core dump to determine the exact version of the kernel that generated the core. then it looks for a matching kernel file under each of the subdirectories in /boot. you can also just hand it the kernel yourself, explicitly, via the kernel argument. convenient!! 🎁

once crashinfo has located a core dump and kernel, it uses several utilities to analyze the core, including:

a whole ensemble cast, honestly. an avengers situation. πŸ¦Έβ€β™€οΈ

⚠️ note that kgdb must be installed from the devel/gdb port or the gdb package. like, it's not optional, bestie. if it's not there, that part of the analysis is not happening. πŸ’€

the options are as follows:

🌸 OPTIONS 🌸

  • -b β€” run in batch mode. write most messages to the core.txt.XX file instead of the terminal. this flag is used when crashinfo is run during boot. iykyk, boot-time doesn't have a human watching the screen. πŸ€–
  • -d crashdir β€” specify an alternate core dump directory. the default crash dump directory is /var/crash. ✨
  • -n dumpnr β€” use the core dump saved in vmcore.dumpnr instead of the latest core in the core dump directory. so like, if you know exactly which dump you want, this is your girl. 🎯
  • -k kernel β€” specify an explicit kernel file. 🧚

πŸ‘€ SEE ALSO πŸ‘€

go read those too, bestie, they're part of the lore. πŸ“š


πŸ•°οΈ HISTORY πŸ•°οΈ

the crashinfo utility appeared in FreeBSD 6.4. vintage. retro. a classic. πŸŽ€


okay that's the whole page!! and for the cute sign-off: this one's tagged as Debian, dated December 2, 2020 β€” so yeah, that's the source and the date, mwah πŸ’‹ go analyze some cores, you got this πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from