https://bugzilla.novell.com/show_bug.cgi?id=391709
User jfehlig@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=391709#c9
James Fehlig changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jbeulich@novell.com
--- Comment #9 from James Fehlig 2008-05-23 16:22:05 MDT ---
Jan, Bruce, do you have any suggestion? I'm stuck at this point.
I've done some more investigation on this issue and I found that
xc_domain_save() in tool/libxc/xc_domain_save.c mysteriously exists the xc_save
process when calling munmap() during cleanup at line 1610. The live_p2m
variable contains a bogus address (see gdb trace below). That address was
obtained by an mmap() call in tools/libxc/xc_linux.c, function
xc_map_foreign_batch(). The address is bogus after the mmap call.
(gdb) until 705
map_and_save_p2m_table (xc_handle=3, io_fd=4, dom=2, p2m_size=133120,
live_shinfo=0x7f074322a000) at xc_domain_save.c:705
705 p2m = xc_map_foreign_batch(xc_handle, dom, PROT_READ,
(gdb) s
xc_map_foreign_batch (xc_handle=0, dom=4198400, prot=32519, arr=0x410, num=1)
at xc_linux.c:66
66 {
(gdb) n
69 addr = mmap(NULL, num*PAGE_SIZE, prot, MAP_SHARED, xc_handle, 0);
(gdb) p addr
$2 = (void *) 0x0
(gdb) n
70 if ( addr == MAP_FAILED ) {
(gdb) p addr
$3 = (void *) 0x7f0743191000
(gdb) x /10hb 0x7f0743191000
0x7f0743191000: Cannot access memory at address 0x7f0743191000
(gdb) c
Continuing.
Breakpoint 2, xc_domain_save (xc_handle=3, io_fd=4, dom=2, max_iters=29,
max_factor=3, flags=0, suspend=0x4010ec <suspend>, hvm=0,
init_qemu_maps=0x401358 ,
qemu_flip_buffer=0x40118b ) at xc_domain_save.c:1609
1609 if ( live_p2m )
(gdb) n
1610 munmap(live_p2m, ROUNDUP(p2m_size * sizeof(xen_pfn_t),
PAGE_SHIFT));
(gdb) p live_p2m
$4 = (xen_pfn_t *) 0x7f0743191000
(gdb) p *live_p2m
Cannot access memory at address 0x7f0743191000
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.