<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<tt>Hi Castor,</tt><tt></tt>
<p><tt>Can you re-create your latest patch so that it applies</tt>
<br><tt>like the one it's replacing?</tt><tt></tt>
<p><tt>Here's the patch you're replacing:</tt><tt></tt>
<p><tt>$ lsdiff crash-4.0-3.14-sym.patch</tt>
<br><tt>crash-4.0-3.14/defs.h</tt>
<br><tt>crash-4.0-3.14/gdb-6.1/gdb/symtab.c</tt>
<br><tt>crash-4.0-3.14/kernel.c</tt>
<br><tt>crash-4.0-3.14/symbols.c</tt>
<br><tt>$</tt><tt></tt>
<p><tt>$ patch -p1 --dry-run < crash-4.0-3.14-sym.patch</tt>
<br><tt>patching file defs.h</tt>
<br><tt>patching file gdb-6.1/gdb/symtab.c</tt>
<br><tt>patching file kernel.c</tt>
<br><tt>patching file symbols.c</tt>
<br><tt>$</tt><tt></tt>
<p><tt>Here's your latest:</tt><tt></tt>
<p><tt>$ lsdiff crash-4.0-3.14-sym.1.patch</tt>
<br><tt>$</tt><tt></tt>
<p><tt>$ patch -p1 --dry-run < crash-4.0-3.14-sym.1.patch</tt>
<br><tt>can't find file to patch at input line 2</tt>
<br><tt>Perhaps you used the wrong -p or --strip option?</tt>
<br><tt>The text leading up to this was:</tt>
<br><tt>--------------------------</tt>
<br><tt>|diff -r -x Makefile crash-4.0-3.14/defs.h crash-4.0-3.14-sym/defs.h</tt>
<br><tt>--------------------------</tt>
<br><tt>File to patch:</tt>
<br><tt>Skip this patch? [y]</tt>
<br><tt>Skipping patch.</tt>
<br><tt>1 out of 1 hunk ignored</tt>
<br><tt>can't find file to patch at input line 6</tt>
<br><tt>Perhaps you used the wrong -p or --strip option?</tt>
<br><tt>The text leading up to this was:</tt>
<br><tt>--------------------------</tt>
<br><tt>|diff -r -x Makefile crash-4.0-3.14/gdb-6.1/gdb/symtab.c crash-4.0-3.14-sym/gdb-6.1/gdb/symtab.c</tt>
<br><tt>--------------------------</tt>
<br><tt>File to patch:</tt>
<br><tt>Skip this patch? [y]</tt>
<br><tt>Skipping patch.</tt>
<br><tt>1 out of 1 hunk ignored</tt>
<br><tt>can't find file to patch at input line 17</tt>
<br><tt>Perhaps you used the wrong -p or --strip option?</tt>
<br><tt>The text leading up to this was:</tt>
<br><tt>--------------------------</tt>
<br><tt>|diff -r -x Makefile crash-4.0-3.14/kernel.c crash-4.0-3.14-sym/kernel.c</tt>
<br><tt>--------------------------</tt>
<br><tt>File to patch:</tt>
<br><tt>Skip this patch? [y]</tt>
<br><tt>Skipping patch.</tt>
<br><tt>1 out of 1 hunk ignored</tt>
<br><tt>can't find file to patch at input line 44</tt>
<br><tt>Perhaps you used the wrong -p or --strip option?</tt>
<br><tt>The text leading up to this was:</tt>
<br><tt>--------------------------</tt>
<br><tt>|diff -r -x Makefile crash-4.0-3.14/symbols.c crash-4.0-3.14-sym/symbols.c</tt>
<br><tt>--------------------------</tt>
<br><tt>File to patch:</tt>
<br><tt>Skip this patch? [y]</tt>
<br><tt>Skipping patch.</tt>
<br><tt>11 out of 11 hunks ignored</tt>
<br><tt>$</tt>
<br><tt></tt> 
<br><tt></tt> 
<br> 
<p>Castor Fu wrote:
<blockquote TYPE=CITE> <span class=446512601-05122006><font face="Arial"><font color="#0000FF"><font size=-1>Oops,
I found some problems with that version... Some data was not always</font></font></font></span><span class=446512601-05122006><font face="Arial"><font color="#0000FF"><font size=-1>initialized
and there were some things which were just lucky to work.</font></font></font></span><span class=446512601-05122006></span><span class=446512601-05122006><font face="Arial"><font color="#0000FF"><font size=-1>I've
attached a new patch.</font></font></font></span><span class=446512601-05122006></span><span class=446512601-05122006><font face="Arial"><font color="#0000FF"><font size=-1>Sorry
about that folks,</font></font></font></span><span class=446512601-05122006></span><span class=446512601-05122006><font face="Arial"><font color="#0000FF"><font size=-1>    
castor</font></font></font></span>
<blockquote dir=ltr style="MARGIN-RIGHT: 0px">
<div class="OutlookMessageHeader" dir="ltr"><font face="Tahoma"><font size=-1>-----Original
Message-----</font></font>
<br><font face="Tahoma"><font size=-1><b>From:</b> crash-utility-bounces@redhat.com
[<A HREF="mailto:crash-utility-bounces@redhat.com">mailto:crash-utility-bounces@redhat.com</A>]<b>On Behalf Of </b>Castor Fu</font></font>
<br><font face="Tahoma"><font size=-1><b>Sent:</b> Monday, December 04,
2006 11:16 AM</font></font>
<br><font face="Tahoma"><font size=-1><b>To:</b> Discussion list for crash
utility usage, maintenance and development</font></font>
<br><font face="Tahoma"><font size=-1><b>Subject:</b> RE: [Crash-utility]
modules and data / bss initialization</font></font>
<br> </div>
<span class=787551219-04122006><font face="Arial"><font color="#0000FF"><font size=-1>I'm
attaching a revised patch against 4.0-3.14...  This should</font></font></font></span><span class=787551219-04122006><font face="Arial"><font color="#0000FF"><font size=-1>work
a bit better as I no longer make assumptions about the ordering</font></font></font></span><span class=787551219-04122006><font face="Arial"><font color="#0000FF"><font size=-1>of
symbols, it's less whiny, and I even compiled with with -Werror so</font></font></font></span><span class=787551219-04122006><font face="Arial"><font color="#0000FF"><font size=-1>those
sign-extension problems should be gone.</font></font></font></span><span class=787551219-04122006></span><span class=787551219-04122006><font face="Arial"><font color="#0000FF"><font size=-1>Thanks
for the feedback!</font></font></font></span>
<blockquote dir=ltr style="MARGIN-RIGHT: 0px">
<div class="OutlookMessageHeader" dir="ltr"><font face="Tahoma"><font size=-1>-----Original
Message-----</font></font>
<br><font face="Tahoma"><font size=-1><b>From:</b> crash-utility-bounces@redhat.com
[<A HREF="mailto:crash-utility-bounces@redhat.com">mailto:crash-utility-bounces@redhat.com</A>]<b>On Behalf Of </b>Dave Anderson</font></font>
<br><font face="Tahoma"><font size=-1><b>Sent:</b> Friday, December 01,
2006 11:46 AM</font></font>
<br><font face="Tahoma"><font size=-1><b>To:</b> Discussion list for crash
utility usage, maintenance and development</font></font>
<br><font face="Tahoma"><font size=-1><b>Subject:</b> Re: [Crash-utility]
modules and data / bss initialization</font></font>
<br> </div>
Castor Fu wrote:
<blockquote TYPE="CITE"><span class=923310002-01122006><font face="Arial"><font color="#0000FF"><font size=-1>I
don't think this made it out earlier...</span><span 
      class=923310002-01122006></span><span class=923310002-01122006>Here's
a fix.  I've also added something so 'MODULES_IN_CWD' will work on
2.6</span><span class=923310002-01122006>since modules will end with .ko</span><span class=923310002-01122006></span><span 
      class=923310002-01122006>I
hope this looks good to others....</font></font></font></span></blockquote>

<p><br><tt>Hi Castor,</tt>
<p><tt>Upon quick testing with RHEL4 and RHEL5 x86_64 kernels,</tt>
<br><tt>this patch certainly looks promising...</tt>
<p><tt>Although I don't particularly care to see these messages:</tt>
<p><tt>ffffffff8810ae80  serio_raw        
41157  /lib/modules/2.6.18-1.2747.el5/kernel/drivers/input/serio/serio_raw.ko</tt>
<br><tt>ffffffff8811b580  uhci_hcd         
59353  /lib/modules/2.6.18-1.2747.el5/kernel/drivers/usb/host/uhci-hcd.ko</tt>
<br><tt>ffffffff88130b00  shpchp           
73069  /lib/modules/2.6.18-1.2747.el5/kernel/drivers/pci/hotplug/shpchp.ko</tt>
<br><b><tt>unexpected sym __key.10825 8814a180 sec .bss offset e180 mod_base
8813c000</tt></b>
<br><b><tt>XXX sym __key.10825 @ 8814a180 bfd val 0  section .bss</tt></b>
<br><b><tt>unexpected sym __key.10826 8814a180 sec .bss offset e180 mod_base
8813c000</tt></b>
<br><b><tt>XXX sym __key.10826 @ 8814a180 bfd val 0  section .bss</tt></b>
<br><tt>ffffffff88141f80  i2c_core         
57793  /lib/modules/2.6.18-1.2747.el5/kernel/drivers/i2c/i2c-core.ko</tt>
<p><tt>I would think they could be CRASHDEBUG(1)'d, couldn't they?</tt>
<br><tt>Plus, those error messages will clip 64-bit values as shown</tt>
<br><tt>above.</tt>
<p><tt>I'm also presuming that the new add-symbol-file operation will</tt>
<br><tt>harmlessly take a "0" mod_data_start, mod_rodata_start or</tt>
<br><tt>mod_bss_start address argument; seemingly it does, since several</tt>
<br><tt>of my test modules have 0 as one or more of those start addresses.</tt>
<p><tt>Anyway, I also would be interested in the experiences of others</tt>
<br><tt>on the list who are using different architectures and kernel</tt>
<br><tt>versions.</tt>
<p><tt>Thanks,</tt>
<br><tt>  Dave</tt>
<br> 
<br> 
<br> 
<br> 
<br> 
<br> </blockquote>
</blockquote>

<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>
</html>