[Crash-utility] How to work with crash utility.

Ratnam Tatavarty rtatavarty at gmail.com
Fri Feb 4 22:09:25 UTC 2011


Hi Nishant,
Welcome to the group! Your usecase for using Crash is very apt and you can
look for the following steps to start with:

- Did you configure Kdump utility?
  In case you did not: Kdump utility lets you take a core-dump of the whole
kernel once it hits a panic/oops situation, and save the same in a specified
location. It is available as part of kexec-tools package.
- You may want to try a dry run by inducing a panic with echo 'c' >
 /proc/sysrq-trigger and checking if kdump captured a dump file in the
directory specified in the /etc/kdump.conf or not.
- Once the above two basic steps are done, you are now set to analyze your
problem with the captured context in the coredump file using Crash.
- Install the kernel-debuginfo packages for the exact version of *kernel you
are trying to debug.* You can find the debuginfo packages in a yum/fedora
public repos.
- Now start Crash with the two important parameters: coredump file (called
as namelist file) location and place where you kernel-debuginfo file (vmlinu
*x*). You can find the
later /usr/lib/debug/lib/modules/2.6.29.4-167.fc11.x86_64/vmlinux (note that
the exact kernel version might be different)

Now the command to use is: crash <path to the vmlinux file> <path to your
coredump file>

Hope this helps in getting you started.

Regards,
Ratnam

On Fri, Feb 4, 2011 at 1:08 PM, nishant mungse <nishantmungse at gmail.com>wrote:

> Hello all,
> I am new to this crash utility and have installed crash-5.1.1 on fedora11.
> Actually i searched a lot on net but i am unable to understand that. I tried
> many thing but it failed.
> I have written a module and it is giving oops after mke2fs and wann to use
> crash utility to solve this problem.  Will anyone guide from basic steps how
> to use crash. Please help me out.
>
>
> Regards,
> Nishant.
>
> --
> Crash-utility mailing list
> Crash-utility at redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20110204/5a313c9c/attachment.htm>


More information about the Crash-utility mailing list