https://bugzilla.novell.com/show_bug.cgi?id=391709 User jfehlig@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=391709#c11 --- Comment #11 from James Fehlig <jfehlig@novell.com> 2008-05-28 13:38:50 MDT --- (In reply to comment #10 from Jan Beulich)
Are you saying that the munmap call doesn't return (but rather result in process exit)?
Yes.
Did you try this with a debug build, so you'd get all the DPRINTF() output?
As it turns out, I didn't even need a debug build (due to a bug in tools/libxc/xc_private.h) to get the DPRINTF() outputs. Regardless, I did a debug build and added these DPRINTF()'s: --- xc_domain_save.c.orig 2008-05-28 13:25:24.000000000 -0600 +++ xc_domain_save.c 2008-05-28 13:30:01.000000000 -0600 @@ -1606,8 +1606,11 @@ if ( live_shinfo ) munmap(live_shinfo, PAGE_SIZE); - if ( live_p2m ) + if ( live_p2m ) { + DPRINTF("#### Calling munmap: live_p2m = %p\n", live_p2m); munmap(live_p2m, ROUNDUP(p2m_size * sizeof(xen_pfn_t), PAGE_SHIFT)); + DPRINTF("#### returned from munmap\n"); + } if ( live_m2p ) munmap(live_m2p, M2P_SIZE(max_mfn)); The results (in xend.log): [2008-05-28 13:22:39 5686] INFO (XendCheckpoint:374) Had 0 unexplained entries in p2m table [2008-05-28 13:22:45 5686] INFO (XendCheckpoint:374) Saving memory pages: iter 1 95%^M 1: sent 131072, skipped 0, delta 6185ms, dom0 0%, target 0%, sent 694Mb/s, dirtied 0Mb/s 0 pages [2008-05-28 13:22:45 5686] INFO (XendCheckpoint:374) Total pages sent= 131072 (0.98x) [2008-05-28 13:22:45 5686] INFO (XendCheckpoint:374) (of which 0 were fixups) [2008-05-28 13:22:45 5686] INFO (XendCheckpoint:374) All memory is saved [2008-05-28 13:22:50 5686] INFO (XendCheckpoint:374) #### Calling munmap: live_p2m = 0x7f5ff43ae000 [2008-05-28 13:23:00 5686] ERROR (XendCheckpoint:144) Save failed on domain sles-10-sp2-32-pv-def-net-7a0-1c3 (1). Traceback (most recent call last): File "/usr/lib64/python2.5/site-packages/xen/xend/XendCheckpoint.py", line 112, in save forkHelper(cmd, fd, saveInputHandler, False) File "/usr/lib64/python2.5/site-packages/xen/xend/XendCheckpoint.py", line 362, in forkHelper raise XendError("%s failed" % string.join(cmd)) XendError: /usr/lib64/xen/bin/xc_save 4 1 0 0 0 failed As you can see, I never get message "returned from munmap" - nor the final debug message (already in the code) just before returning from this function. -- 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.