Re: How to open 32 bit dom0 kdump....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hey Dave,

I attached the crash -d1 output with this email... 

Do you think whether anything wrong with my vmcore ?

Yours
Kevin F. LI
On Mon, Sep 13, 2010 at 2:48 PM, Dave Anderson <anderson@xxxxxxxxxx> wrote:

----- "Feng LI" <funglee@xxxxxxxxx> wrote:

> Thanks Dave,
>
>
> I tried the patch you attached in the previous email.
>
> I am using the 32 bit crash utilities, and it seems to be able to load
> the vmcore (64bit). But I still have a problem, the physical address
> 0x7fed9050 was padding as 0x7fed9050000, and crash32 exited with error
> message
>
> <readmem: 7fed9050000, PHYSADDR, "xen kdump p2m mfn list page", 4096, (ROE), 894f538>
> addr: 7fed9050000 paddr: 7fed9050000 cnt: 4096
> crash32: read error: physical address: 7fed9050000 type: "xen kdump p2m mfn list page"
> ...
> ps.
> The output of patched crash32
>

The next problem is the p2m_mfn value that it read from the vmcore,
which is a pretty obviously incorrect value of 0, and which is
ultimately causing it to read from physical address 0:

> This GDB was configured as "i686-pc-linux-gnu"...
> GETBUF(128 -> 0)
> GETBUF(1500 -> 1)
>
>
> FREEBUF(1)
> FREEBUF(0)
> <readmem: c034e720, KVADDR, "kernel_config_data", 32768, (ROE), 898e8e0>
> addr: c034e720 paddr: 34e720 cnt: 2272
> x86_xen_kdump_p2m_create: p2m_mfn: 0
> <readmem: 0, PHYSADDR, "xen kdump p2m mfn page", 4096, (ROE), 894f538>
> addr: 0 paddr: 0 cnt: 4096
> 00000000: 7fed9050 7fed904c 7fed9058 7fed9054
> 00000010: 7fed9060 7fed905c f000859c f000ff53
> 00000020: f000fea5 f000e987 f0000c75 f0000c75
> 00000030: 99800b7c f0000c75 f000ef57 f000f545
>
>
> <readmem: 7fed9050000, PHYSADDR, "xen kdump p2m mfn list page", 4096, (ROE), 894f538>
> addr: 7fed9050000 paddr: 7fed9050000 cnt: 4096
> crash32: read error: physical address: 7fed9050000 type: "xen kdump p2m mfn list page"
>
> crash32: cannot read xen kdump p2m mfn list page

When you run with "crash -d1 ..." you should have seen a display of the p2m_mfn
value that was read from the vmcore header.  Can you attach that output?

crash32 5.0.7
Copyright (C) 2002-2010  Red Hat, Inc.
Copyright (C) 2004, 2005, 2006  IBM Corporation
Copyright (C) 1999-2006  Hewlett-Packard Co
Copyright (C) 2005, 2006  Fujitsu Limited
Copyright (C) 2006, 2007  VA Linux Systems Japan K.K.
Copyright (C) 2005  NEC Corporation
Copyright (C) 1999, 2002, 2007  Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002  Mission Critical Linux, Inc.
This program is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it under
certain conditions.  Enter "help copying" to see the conditions.
This program has absolutely no warranty.  Enter "help warranty" for details.
 
WARNING: machine type mismatch:
         crash utility: X86
         vmcore-2010-09-13-17-48-55: X86_64

vmcore_data: 
                  flags: c0 (KDUMP_LOCAL|KDUMP_ELF64)
                   ndfd: 3
                    ofp: 70d5c0
            header_size: 7296
   num_pt_load_segments: 6
     pt_load_segment[0]:
            file_offset: 1c80
             phys_start: 0
               phys_end: a0000
              zero_fill: 0
     pt_load_segment[1]:
            file_offset: a1c80
             phys_start: 100000
               phys_end: 2000000
              zero_fill: 0
     pt_load_segment[2]:
            file_offset: 1fa1c80
             phys_start: a000000
               phys_end: 38000000
              zero_fill: 0
     pt_load_segment[3]:
            file_offset: 2ffa1c80
             phys_start: 38000000
               phys_end: 7e98a000
              zero_fill: 0
     pt_load_segment[4]:
            file_offset: 7692bc80
             phys_start: 80000000
               phys_end: d7f70000
              zero_fill: 0
     pt_load_segment[5]:
            file_offset: ce89bc80
             phys_start: 100000000
               phys_end: 228000000
              zero_fill: 0
             elf_header: 84c8c48
                  elf32: 0
                notes32: 0
                 load32: 0
                  elf64: 84c8c48
                notes64: 84c8c88
                 load64: 84c8cc0
            nt_prstatus: 84c8e10
            nt_prpsinfo: 0
          nt_taskstruct: 0
            task_struct: 0
              page_size: 0
           switch_stack: 0
         xen_kdump_data:  
                    flags: 4 (KDUMP_MFN_LIST)
                  p2m_mfn: 0
                      cr3: 0
            last_mfn_read: ffffffff
            last_pmd_read: ffffffff
                     page: 0
                 accesses: 0
               cache_hits: 0 
               p2m_frames: 0
           xen_phys_start: 7db00000
        xen_major_version: 3
        xen_minor_version: 0
       p2m_mfn_frame_list: 0
       num_prstatus_notes: 4
               vmcoreinfo: 0
          size_vmcoreinfo: 0
       nt_prstatus_percpu: 
        084c8e10 084c9004 084c9198 084c932c 

Elf64_Ehdr:
                e_ident: \177ELF
      e_ident[EI_CLASS]: 2 (ELFCLASS64)
       e_ident[EI_DATA]: 1 (ELFDATA2LSB)
    e_ident[EI_VERSION]: 1 (EV_CURRENT)
      e_ident[EI_OSABI]: 0 (ELFOSABI_SYSV)
 e_ident[EI_ABIVERSION]: 0
                 e_type: 4 (ET_CORE)
              e_machine: 62 (EM_X86_64)
              e_version: 1 (EV_CURRENT)
                e_entry: 0
                e_phoff: 40
                e_shoff: 0
                e_flags: 0
               e_ehsize: 40
            e_phentsize: 38
                e_phnum: 7
            e_shentsize: 0
                e_shnum: 0
             e_shstrndx: 0
Elf64_Phdr:
                 p_type: 4 (PT_NOTE)
               p_offset: 456 (1c8)
                p_vaddr: 0
                p_paddr: 0
               p_filesz: 6840 (1ab8)
                p_memsz: 6840 (1ab8)
                p_flags: 0 ()
                p_align: 0
Elf64_Phdr:
                 p_type: 1 (PT_LOAD)
               p_offset: 7296 (1c80)
                p_vaddr: c0000000
                p_paddr: 0
               p_filesz: 655360 (a0000)
                p_memsz: 655360 (a0000)
                p_flags: 7 (PF_X|PF_W|PF_R)
                p_align: 0
Elf64_Phdr:
                 p_type: 1 (PT_LOAD)
               p_offset: 662656 (a1c80)
                p_vaddr: c0100000
                p_paddr: 100000
               p_filesz: 32505856 (1f00000)
                p_memsz: 32505856 (1f00000)
                p_flags: 7 (PF_X|PF_W|PF_R)
                p_align: 0
Elf64_Phdr:
                 p_type: 1 (PT_LOAD)
               p_offset: 33168512 (1fa1c80)
                p_vaddr: ca000000
                p_paddr: a000000
               p_filesz: 771751936 (2e000000)
                p_memsz: 771751936 (2e000000)
                p_flags: 7 (PF_X|PF_W|PF_R)
                p_align: 0
Elf64_Phdr:
                 p_type: 1 (PT_LOAD)
               p_offset: 804920448 (2ffa1c80)
                p_vaddr: ffffffffffffffff
                p_paddr: 38000000
               p_filesz: 1184407552 (4698a000)
                p_memsz: 1184407552 (4698a000)
                p_flags: 7 (PF_X|PF_W|PF_R)
                p_align: 0
Elf64_Phdr:
                 p_type: 1 (PT_LOAD)
               p_offset: 1989328000 (7692bc80)
                p_vaddr: ffffffffffffffff
                p_paddr: 80000000
               p_filesz: 1475805184 (57f70000)
                p_memsz: 1475805184 (57f70000)
                p_flags: 7 (PF_X|PF_W|PF_R)
                p_align: 0
Elf64_Phdr:
                 p_type: 1 (PT_LOAD)
               p_offset: 3465133184 (ce89bc80)
                p_vaddr: ffffffffffffffff
                p_paddr: 100000000
               p_filesz: 4966055936 (128000000)
                p_memsz: 4966055936 (128000000)
                p_flags: 7 (PF_X|PF_W|PF_R)
                p_align: 0
Elf64_Nhdr:
               n_namesz: 5 ("CORE")
               n_descsz: 336
                 n_type: 1 (NT_PRSTATUS)
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 c0497e20 00000000 
                         00000001 00000000 00000000 00000000 
                         ffffffea 00000000 00000000 00000000 
                         00000000 00000000 801e82e0 ffff828c 
                         00000004 00000000 00000000 00000000 
                         00000004 00000000 80299e14 ffff828c 
                         80299cb4 ffff828c 80299d24 ffff828c 
                         ffffffff 00000000 00000000 00000000 
                         8010e020 ffff828c 0000e008 00000000 
                         00000202 00000000 80287dd0 ffff828c 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 0000007b 00000000 
                         0000007b 00000000 000000d8 00000000 
                         00000000 00000000 00000000 00000000 
Elf64_Nhdr:
               n_namesz: 4 ("Xen")
               n_descsz: 32
                 n_type: 1000002 (XEN_ELFNOTE_CRASH_REGS)
                         8005003b 00000000 ac60c000 00000000 
                         27d99000 00000002 000006f0 00000000 
Elf64_Nhdr:
               n_namesz: 4 ("Xen")
               n_descsz: 80
                 n_type: 1000001 (XEN_ELFNOTE_CRASH_INFO)
                         00000003 00000000 00000004 00000000 
                         d7beb409 00000000 d7bed168 00000000 
                         d7bed138 00000000 d7beb3c5 00000000 
                         d7beb3e2 00000000 00000000 00000000 
                         d7a00000 00000000 000bf969 00000000 
Elf64_Nhdr:
               n_namesz: 5 ("CORE")
               n_descsz: 336
                 n_type: 1 (NT_PRSTATUS)
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         8023d100 ffff828c 02fb2dfa 0000000b 
                         27df1ea8 ffff8302 8023c5b0 ffff828c 
                         27dd0f58 ffff8302 00000001 00000000 
                         00000000 00000000 00000001 00000000 
                         8023d5c0 ffff828c 505a2de9 0000017f 
                         00000004 00000000 8029a008 ffff828c 
                         80299ea8 ffff828c 80299f18 ffff828c 
                         27dd0f58 ffff8302 00000000 00000000 
                         8010e020 ffff828c 0000e008 00000000 
                         00000002 00000000 27dd0f20 ffff8302 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 0000007b 00000000 
                         0000007b 00000000 000000d8 00000000 
                         00000000 00000000 00000000 00000000 
Elf64_Nhdr:
               n_namesz: 4 ("Xen")
               n_descsz: 32
                 n_type: 1000002 (XEN_ELFNOTE_CRASH_REGS)
                         8005003b 00000000 b769ccd0 00000000 
                         d7c8c000 00000000 000006f0 00000000 
Elf64_Nhdr:
               n_namesz: 5 ("CORE")
               n_descsz: 336
                 n_type: 1 (NT_PRSTATUS)
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         8023e100 ffff828c 0c452c37 0000000b 
                         27df1ea8 ffff8302 8023c5b0 ffff828c 
                         27dc8f58 ffff8302 00000002 00000000 
                         00000000 00000000 00000001 00000000 
                         8023e5c0 ffff828c 505a2d76 0000017f 
                         00000004 00000000 8029a1fc ffff828c 
                         8029a09c ffff828c 8029a10c ffff828c 
                         27dc8f58 ffff8302 00000000 00000000 
                         8010e020 ffff828c 0000e008 00000000 
                         00000002 00000000 27dc8f20 ffff8302 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 0000007b 00000000 
                         0000007b 00000000 000000d8 00000000 
                         00000000 00000000 00000000 00000000 
Elf64_Nhdr:
               n_namesz: 4 ("Xen")
               n_descsz: 32
                 n_type: 1000002 (XEN_ELFNOTE_CRASH_REGS)
                         8005003b 00000000 b76730a0 00000000 
                         d7c8c000 00000000 000006f0 00000000 
Elf64_Nhdr:
               n_namesz: 5 ("CORE")
               n_descsz: 336
                 n_type: 1 (NT_PRSTATUS)
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 00000000 00000000 
                         8023f100 ffff828c 15cc53bc 0000000b 
                         27df1ea8 ffff8302 8023c5b0 ffff828c 
                         27db8f58 ffff8302 00000003 00000000 
                         00000000 00000000 00000001 00000000 
                         8023f5c0 ffff828c 505a2d75 0000017f 
                         00000004 00000000 8029a3f0 ffff828c 
                         8029a290 ffff828c 8029a300 ffff828c 
                         27db8f58 ffff8302 00000000 00000000 
                         8010e020 ffff828c 0000e008 00000000 
                         00000002 00000000 27db8f20 ffff8302 
                         00000000 00000000 00000000 00000000 
                         00000000 00000000 0000007b 00000000 
                         0000007b 00000000 000000d8 00000000 
                         00000000 00000000 00000000 00000000 
Elf64_Nhdr:
               n_namesz: 4 ("Xen")
               n_descsz: 32
                 n_type: 1000002 (XEN_ELFNOTE_CRASH_REGS)
                         8005003b 00000000 e8122138 00000000 
                         d7c8c000 00000000 000006f0 00000000 
Elf64_Nhdr:
               n_namesz: 11 ("VMCOREINFO")
               n_descsz: 1008
                 n_type: 0 (unused)
                         OSRELEASE=2.6.27.42-0.1.1.xs5.6.0.44.111158xen
                         PAGESIZE=4096
                         SYMBOL(init_uts_ns)=c0434da0
                         SYMBOL(node_online_map)=c0493604
                         SYMBOL(swapper_pg_dir)=cfa6c000
                         SYMBOL(_stext)=c0102000
                         SYMBOL(mem_map)=c0519884
                         SYMBOL(contig_page_data)=c044aa80
                         SIZE(page)=32
                         SIZE(pglist_data)=20096
                         SIZE(zone)=4992
                         SIZE(free_area)=44
                         SIZE(list_head)=8
                         SIZE(nodemask_t)=4
                         OFFSET(page.flags)=0
                         OFFSET(page._count)=4
                         OFFSET(page.mapping)=16
                         OFFSET(page.lru)=24
                         OFFSET(pglist_data.node_zones)=0
                         OFFSET(pglist_data.nr_zones)=20012
                         OFFSET(pglist_data.node_mem_map)=20016
                         OFFSET(pglist_data.node_start_pfn)=20024
                         OFFSET(pglist_data.node_spanned_pages)=20032
                         OFFSET(pglist_data.node_id)=20036
                         OFFSET(zone.free_area)=4228
                         OFFSET(zone.vm_stat)=4772
                         OFFSET(zone.spanned_pages)=4884
                         OFFSET(free_area.free_list)=0
                         OFFSET(list_head.next)=0
                         OFFSET(list_head.prev)=4
                         LENGTH(zone.free_area)=11
                         LENGTH(free_area.free_list)=5
                         NUMBER(NR_FREE_PAGES)=0
                         NUMBER(PG_lru)=6
                         NUMBER(PG_private)=12
                         NUMBER(PG_swapcache)=17
                         CONFIG_X86_PAE=y
                         CRASHTIME=1284392912
Elf64_Nhdr:
               n_namesz: 15 ("VMCOREINFO_XEN")
               n_descsz: 4068
                 n_type: 0 (unused)
                         PAGESIZE=4096
                         SYMBOL(domain_list)=ffff828c80294030
                         SYMBOL(frame_table)=ffff828c802c62b8
                         SYMBOL(alloc_bitmap)=ffff828c802a2c70
                         SYMBOL(max_page)=ffff828c802c62c0
                         SIZE(page_info)=32
                         SIZE(domain)=7936
                         OFFSET(page_info.count_info)=8
                         OFFSET(page_info._domain)=16
                         OFFSET(domain.domain_id)=0
                         OFFSET(domain.next_in_list)=80
                         SYMBOL(dom_xen)=ffff828c802c62d8
                         SYMBOL(dom_io)=ffff828c802c62e0
                         SYMBOL(pgd_l4)=ffff828c8028c000
                         
cannot determine relocation value: not a live system
gdb vmlinux-2.6.27-debug 
GNU gdb (GDB) 7.0
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...

x86_xen_kdump_p2m_create: p2m_mfn: 0
00000000: 7fed9050 7fed904c 7fed9058 7fed9054
00000010: 7fed9060 7fed905c f000859c f000ff53
00000020: f000fea5 f000e987 f0000c75 f0000c75
00000030: 99800b7c f0000c75 f000ef57 f000f545

crash32: read error: physical address: 7fed9050000  type: "xen kdump p2m mfn list page"

crash32: cannot read xen kdump p2m mfn list page

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux