<div> </div>
<div>I have a Ubuntu 7.4 system (2.6.20-17.39 kernel). The processor is a dual-core T7300 and 4GB memory. The kernel has kdb patched to it. After the device was rebooted, it entered to kdb  prompt. </div>
<div> </div>
<div>One problem confusing me is the inconsistent stack traces from &quot;bt&quot; command and &quot;dmesg&quot; command. They should be showing the same stack trace, if I understand them correctly. </div>
<div> </div>
<div>Another question is that I do not see the function &quot;shrink_all_memory&quot; was invoked from &quot;filp_close&quot;. Could that function &quot;shrink_all_memory&quot; come from kdb?</div>
<div> </div>
<div>A newbie with kdb on linux... So will appreciate your comment a lot. </div>
<div> </div>
<div>Frank</div>
<div> </div>
<div> </div>
<div>[0]kdb&gt; </div>
<div><br>[0]kdb&gt; bt</div>
<div><br>Stack traceback for pid 5753</div>
<div><br>0x5fd28a70     5753     5515  1    0   R  0x5fd28c20 *sleep</div>
<div><br>esp        eip        Function (args)</div>
<div><br><font style="BACKGROUND-COLOR: #c0c0c0">0xf5de7f00 0x4015007b shrink_all_memory+0x1ab</font></div>
<div><br><font style="BACKGROUND-COLOR: #c0c0c0">0xf5de7f10 0x40163de1 filp_close+0x21</font></div>
<div><br><font style="BACKGROUND-COLOR: #c0c0c0">0xf5de7f30 0x4011ed55 put_files_struct+0x95</font></div>
<div><br><font style="BACKGROUND-COLOR: #c0c0c0">0xf5de7f4c 0x4011fdf5 do_exit+0x135</font></div>
<div><br><font style="BACKGROUND-COLOR: #c0c0c0">0xf5de7f98 0x401204d9 do_group_exit+0x29</font></div>
<div><br><font style="BACKGROUND-COLOR: #c0c0c0">0xf5de7fac 0x4012053f sys_exit_group+0xf</font></div>
<div><br><font style="BACKGROUND-COLOR: #c0c0c0">0xf5de7fb4 0x401030f6 sysenter_past_esp+0x5f</font></div>
<div><br>[0]kdb&gt; dmesg 50</div>
<div><br>...<br>&lt;1&gt;[  201.250000] BUG: unable to handle kernel paging request at virtual address f9560f94</div>
<div><br>&lt;1&gt;[  201.250000]  printing eip:</div>
<div><br>&lt;4&gt;[  201.250000] 40163de1</div>
<div><br>&lt;1&gt;[  201.250000] *pde = 00000000</div>
<div><br>&lt;0&gt;[  201.250000] Oops: 0000 [#1]</div>
<div><br>&lt;0&gt;[  201.250000] SMP </div>
<div><br>[0]more&gt; </div>
<div><br>&lt;4&gt;[  201.250000] Modules linked in: 8021q iptable_filter ip_tables x_tables ip_gre i2c_dev i2c_qs i2c_algo_bit dev_acpi video battery asus_acpi container ac dock button sbs i2c_ec i2c_core backlight af_packet parport_pc lp parport ixgbe tpm_infineon tpm tpm_bios evdev psmouse serio_raw shpchp pci_hotplug pcspkr ext3 jbd mbcache sg sd_mod ata_generic ahci libata scsi_mod generic ehci_hcd uhci_hcd usbcore thermal processor fan</div>

<div><br>&lt;0&gt;[  201.250000] CPU:    0</div>
<div><br>&lt;0&gt;[  201.250000] EIP:    0060:[&lt;40163de1&gt;]    Tainted: PF     VLI</div>
<div><br>&lt;0&gt;[  201.250000] EFLAGS: 00210286   (2.6.20-17.39-procurve9 #1)</div>
<div><br>&lt;0&gt;[  201.250000] EIP is at filp_close+0x21/0x70</div>
<div><br>&lt;0&gt;[  201.250000] eax: f9560f60   ebx: f5fe4f00   ecx: f5fe4f00   edx: 5fd91680</div>
<div><br>&lt;0&gt;[  201.250000] esi: 5fd91680   edi: 00000000   ebp: f5de7f2c   esp: f5de7f1c</div>
<div><br>&lt;0&gt;[  201.250000] ds: 007b   es: 007b   ss: 0068</div>
<div><br>&lt;0&gt;[  201.250000] Process sleep (pid: 5753, ti=f5de6000 task=5fd28a70 task.ti=f5de6000)</div>
<div><br>&lt;0&gt;[  201.250000] Stack: 5fcb65c8 0000000f 5dc8d720 00000000 f5de7f48 4011ed55 5fd91680 00000014 </div>
<div><br>&lt;0&gt;[  201.250000]        5fd91680 5fd28a70 00000001 f5de7f94 4011fdf5 00000000 5de72508 00000014 </div>
<div><br>&lt;0&gt;[  201.250000]        00000000 0000804c f5de7fb8 5fd28f14 5fd28a70 00000000 37eed1e4 5dc0d480 </div>
<div><br>&lt;0&gt;[  201.250000] Call Trace:</div>
<div><br><font style="BACKGROUND-COLOR: #33ff33">&lt;0&gt;[  201.250000]  [&lt;4010477a&gt;] show_trace_log_lvl+0x1a/0x30</font></div>
<div><br><font style="BACKGROUND-COLOR: #33ff33">&lt;0&gt;[  201.250000]  [&lt;40104841&gt;] show_stack_log_lvl+0xb1/0xe0</font></div>
<div><br><font style="BACKGROUND-COLOR: #33ff33">&lt;0&gt;[  201.250000]  [&lt;40104a31&gt;] show_registers+0x1c1/0x2b0</font></div>
<div><br><font style="BACKGROUND-COLOR: #33ff33">&lt;0&gt;[  201.250000]  [&lt;40104c30&gt;] die+0x110/0x2c0</font></div>
<div><br><font style="BACKGROUND-COLOR: #33ff33">&lt;0&gt;[  201.250000]  [&lt;402e16f2&gt;] do_page_fault+0x372/0x6d0</font></div>
<div><br><font style="BACKGROUND-COLOR: #33ff33">&lt;0&gt;[  201.250000]  [&lt;402dfb3c&gt;] error_code+0x7c/0x90</font></div>
<div><br><font style="BACKGROUND-COLOR: #33ff33">&lt;0&gt;[  201.250000]  [&lt;4011ed55&gt;] put_files_struct+0x95/0xa0</font></div>
<div><br><font style="BACKGROUND-COLOR: #33ff33">&lt;0&gt;[  201.250000]  [&lt;4011fdf5&gt;] do_exit+0x135/0x7f0</font></div>
<div><br><font style="BACKGROUND-COLOR: #33ff33">&lt;0&gt;[  201.250000]  [&lt;401204d9&gt;] do_group_exit+0x29/0x80</font></div>
<div><br><font style="BACKGROUND-COLOR: #33ff33">&lt;0&gt;[  201.250000]  [&lt;4012053f&gt;] sys_exit_group+0xf/0x20</font></div>
<div><br>[0]more&gt; \</div>
<div><br>Only &#39;q&#39; or &#39;Q&#39; are processed at more prompt, input ignored</div>
<div><br>&lt;0&gt;[  201.250000]  [&lt;401030f6&gt;] sysenter_past_esp+0x5f/0x89</div>
<div><br>&lt;0&gt;[  201.250000]  =======================</div>
<div><br>&lt;0&gt;[  201.250000] Code: eb fe 90 8d b4 26 00 00 00 00 55 89 e5 83 ec 10 89 5d f4 89 c3 89 75 f8 89 d6 89 7d fc 8b 40 14 85 c0 74 46 8b 43 10 85 c0 74 35 &lt;8b&gt; 48 34 85 c9 74 2e 89 d8 ff d1 89 c7 89 f2 89 d8 e8 19 41 03 </div>

<div><br>&lt;0&gt;[  201.250000] EIP: [&lt;40163de1&gt;] filp_close+0x21/0x70 SS:ESP 0068:f5de7f1c</div>
<div><br>&lt;4&gt;[  201.250000]  </div>
<div><br>[0]kdb&gt; </div>
<div><br>[0]kdb&gt; </div>
<div><br>[0]kdb&gt; cpu 0</div>
<div> </div>
<div> </div>
<div>Entering kdb (current=0x5fd28a70, pid 5753) on processor 0 due to cpu switch</div>
<div><br>[0]kdb&gt; cpu 1</div>
<div> </div>
<div> </div>
<div>Entering kdb (current=0x47baa550, pid 0) on processor 1 due to cpu switch</div>
<div><br>[1]kdb&gt; bt</div>
<div><br>Stack traceback for pid 0</div>
<div><br>0x47baa550        0        1  1    1   I  0x47baa700 *swapper</div>
<div><br>esp        eip        Function (args)</div>
<div><br>0x47b4ff4c 0xf8814fc8 [processor]acpi_processor_idle+0x1ed</div>
<div><br>0x47b4ff74 0x401013ab cpu_idle+0x3b</div>
<div><br>0x47b4ff84 0x403da390 start_secondary+0x2f0</div>
<div><br>[1]kdb&gt; cpu 0</div>
<div> </div>
<div> </div>
<div>Entering kdb (current=0x5fd28a70, pid 5753) on processor 0 due to cpu switch</div>
<div><br>[0]kdb&gt; %eip</div>
<div><br>%eip = 0x40163de1 (filp_close+0x21)</div>
<div><br>[0]kdb&gt; %esp</div>
<div><br>%esp = 0xf5de7f1c</div>
<div><br>[0]kdb&gt; %ebp</div>
<div><br>%ebp = 0xf5de7f2c</div>
<div><br>[0]kdb&gt; md %ebp</div>
<div><br>0xf5de7f2c f5de7f48 4011ed55 5fd91680 00000014   H...U..@..._....</div>
<div><br>0xf5de7f3c 5fd91680 5fd28a70 00000001 f5de7f94   ..._p.._........</div>
<div><br>0xf5de7f4c 4011fdf5 00000000 5de72508 00000014   <a href="mailto:...@.....%">...@.....%</a>.]....</div>
<div><br>0xf5de7f5c 00000000 0000804c f5de7fb8 5fd28f14   ....L.........._</div>
<div><br>0xf5de7f6c 5fd28a70 00000000 37eed1e4 5dc0d480   p.._.......7...]</div>
<div><br>0xf5de7f7c 5fd91680 00000000 f5de7f9c 47bac080   ..._...........G</div>
<div><br>0xf5de7f8c 00000000 37f98294 f5de7fa8 401204d9   .......7.......@</div>
<div><br>0xf5de7f9c 00000000 37f98294 37f98294 f5de7fb0   .......7...7....</div>
<div><br>[0]kdb&gt; 0x4011ed554011ed55 <br>[0]kdb&gt; 0x4011ed554011ed5 <br>[0]kdb&gt; 0x4011ed554011ed <br>[0]kdb&gt; 0x4011ed554011e <br>[0]kdb&gt; 0x4011ed554011 <br>[0]kdb&gt; 0x4011ed55401 <br>[0]kdb&gt; 0x4011ed5540 <br>
[0]kdb&gt; 0x4011ed554 <br>[0]kdb&gt; 0x4011ed55</div>
<div><br>0x4011ed55 = 0x4011ed55 (put_files_struct+0x95)<br></div>