<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">crash can not exit from readmem() recursive until it is killed because of<br>OOM or Segmentation fault on PPC64 cpu.<br><br>readmem-->kvtop-->ppc64_vtop_level4-->readme-->kvtop....<br><br><br>root@localhost:~# uname -a<br>Linux localhost 3.4.20 #2 SMP PREEMPT Thu Jan 24 14:43:59 CST 2013 ppc64 GNU/Linux<br>root@localhost:~# <br><br>root@localhost:~# crash<br><br>crash 6.1.0<br>Copyright (C) 2002-2012  Red Hat, Inc.<br>Copyright (C) 2004, 2005, 2006, 2010  IBM Corporation<br>Copyright (C) 1999-2006  Hewlett-Packard Co<br>Copyright (C) 2005, 2006, 2011, 2012  Fujitsu Limited<br>Copyright (C) 2006, 2007  VA Linux Systems Japan K.K.<br>Copyright (C) 2005, 2011  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 GN!
 U 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 details.<br> <br>GNU gdb (GDB) 7.3.1<br>Copyright (C) 2011 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html><br>This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law.  Type "show copying"<br>and "show warranty" for details.<br>This GDB was configured as "powerpc64-wrs-linux"...<br><br>Segmentation fault (core dumped)<br>root@localhost:~# gdb /usr/bin/crash core<br>GNU gdb (Linux Sourcery CodeBench 4.6a-98) 7.4.50.20120716-cvs<br>Copyright (C) 2012 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html><br>This is free softwar!
 e: you are free to change and redistribute it.<br>There is NO !
 WARRANTY, to the extent permitted by law.  Type "show copying"<br>and "show warranty" for details.<br>This GDB was configured as "powerpc64-wrs-linux-gnu".<br>For bug reporting instructions, please see:<br><support@codesource.com>...<br>Reading symbols from /usr/bin/crash...Reading symbols from /usr/bin/.debug/crash...done.<br>done.<br>[New LWP 1166]<br><br>warning: Could not load shared library symbols for linux-vdso64.so.1.<br>Do you need "set solib-search-path" or "set sysroot"?<br>Core was generated by `crash '.<br>Program terminated with signal 11, Segmentation fault.<br>#0  readmem (addr=13835058055299842048, memtype=1, buffer=0x10cbc460, <br>    size=4096, type=0x106eafe8 "level4 page", error_handle=1) at memory.c:1959<br>1959    {<br>(gdb) bt<br>#0  readmem (addr=13835058055299842048, memtype=1, buffer=0x10cbc460, <br>    size=4096, type=0x106eafe8 "level4 page", error_handle=1) at memory.c:1959<br>#1!
   0x000000001011a2e4 in ppc64_vtop_level4 (vaddr=13835058055299842048, <br>    level4=0xc0000000010dc000, paddr=0xfffe73ed1d8, verbose=<optimized out>)<br>    at ppc64.c:561<br>#2  0x0000000010097264 in kvtop (tc=<optimized out>, <br>    kvaddr=<error reading variable: value has been optimized out>, <br>    paddr=<optimized out>, <br>    verbose=<error reading variable: value has been optimized out>)<br>    at memory.c:2765<br>#3  0x000000001009895c in readmem (addr=13835058055299842048, <br>    memtype=<optimized out>, buffer=<optimized out>, size=<optimized out>, <br>    type=0x106eafe8 "level4 page", error_handle=1) at memory.c:2032<br>#4  0x000000001011a2e4 in ppc64_vtop_level4 (vaddr=13835058055299842048, <br>    level4=0xc0000000010dc000, paddr=0xfffe73ed418, verbose=&!
 lt;optimized out>)<br>    at ppc64.c:561<br>#5  !
 0x0000000010097264 in kvtop (tc=<optimized out>, <br>    kvaddr=<error reading variable: value has been optimized out>, <br>    paddr=<optimized out>, <br>    verbose=<error reading variable: value has been optimized out>)<br>    at memory.c:2765<br>#6  0x000000001009895c in readmem (addr=13835058055299842048, <br>    memtype=<optimized out>, buffer=<optimized out>, size=<optimized out>, <br>---Type <return> to continue, or q <return> to quit---quit<br>type=Quit<br>(gdb) quit<br><br></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>