<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Arial;color: #000000;font-size: 12pt;">Hi Kumar:<br>
<br>
Thanks for your detailed updates.<br>
<br>
Very sorry for did not state clearly and bring confusing.<br>
<span dir="ltr"><br>
After look into more under your suggestion, this issue has no relation with crash tool.<br>
<br>
Thanks very much for your times.<br>
</span>
<div>
<div style="font-family:Tahoma; font-size:13px"><br>
<br>
<font color="0000FF">Best Regards,<br>
James</font><br>
<font color="999999"><br>
Liu Jianbo | <font color="FF0000">WIND RIVER</font> | Senior Engineer - Technical Support<br>
Tel 86 28 65318098 | Cell 86 13558641588 | Fax 86 28 65319983  </font><br>
<br>
<font color="999999">Manage your support account:<br>
<font color="0000FF">https://support.windriver.com </font><br>
<br>
Ask a Technical Question<br>
<font color="0000FF">https://ask.windriver.com </font><br>
<br>
Submit a Service Request<br>
<font color="0000FF">https://windriver.force.com/support</font></font><br>
<br>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF553498"><font color="#000000" face="Tahoma" size="2"><b>·ΆΌώΘΛ:</b> crash-utility-bounces@redhat.com [crash-utility-bounces@redhat.com] ΄ϊ±ν Buland Kumar Singh [6b65726e656c@gmail.com]<br>
<b>·ΆΛΝΚ±Όδ:</b> 2015Δκ12ΤΒ30ΘΥ 22:13<br>
<b>ΚΥΌώΘΛ:</b> Discussion list for crash utility usage, maintenance and development<br>
<b>ΦχΜβ:</b> Re: [Crash-utility] if it's normal to get into kdb shell when run crash<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr"><br>
<div class="gmail_extra">
<div class="gmail_quote">On 30 December 2015 at 16:34, Liu, Jianbo (James) <span dir="ltr">
<<a href="mailto:James.Liu@windriver.com" target="_blank">James.Liu@windriver.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div>
<div style="direction:ltr; font-family:Arial; color:rgb(0,0,0); font-size:12pt">Hi Experts:
<div><br>
</div>
<div>Sorry for disturbing you again.</div>
<div><br>
</div>
<div>When I run crash to debug vmcore, if kernel enable kgdb, it will get into kdb shell directly not crash shell, althrough I can get into crash via execute two go command in kdb shell, not sure if it's normal, do you have some comments on it?<br>
<div><br>
</div>
<div><br>
</div>
<div>When I disnable kgdb in kernel, there will not be this kind of issue, if there is some compatibility problem between kgdb and crash tool?</div>
<div><br>
</div>
<div>Thanks for your time and happen new year!!</div>
<div><br>
</div>
<div>/****************************************/</div>
<div><span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">root@localhost:~/coredump>sh testcoredump.sh; sh startcoredump.sh </span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">segment[0].mem:0x2000000 memsz:9183232</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">segment[1].mem:0x28c2000 memsz:65536</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">segment[2].mem:0x28d2000 memsz:4096</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">segment[3].mem:0x28d3000 memsz:28672</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">segment[4].mem:0x2ff5000 memsz:45056</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">SysRq : Trigger a crash</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">Entering kdb (current=0xdb17f900, pid 822) on processor 1 Oops: (null)</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">due to oops @ 0xc0348f64</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">NIP: c0348f64 LR: c034974c CTR: c0348f50</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">REGS: db18ddc0 TRAP: 0300   Not tainted  (2.6.34.15-grsec-WR4.3.0.0_cgl)</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">MSR: 00021202 <ME,CE,DE>  CR: 20242444  XER: 00000000</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">DEAR: 00000000, ESR: 00800000</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">TASK = db17f900[822] 'sh' THREAD: db18c000 CPU: 1</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">GPR00: 00000001 db18de70 db17f900 00000063 00000000 ffffffff c035e930 00000000 </span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">GPR08: 00008000 00000000 00000054 118c6000 20242444 100b84b8 100b0828 100b0904 </span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">GPR16: 00000000 00000000 00000000 1006d2d0 00000000 100cc220 1006b530 00000000 </span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">GPR24: 00000001 c0780d24 00029202 c0780e08 c0770000 00000000 c08578a4 00000063 </span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">NIP [c0348f64] sysrq_handle_crash+0x14/0x20</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">LR [c034974c] __handle_sysrq+0xcc/0x1d0</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">Call Trace:</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">[db18de70] [c0349734] __handle_sysrq+0xb4/0x1d0 (unreliable)</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">[db18dea0] [c03498ac] write_sysrq_trigger+0x5c/0x70</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">[db18deb0] [c01662f0] proc_reg_write+0x80/0xc0</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">[db18dee0] [c010ec50] vfs_write+0xc0/0x170</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">[db18df00] [c010ee80] sys_write+0x50/0x110</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">[db18df40] [c0011d58] ret_from_syscall+0x0/0x4</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">--- Exception: c01 at 0xff16ba4</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">    LR = 0xfebad5c</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">Instruction dump:</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">[1]more> </span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">39600003 7d605f9e 556b103a 7c005b78 98090003 4e800020 60000000 38000001 </span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">3d20c07a 90092170 7c0004ac 39200000 <98090000> 4e800020 60000000 3803ffd0 </span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">[1]kdb>    </span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">[1]kdb></span><font style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px" color="red"> go </font><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">Catastrophic error detected</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">kdb_continue_catastrophic=0, type go a second time if you really want to continue</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">[1]kdb> </span><font style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px" color="red">go</font><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">Catastrophic error detected</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">kdb_continue_catastrophic=0, attempting to continue</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">Oops: Kernel access of bad area, sig: 11 [#1]</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">PREEMPT SMP NR_CPUS=4 LTT NESTING LEVEL : 0 </span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">P2041 RDB</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">last sysfs file: /sys/devices/system/cpu/cpu3/crash_notes</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">Modules linked in:</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">NIP: c0348f64 LR: c034974c CTR: c0348f50</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">REGS: db18ddc0 TRAP: 0300   Not tainted  (2.6.34.15-grsec-WR4.3.0.0_cgl)</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">MSR: 00021202 <ME,CE,DE>  CR: 20242444  XER: 00000000</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">DEAR: 00000000, ESR: 00800000</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">TASK = db17f900[822] 'sh' THREAD: db18c000 CPU: 1</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">GPR00: 00000001 db18de70 db17f900 00000063 00000000 ffffffff c035e930 00000000 </span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">GPR08: 00008000 00000000 00000054 118c6000 20242444 100b84b8 100b0828 100b0904 </span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">GPR16: 00000000 00000000 00000000 1006d2d0 00000000 100cc220 1006b530 00000000 </span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">GPR24: 00000001 c0780d24 00029202 c0780e08 c0770000 00000000 c08578a4 00000063 </span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">NIP [c0348f64] sysrq_handle_crash+0x14/0x20</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">LR [c034974c] __handle_sysrq+0xcc/0x1d0</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">Call Trace:</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">[db18de70] [c0349734] __handle_sysrq+0xb4/0x1d0 (unreliable)</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">[db18dea0] [c03498ac] write_sysrq_trigger+0x5c/0x70</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">[db18deb0] [c01662f0] proc_reg_write+0x80/0xc0</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">[db18dee0] [c010ec50] vfs_write+0xc0/0x170</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">[db18df00] [c010ee80] sys_write+0x50/0x110</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">[db18df40] [c0011d58] ret_from_syscall+0x0/0x4</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">--- Exception: c01 at 0xff16ba4</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">    LR = 0xfebad5c</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">Instruction dump:</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">39600003 7d605f9e 556b103a 7c005b78 98090003 4e800020 60000000 38000001 </span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">3d20c07a 90092170 7c0004ac 39200000 <98090000> 4e800020 60000000 3803ffd0 </span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">Sending IPI to other cpus...</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">Bye!</span><br style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">
<span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">Using P2041 RDB machine description</span></div>
<div><span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px"><br>
</span></div>
<div><span style="font-family:ΞΆΘνΡΕΊΪ; font-size:19px">......</span></div>
<div><font face="ΞΆΘνΡΕΊΪ"><span style="font-size:19px">/**********************/<br>
</span></font>
<div style="font-family:Tahoma; font-size:13px"><br>
<br>
<font color="0000FF">Best Regards,<br>
James</font><br>
<font color="999999"><br>
Liu Jianbo | <font color="FF0000">WIND RIVER</font> | Senior Engineer - Technical Support<br>
Tel 86 28 65318098 | Cell 86 13558641588 | Fax 86 28 65319983  </font><br>
<br>
<font color="999999">Manage your support account:<br>
<font color="0000FF"><a href="https://support.windriver.com" target="_blank">https://support.windriver.com</a>
</font><br>
<br>
Ask a Technical Question<br>
<font color="0000FF"><a href="https://ask.windriver.com" target="_blank">https://ask.windriver.com</a>
</font><br>
<br>
Submit a Service Request<br>
<font color="0000FF"><a href="https://windriver.force.com/support" target="_blank">https://windriver.force.com/support</a></font></font><br>
<br>
</div>
</div>
</div>
<div></div>
<div></div>
</div>
</div>
<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" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/crash-utility</a><br>
</blockquote>
</div>
<br>
<br clear="all">
Hello James,<br>
<br>
crash and kgdb are two completely different debuggers to diagnose the kernel <br>
panic issues. You can not access or start the crash from the context of kgdb.<br>
<br>
[**crash utility:**]<br>
<br>
There are two ways to invoke crash utility[[1]];<br>
<br>
1) Typical postmortem debugging: (after panic)<br>
<br>
# crash /path/to/vmcore /path/to/vmlinux<br>
<br>
o Kernel object file and memory image are supplied, respectively.<br>
<br>
2) Live memory debugging:<br>
<br>
# crash <br>
<br>
o Pre-defined directories are searched for proper vmlinux<br>
o Version string matched to the running kernel (/proc/version)<br>
<br>
**OR**<br>
<br>
# crash /path/to/vmlinux<br>
<br>
[**kdb/kgdb:**][[2]]<br>
<br>
1) You can put the target system in debug mode using SysRq event (g).<br>
<br>
# echo g > /proc/sysrq-trigger <br>
<br>
Eg:<br>
# echo g > /proc/sysrq-trigger <br>
[  181.300854] SysRq : DEBUG<br>
<br>
Entering kdb (current=0xffff8800766ebc60, pid 2347) on processor 1 due to Keyboard Entry<br>
<br>
[1]kdb> summary <br>
sysname    Linux<br>
release    3.10.84<br>
version    #1 SMP Tue Jul 28 19:53:37 IST 2015<br>
machine    x86_64<br>
nodename   localhost.localdomain<br>
domainname (none)<br>
ccversion  CCVERSION<br>
date       2015-12-30 13:51:06 tz_minuteswest 0<br>
uptime     00:03<br>
load avg   0.11 0.11 0.04<br>
<br>
MemTotal:        2050340 kB<br>
MemFree:         1707332 kB<br>
Buffers:             764 kB<br>
<br>
1]kdb> dmesg | grep DMI:<br>
<7>[    0.000000] DMI: Red Hat KVM, BIOS 0.5.1 01/01/2007<br>
<br>
[1]kdb> bt<br>
Stack traceback for pid 2347<br>
0xffff8800766ebc60     2347      624  1    1   R  0xffff8800766ec240 *bash<br>
 ffff88007bd61e70 0000000000000018<br>
Call Trace:<br>
 <#DB>  <<EOE>>  [<ffffffff810dd84c>] ? sysrq_handle_dbg+0x2c/0x50<br>
 [<ffffffff8134b312>] ? __handle_sysrq+0xa2/0x170<br>
 [<ffffffff8134b80a>] ? write_sysrq_trigger+0x4a/0x50<br>
 [<ffffffff811fb61d>] ? proc_reg_write+0x3d/0x80<br>
 [<ffffffff811993bd>] ? vfs_write+0xbd/0x1e0<br>
 [<ffffffff81199d89>] ? SyS_write+0x49/0xa0<br>
 [<ffffffff815a27c7>] ? tracesys+0xdd/0xe2<br>
<br>
[1]kdb> rd<br>
ax: 0000000000000001  bx: ffffffff818a4560  cx: ffff88007fd0eec0<br>
dx: 0000000000000000  si: 0000000000000000  di: 0000000000000067<br>
bp: ffff88007bd61e70  sp: ffff88007bd61e70  r8: ffffffff81b9069c<br>
r9: 0000000000000248  r10: 0000000000000247  r11: 0000000000000003<br>
r12: 0000000000000067  r13: 0000000000000246  r14: 0000000000000007<br>
r15: 0000000000000000  ip: ffffffff810dd7f4  flags: 00000002  cs: 00000010<br>
ss: 00000018  ds: 00000018  es: 00000018  fs: 00000018  gs: 00000018<br>
<br>
[1]kdb> go<br>
[  251.553055] systemd-journald[2372]: File /run/log/journal/71b46828837d4b1cb7f04385c86e7626/system.journal corrupted or uncleanly shut down, renaming and replacing.<br>
<br>
#  <<<---{ root user }<br>
<br>
[Note:] kdb command "go" is used to continue kernel execution. In above case <br>
it will take you back to bash shell.<br>
<br>
2) You can crash the target system using SysRq event (c):<br>
<br>
# echo c > /proc/sysrq-trigger <br>
<br>
Eg:<br>
# echo c > /proc/sysrq-trigger <br>
[   28.963227] SysRq : Trigger a crash<br>
[   28.964025] BUG: unable to handle kernel NULL pointer dereference at           (null)<br>
[   28.964025] IP: [<ffffffff8134abb6>] sysrq_handle_crash+0x16/0x20<br>
[   28.964025] Oops: 0002 [#1] SMP <br>
<br>
Entering kdb (current=0xffff880077275a90, pid 2352) on processor 1 Oops: (null)<br>
due to oops @ 0xffffffff8134abb6<br>
?dCPU: 1 PID: 2352 Comm: bash Not tainted 3.10.84 #1<br>
?dHardware name: Red Hat KVM, BIOS 0.5.1 01/01/2007<br>
?dtask: ffff880077275a90 ti: ffff880076494000 task.ti: ffff880076494000<br>
?dRIP: 0010:[<ffffffff8134abb6>]  [<ffffffff8134abb6>] sysrq_handle_crash+0x16/0x20<br>
?dRSP: 0018:ffff880076495e80  EFLAGS: 00010096<br>
?dRAX: 000000000000000f RBX: ffffffff8190dbc0 RCX: ffff88007fd0eec0<br>
?dRDX: 0000000000000000 RSI: ffff88007fd0d368 RDI: 0000000000000063<br>
?dRBP: ffff880076495e80 R08: ffffffff81b9069c R09: 0000000000000245<br>
?dR10: 0000000000000244 R11: 0000000000000003 R12: 0000000000000063<br>
?dR13: 0000000000000246 R14: 0000000000000007 R15: 0000000000000000<br>
?dFS:  00007f53aec0c740(0000) GS:ffff88007fd00000(0000) knlGS:0000000000000000<br>
?dCS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033<br>
?dCR2: 0000000000000000 CR3: 00000000764bd000 CR4: 00000000000006e0<br>
?dDR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000<br>
?dDR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400<br>
?dStack:<br>
 ffff880076495eb8 ffffffff8134b312 0000000000000002 00007f53aec0a000<br>
 ffff880076495f50 0000000000000002 0000000000000000 ffff880076495ed8<br>
 ffffffff8134b80a 00007f53aec0a000 ffff88007661c000 ffff880076495ef8<br>
?dCall Trace:<br>
more> <br>
Only 'q' or 'Q' are processed at more prompt, input ignored<br>
?d [<ffffffff8134b312>] __handle_sysrq+0xa2/0x170<br>
?d [<ffffffff8134b80a>] write_sysrq_trigger+0x4a/0x50<br>
?d [<ffffffff811fb61d>] proc_reg_write+0x3d/0x80<br>
?d [<ffffffff811993bd>] vfs_write+0xbd/0x1e0<br>
?d [<ffffffff81199d89>] SyS_write+0x49/0xa0<br>
?d [<ffffffff815a27c7>] tracesys+0xdd/0xe2<br>
?dCode: eb 9b 45 01 f4 45 39 65 34 75 e5 4c 89 ef e8 02 f8 ff ff eb db 0f 1f 44 00 00 55 c7 05 20 17 54 00 01 00 00 00 48 89 e5 0f ae f8 <c6> 04 25 00 00 00 00 01 5d c3 0f 1f 44 00 00 55 31 c0 c7 05 7e
<br>
<br>
<br>
[1]kdb> summary<br>
sysname    Linux<br>
release    3.10.84<br>
version    #1 SMP Tue Jul 28 19:53:37 IST 2015<br>
machine    x86_64<br>
nodename   localhost.localdomain<br>
domainname (none)<br>
ccversion  CCVERSION<br>
date       2015-12-30 14:07:49 tz_minuteswest 0<br>
uptime     00:01<br>
load avg   0.95 0.21 0.06<br>
<br>
MemTotal:        2050340 kB<br>
MemFree:         1775224 kB<br>
Buffers:             764 kB<br>
<br>
[1]kdb> bt<br>
Stack traceback for pid 2352<br>
0xffff880077275a90     2352      629  1    1   R  0xffff880077276070 *bash<br>
 ffff880076495e80 0000000000000018 ffff880076495eb8 ffffffff8134b312<br>
 0000000000000002 00007f53aec0a000 ffff880076495f50 0000000000000002<br>
 0000000000000000 ffff880076495ed8 ffffffff8134b80a 00007f53aec0a000<br>
Call Trace:<br>
 [<ffffffff8134b312>] ? __handle_sysrq+0xa2/0x170<br>
 [<ffffffff8134b80a>] ? write_sysrq_trigger+0x4a/0x50<br>
 [<ffffffff811fb61d>] ? proc_reg_write+0x3d/0x80<br>
 [<ffffffff811993bd>] ? vfs_write+0xbd/0x1e0<br>
 [<ffffffff81199d89>] ? SyS_write+0x49/0xa0<br>
 [<ffffffff815a27c7>] ? tracesys+0xdd/0xe2<br>
<br>
[1]kdb> rd<br>
ax: 000000000000000f  bx: ffffffff8190dbc0  cx: ffff88007fd0eec0<br>
dx: 0000000000000000  si: 0000000000000000  di: 0000000000000063<br>
bp: ffff880076495e80  sp: ffff880076495e80  r8: ffffffff81b9069c<br>
r9: 0000000000000245  r10: 0000000000000244  r11: 0000000000000003<br>
r12: 0000000000000063  r13: 0000000000000246  r14: 0000000000000007<br>
r15: 0000000000000000  ip: ffffffff8134abb6  flags: 00010096  cs: 00000010<br>
ss: 00000018  ds: 00000018  es: 00000018  fs: 00000018  gs: 00000018<br>
<br>
[1]kdb> go<br>
Catastrophic error detected<br>
kdb_continue_catastrophic=0, type go a second time if you really want to continue<br>
<br>
[1]kdb> go<br>
Catastrophic error detected<br>
kdb_continue_catastrophic=0, attempting to continue<br>
[   28.964025] Modules linked in: ip6t_rpfilter ip6t_REJECT ipt_REJECT xt_conntrack ebtable_nat ebtable_broute bridge stp llc ebtable_filter ebtables ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw ip6table_filter
 ip6_tables iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw iptable_filter snd_hda_intel snd_hda_codec snd_hwdep snd_seq snd_seq_device snd_pcm snd_page_alloc snd_timer snd serio_raw pcspkr
 i2c_piix4 virtio_balloon soundcore nfsd auth_rpcgss nfs_acl lockd sunrpc ip_tables xfs libcrc32c ata_generic pata_acpi ata_piix cirrus syscopyarea sysfillrect sysimgblt drm_kms_helper ttm virtio_net virtio_blk drm libata virtio_pci virtio_ring virtio i2c_core
 floppy dm_mirror dm_region_hash dm_log dm_mod<br>
[  112.090263] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2007<br>
[  112.090263] task: ffff880077275a90 ti: ffff880076494000 task.ti: ffff880076494000<br>
[  112.090263] RIP: 0010:[<ffffffff8134abb6>]  [<ffffffff8134abb6>] sysrq_handle_crash+0x16/0x20<br>
[  112.090263] RSP: 0018:ffff880076495e80  EFLAGS: 00010096<br>
[  112.090263] RAX: 000000000000000f RBX: ffffffff8190dbc0 RCX: ffff88007fd0eec0<br>
[  112.090263] RDX: 0000000000000000 RSI: ffff88007fd0d368 RDI: 0000000000000063<br>
[  112.090263] RBP: ffff880076495e80 R08: ffffffff81b9069c R09: 0000000000000245<br>
[  112.090263] R10: 0000000000000244 R11: 0000000000000003 R12: 0000000000000063<br>
[  112.090263] R13: 0000000000000246 R14: 0000000000000007 R15: 0000000000000000<br>
[  112.090263] FS:  00007f53aec0c740(0000) GS:ffff88007fd00000(0000) knlGS:0000000000000000<br>
[  112.090263] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033<br>
[  112.090263] CR2: 0000000000000000 CR3: 00000000764bd000 CR4: 00000000000006e0<br>
[  112.090263] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000<br>
[  112.104034] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400<br>
[  112.104034] Stack:<br>
[  112.104034]  ffff880076495eb8 ffffffff8134b312 0000000000000002 00007f53aec0a000<br>
[  112.104034]  ffff880076495f50 0000000000000002 0000000000000000 ffff880076495ed8<br>
[  112.104034]  ffffffff8134b80a 00007f53aec0a000 ffff88007661c000 ffff880076495ef8<br>
[  112.104034] Call Trace:<br>
[  112.104034]  [<ffffffff8134b312>] __handle_sysrq+0xa2/0x170<br>
[  112.104034]  [<ffffffff8134b80a>] write_sysrq_trigger+0x4a/0x50<br>
[  112.104034]  [<ffffffff811fb61d>] proc_reg_write+0x3d/0x80<br>
[  112.104034]  [<ffffffff811993bd>] vfs_write+0xbd/0x1e0<br>
[  112.104034]  [<ffffffff81199d89>] SyS_write+0x49/0xa0<br>
[  112.104034]  [<ffffffff815a27c7>] tracesys+0xdd/0xe2<br>
[  112.104034] Code: eb 9b 45 01 f4 45 39 65 34 75 e5 4c 89 ef e8 02 f8 ff ff eb db 0f 1f 44 00 00 55 c7 05 20 17 54 00 01 00 00 00 48 89 e5 0f ae f8 <c6> 04 25 00 00 00 00 01 5d c3 0f 1f 44 00 00 55 31 c0 c7 05 7e
<br>
[  112.104034] RIP  [<ffffffff8134abb6>] sysrq_handle_crash+0x16/0x20<br>
[  112.104034]  RSP <ffff880076495e80><br>
[  112.104034] CR2: 0000000000000000<br>
[  112.104034] ---[ end trace 4484e44d0167e21c ]---<br>
[  112.104034] Kernel panic - not syncing: Fatal exception<br>
PANIC: Fatal exception<br>
<br>
Entering kdb (current=0xffff880077275a90, pid 2352) on processor 1 due to Keyboard Entry<br>
<br>
[Note:] kdb command "go" is used to continue kernel execution. In above case <br>
it will not take you back to bash shell. :) <br>
<br>
Few questions for you;<br>
<br>
[Q:1] What exactly you are trying to achieve ?<br>
[Q:2] What is the exact issue ?<br>
<br>
Regards,<br>
BKS<br>
<br>
[[1]] <a href="http://people.redhat.com/anderson/crash_whitepaper/#INVOCATION" target="_blank">
http://people.redhat.com/anderson/crash_whitepaper/#INVOCATION</a><br>
[[2]] <a href="https://www.kernel.org/pub/linux/kernel/people/jwessel/kdb/" target="_blank">
https://www.kernel.org/pub/linux/kernel/people/jwessel/kdb/</a><br>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>