9

We're trying to debug a kernel panic/oops on Ubuntu 10.04. The stacktrace isn't quite enough for us. How can we configure the system to spit out a core dump and where can we find it after the crash?

There is a lot of information on how to get a user-mode core dump, but very little (or old) information on getting a kernel core dump.

LKCD exists, but looks as though it hasn't been updated since 2002.

1 Answer 1

15

Installing the linux-crashdump package will install the kexec tools and set up grub to pass the needed kernel options to have the crashdump kernel available.

This should automatically catch kernel crashes. For non-crash kernel problems such as an oops you should be able to use the magic sysrq key's c command to kexec the crashdump kernel and get a dump.

You may also want to enable apport to have the dump nicely processed into a crash report for submission to Launchpad or for local retracing. To do that you need to edit /etc/default/apport.

1
  • how to run linux-crashdump and get the last crash report of ubuntu 11.10?
    – sam
    Oct 25, 2011 at 9:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .