<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Dave Anderson wrote:
<blockquote TYPE=CITE>"Sampathkumar, Kishore (STSD)" wrote:
<blockquote TYPE=CITE><span 
class=233200414-17042006><font face="Courier New"><font size=-1>Hi,</span><span 
class=233200414-17042006></span><span class=233200414-17042006>I
have been working on back-porting kexec/kdump functionality from 2.6.13
vanilla kernel to RHEL4, Update 2 kernel (version 2.6.9-22).</span><span 
class=233200414-17042006></span><span class=233200414-17042006>As
part of that, when I try to invoke "crash" on a vmcore generated, I get
the following error in "crash" tool:</span><span 
class=233200414-17042006></span><span class=233200414-17042006>[root
crash-4.0-2.23]# ./crash /boot/System.map-2.6.9-kdump-1 /usr/src/redhat/BUILD/kernel-2.6.9-kdump-1/linux-
2.6.9/vmlinux /root/vmcore</span><span class=233200414-17042006>crash 4.0-2.23</font></font>
<br><font face="Courier New"><font size=-1>Copyright (C) 2002, 2003, 2004,
2005, 2006  Red Hat, Inc.</font></font>
<br><font face="Courier New"><font size=-1>Copyright (C) 2004, 2005, 2006 
IBM Corporation</font></font>
<br><font face="Courier New"><font size=-1>Copyright (C) 1999-2006 
Hewlett-Packard Co</font></font>
<br><font face="Courier New"><font size=-1>Copyright (C) 2005  Fujitsu
Limited</font></font>
<br><font face="Courier New"><font size=-1>Copyright (C) 2005  NEC
Corporation</font></font>
<br><font face="Courier New"><font size=-1>Copyright (C) 1999, 2002 
Silicon Graphics, Inc.</font></font>
<br><font face="Courier New"><font size=-1>Copyright (C) 1999, 2000, 2001,
2002  Mission Critical Linux, Inc.</font></font>
<br><font face="Courier New"><font size=-1>This program is free software,
covered by the GNU General Public License,</font></font>
<br><font face="Courier New"><font size=-1>and you are welcome to change
it and/or distribute copies of it under</font></font>
<br><font face="Courier New"><font size=-1>certain conditions.  Enter
"help copying" to see the conditions.</font></font>
<br><font face="Courier New"><font size=-1>This program has absolutely
no warranty.  Enter "help warranty" for details.</span><span class=233200414-17042006>GNU
gdb 6.1</font></font>
<br><font face="Courier New"><font size=-1>Copyright 2004 Free Software
Foundation, Inc.</font></font>
<br><font face="Courier New"><font size=-1>GDB is free software, covered
by the GNU General Public License, and you are</font></font>
<br><font face="Courier New"><font size=-1>welcome to change it and/or
distribute copies of it under certain conditions.</font></font>
<br><font face="Courier New"><font size=-1>Type "show copying" to see the
conditions.</font></font>
<br><font face="Courier New"><font size=-1>There is absolutely no warranty
for GDB.  Type "show warranty" for details.</font></font>
<br><font face="Courier New"><font size=-1>This GDB was configured as "x86_64-unknown-linux-gnu"...</span><span class=233200414-17042006>crash:
read error: kernel virtual address: ffffffff813a8200  type: "xtime"</span><span class=233200414-17042006><span 
class=233200414-17042006>[root
crash-4.0-2.23]# </span></span><span class=233200414-17042006><span 
class=233200414-17042006><span class=233200414-17042006>[root
crash-4.0-2.23]# </span></span></span><span 
class=233200414-17042006></span><span class=233200414-17042006>I
tried with both crash-4.0-2.15 as well as crash-4.0-2.23. Same result.</span><span class=233200414-17042006>-
Should I be re-building crash as part of the back-port?</span><span class=233200414-17042006>-
Is crash capable </span><span 
class=233200414-17042006>of handing
vmcore's generated by kdump?</span><span class=233200414-17042006>- Can
someone suggest how I can make progress to get crash to work for this?</span><span 
class=233200414-17042006></span><span 
class=233200414-17042006>Thanks,</span><span class=233200414-17042006>-
Kishore</font></font></span>
<pre WRAP>
<hr WIDTH="90%" SIZE=4>--
Crash-utility mailing list
Crash-utility@redhat.com
<a href="https://www.redhat.com/mailman/listinfo/crash-utility">https://www.redhat.com/mailman/listinfo/crash-utility</a></pre>
</blockquote>

<p><br><tt>Hi Sampathkumar,</tt>
<p><tt>First thing, presuming that the vmlinux file is associated with
the vmcore</tt>
<br><tt>file, take the System-map argument out of the picture -- i.e, invoke
the</tt>
<br><tt>session as:</tt>
<p><tt> $ crash -d7 vmlinux vmcore</tt>
<p><tt>the -d7 will display a bunch of debug data.</tt>
<p><tt>What looks unusual is the ffffffff813a8200 address for "xtime". 
That</tt>
<br><tt>would seem to be too high -- except perhaps if the vmlinux you're
working</tt>
<br><tt>against (or maybe the unnecessary System-map) is the kdump kernel
loaded</tt>
<br><tt>at 16MB?</tt>
<p><tt>If you do this, the output should show the exact same kernels:</tt>
<p><tt> $ strings vmcore | grep "Linux version"</tt>
<p><tt> $ strings vmlinux | grep "Linux version"</tt>
<p><tt>Dave</tt>
<br> </blockquote>
<tt>Hi Kishore,</tt><tt></tt>
<p><tt>On a RHEL4 x86_64 kernel, "xtime" is typically an address about</tt>
<br><tt>3-4 MB from the beginning load address of the kernel, (i.e. add</tt>
<br><tt>about 3-4 MB to the base virtual address of ffffffff80000000),</tt>
<br><tt>whereas your example shows it at about 19MB (13a8200).  Given
that</tt>
<br><tt>the dumpfile read of ffffffff813a8200 failed, it looks as if the</tt>
<br><tt>physical memory region containing that address was not dumped,</tt>
<br><tt>which AFAICT with other kdump dumpfiles I have on-hand, the</tt>
<br><tt>"64MB@16MB" (or whatever size at 16MB) that is reserved for</tt>
<br><tt>the kdump kernel would *not* be captured in the /proc/vmcore</tt>
<br><tt>file.  So that kind of reinforces my suggestion that you are</tt>
<br><tt>perhaps using the wrong vmlinux (or System-map) associated with</tt>
<br><tt>the vmcore file.</tt><tt></tt>
<p><tt>Dave</tt>
<br><tt></tt> </html>