[Crash-utility] search -k

Yang Zhiguo yzgcsu at cn.fujitsu.com
Fri Mar 28 02:32:49 UTC 2008


hi,

When i use search command as following, there is a Segmentation fault.
crash> search -k 12345
Segmentation fault

With the following patch, it is OK?

--- ../crash/crash-4.0-6.1/memory.c     2008-02-29 01:09:10.000000000 +0900
+++ memory.c    2008-03-28 10:32:47.000000000 +0900
@@ -11047,6 +11047,11 @@ search(ulong start, ulong end, ulong mas
                        break;

                case KVADDR:
+                       if (machine_type("IA64") && 
(machdep->machspec->kernel_start > pp)) {
+                               pp = machdep->machspec->kernel_start;
+                               continue;
+                       }
+
                        if (!kvtop(CURRENT_CONTEXT(), pp, &paddr, 0) ||
                            !phys_to_page(paddr, &page)) {
                               if (!next_kpage(pp, &pp))

Best Regards,





More information about the Crash-utility mailing list