Hello Dave,<br><br>Thanks for the mail. It helped a lot. <br><br>This is what I did:<br>I installed the latest version of Crash.<br><br>The parameters are as assigned:<br>CONFIG_PHYSICAL_START=0x1000000<br>CONFIG_PHYSICAL_ALIGN=0x400000<br>
<br>So now I ran the command as <br>crash --readnow --reloc=12m /usr/src/linux-2.6.25.14-main/vmlinux /var/crash/2009-08-08-23:32/vmcore<br>

and got the output properly.<br><br>Thanks once again.<br><br>Regards,<br>Mani<br><br><br><div class="gmail_quote">On Tue, Aug 11, 2009 at 5:10 PM, Dave Anderson <span dir="ltr"><<a href="mailto:anderson@redhat.com" target="_blank">anderson@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div></div><div><br>
----- "Mani" <<a href="mailto:mani2885@gmail.com" target="_blank">mani2885@gmail.com</a>> wrote:<br>
<br>
> Hello,<br>
><br>
> I am trying to analyse the dump created by the kdump utility. This is what I did<br>
> I took 2.6.25.14 vanilla version of kernel and made two copies of the<br>
> kernel named vmlinuz-2.6.25.14-main (Production kernel) and<br>
> vmlinuz-2.6.25.14-kdump (Crash kernel) by following the procedure<br>
> mentioned in the following website<br>
> <a href="http://www.dedoimedo.com/computers/kdump.html" target="_blank">http://www.dedoimedo.com/computers/kdump.html</a><br>
><br>
> When I run crash utility using the following command<br>
> crash /usr/src/linux-2.6.25.14-main/vmlinux /var/crash/2009-08-08-23:32/vmcore<br>
><br>
> I get the following error<br>
><br>
> crash /usr/src/linux-2.6.25.14-main/vmlinux /var/crash/2009-08-08-23:32/vmcore<br>
><br>
> crash 4.0-6.0.5<br>
> Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Red Hat, Inc.<br>
> Copyright (C) 2004, 2005, 2006 IBM Corporation<br>
> Copyright (C) 1999-2006 Hewlett-Packard Co<br>
> Copyright (C) 2005, 2006 Fujitsu Limited<br>
> Copyright (C) 2006, 2007 VA Linux Systems Japan K.K.<br>
> Copyright (C) 2005 NEC Corporation<br>
> Copyright (C) 1999, 2002, 2007 Silicon Graphics, Inc.<br>
> Copyright (C) 1999, 2000, 2001, 2002 Mission Critical Linux, Inc.<br>
> This program is free software, covered by the GNU General Public License,<br>
> and you are welcome to change it and/or distribute copies of it under<br>
> certain conditions. Enter "help copying" to see the conditions.<br>
> This program has absolutely no warranty. Enter "help warranty" for<br>
> details.<br>
><br>
> GNU gdb 6.1<br>
> Copyright 2004 Free Software Foundation, Inc.<br>
> GDB is free software, covered by the GNU General Public License, and you are<br>
> welcome to change it and/or distribute copies of it under certain conditions.<br>
> Type "show copying" to see the conditions.<br>
> There is absolutely no warranty for GDB. Type "show warranty" for details.<br>
> This GDB was configured as "i686-pc-linux-gnu"...<br>
><br>
> crash: read error: kernel virtual address: c1399f10 type: "xtime"<br>
><br>
><br>
> I checked for the error and found this link which mentions few<br>
> work-around/fixes for the issue with reading of /dev/mem<br>
> <a href="http://www.mail-archive.com/crash-utility@redhat.com/msg01553.html" target="_blank">http://www.mail-archive.com/crash-utility@redhat.com/msg01553.html</a><br>
<br>
</div></div>Alright -- before even talking about the "xtime" read error above --<br>
you've gone off into the weeds...<br>
<br>
The CONFIG_STRICT_DEVMEM issue only applies to analyzing the *live* system<br>
with the crash utility, so it's completely irrelevant to your attempt<br>
to analyze a kdump vmcore.<br>
<br>
And with respect to CONFIG_STRICT_DEVMEM, you want to *avoid* building<br>
your kernel with it if you want to look at the live system with crash.<br>
If you *add* CONFIG_STRICT_DEVMEM, then you have to work around its<br>
disabling of the usage of /dev/mem.  One of the ways to do that is<br>
to try the kretprobe hack.  Other than that, you'd have to port the<br>
Red Hat "/dev/crash" driver to your kernel for live system analysis.<br>
<br>
So -- don't do this:<br>
<div><br>
> I tried adding CONFIG_STRICT_DEVMEM to the .config file (This<br>
> parameter was not already present in the config file)<br>
> I got the following error while compiling the kernel<br>
><br>
> scripts/kconfig/mconf arch/x86/Kconfig<br>
> .config:3869:warning: trying to assign nonexistent symbol STRICT_DEVMEM<br>
><br>
> I tried to create the kretprobe module, it works fine for do_fork()<br>
> but when I give devmem_is_allowed() as the functioin name I get the<br>
> following error<br>
<br>
</div>and if you don't build your kernel with CONFIG_STRICT_DEVMEM to begin with,<br>
then there's no need to do this:<br>
<div><br>
> [root@buzzsaw kprobes]# insmod kretprobe_devmem.ko<br>
> insmod: error inserting 'kretprobe_devmem.ko': -1 Operation not<br>
> permitted<br>
<br>
</div>In any case, I don't know why the insmod is failing unless you're trying to<br>
do it as a non-root user.<br>
<div><br>
> I am new to the area of kernel debugging. Please let me know how I can<br>
> solve this issue. Thanks<br>
<br>
</div>Getting back to the original "xtime" read error issue, I don't<br>
know what's causing it off-hand.  Here's what I can suggest:<br>
<br>
(1) Update your version of the crash utility.  4.0-8.11 is available<br>
    on the upstream site at <a href="http://people.redhat.com/anderson" target="_blank">http://people.redhat.com/anderson</a>.  The<br>
    easiest way to go is to take the tar.gz file there, un-tar it, go<br>
    into the resultant directory, and type "make".  The crash binary<br>
    will be built into that top-level directory.<br>
(2) Indicate what your kernel's CONFIG_PHYSICAL_START and CONFIG_PHYSICAL_ALIGN<br>
    config options are equal to.  It's possible that you may be running into<br>
    <a href="http://people.redhat.com/anderson/crash.changelog.html#4_0_4_5" target="_blank">http://people.redhat.com/anderson/crash.changelog.html#4_0_4_5</a><br>
(3) If that version does not work, then post the output of<br>
    "crash -d7 your-vmlinux your-vmcore", and we can go from there.<br>
<br>
Thanks,<br>
  Dave<br>
<font color="#888888"><br>
--<br>
Crash-utility mailing list<br>
<a href="mailto:Crash-utility@redhat.com" target="_blank">Crash-utility@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/crash-utility" target="_blank">https://www.redhat.com/mailman/listinfo/crash-utility</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Mani<br>