[Crash-utility] search -k
Dave Anderson
anderson at redhat.com
Fri Mar 28 03:15:06 UTC 2008
Yang Zhiguo wrote:
> 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?
I tried reproducing it on a readily-available ia64 running a RHEL5 xen
kernel, and
the command runs OK for me. I'll try it on a bare-metal ia64 tomorrow
to see if that
makes a difference.
In any case, your patch would skip the vmalloc (region 5) area
completely, so that's
not going to work. So I need to know why it's failing on your machine.
Can you
run crash from gdb, and figure out exactly which address it's failing on?
Thanks,
Dave
>
> --- ../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,
>
>
> --
> Crash-utility mailing list
> Crash-utility at redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility
More information about the Crash-utility
mailing list