[Fixed] Windows 7 64 bit guest memory corruption

Pre-VirtualBox 5.2 forum

[Fixed] Windows 7 64 bit guest memory corruption

Postby mhanor » 1. Jun 2015, 10:46

Hello,

You may already have discovered and fixed this. Also I'm not sure if it's a regression, but I haven't managed to reproduce the issue not even once with VirtualBox 4.3.29.100535.
I can reproduce it, once in every 10-20 attempts, sometimes it comes more easily, sometimes it's doesn't, using a newly created Windows 7 64 bit VM (default settings, 2GB of RAM) and a Windows 7 64 bit installation ISO. I let the VM boot the ISO up to the first setup window, then I reboot it (Host+R) and repeat. When the issue is triggered, the ISO fails to boot with different BSOD screens each time, that's if the VM doesn't start a Guru Meditation with VINF_EM_TRIPLE_FAULT (I think the guest starts executing from wrong address). I'm attaching a VM log. I also have two full memory dumps of the VM process, one with the Guru Meditation, one with a crash that occurred while I was trying to reproduce the problem, when I hit a key combination, by mistake, to take a snapshot (I think).
I haven't managed to reproduce anything similar, using Windows 8.1 64 bit.
Attachments
VirtualBoxGuru1.zip
(41.73 KiB) Downloaded 27 times
Last edited by mhanor on 25. Jun 2015, 22:02, edited 1 time in total.
mhanor
 
Posts: 228
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Windows 7 64 bit guest memory corruption (beta4,rc1)

Postby mhanor » 2. Jun 2015, 01:02

I can reproduce the issue with RC1.
mhanor
 
Posts: 228
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Windows 7 64 bit guest memory corruption (beta4,rc1)

Postby Ramshankar » 2. Jun 2015, 16:29

Any idea if this happens when you disable Hyper-V for the VM? (use paravirt. provider as "none" in the GUI Acceleration tab)
Oracle Corp.
Ramshankar
Oracle Corporation
 
Posts: 773
Joined: 7. Jan 2008, 16:17

Re: Windows 7 64 bit guest memory corruption (beta4,rc1)

Postby mhanor » 2. Jun 2015, 17:49

I've tried to reproduce the problem with the parav. provider set to 'None' (from 'Default'), so far it hasn't occurred.
mhanor
 
Posts: 228
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Windows 7 64 bit guest memory corruption (beta4,rc1)

Postby frank » 4. Jun 2015, 17:47

Too bad: I tried to reproduce this with a Windows 7 Enterprise DVD but was not successful. Hyper-V set as PV and rebooted the guest about 50 times.
frank
Oracle Corporation
 
Posts: 3363
Joined: 7. Jun 2007, 09:11
Location: Dresden, Germany
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows

Re: Windows 7 64 bit guest memory corruption (beta4,rc1)

Postby mhanor » 4. Jun 2015, 18:34

I first observed the issue after a few fresh installs, when sometimes the guest OS would hang (not completely) or VirtualBox would enter "guru meditation", right before it shows you the desktop, after completing the last setup steps (setting the user name, the PC name, the system date, the Windows Update, etc).
Would a guest memory dump be of use? Or the VirtualBox full process dump, while it's in guru meditation?
mhanor
 
Posts: 228
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Windows 7 64 bit guest memory corruption

Postby mhanor » 25. Jun 2015, 21:55

I can reproduce this with RC2. If it helps, I can build the dbgopt OSE build and enable some logging.
I have the full process dump and the log for a RC2 VM session that entered guru meditation. In case you're interested...
mhanor
 
Posts: 228
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Windows 7 64 bit guest memory corruption

Postby Ramshankar » 26. Jun 2015, 11:30

If you could give us the log for HM that would be useful. Namely, VBOX_WITH_R0_LOGGING=1 in LocalConfig.kmk or build debug VirtualBox using "kmk VBOX_WITH_R0_LOGGING=1".

Then, export or set VBOX_LOG="+hm.e.l4" before starting the VM.

The log will be pretty big as the VM runs longer, so if it takes too long to reproduce on one run, simply poweroff the VM and re-try to keep the log file smaller.

Ideally providing the log when the GURU happens would be more useful than a guest BSOD.
Oracle Corp.
Ramshankar
Oracle Corporation
 
Posts: 773
Joined: 7. Jan 2008, 16:17

Re: Windows 7 64 bit guest memory corruption

Postby mhanor » 26. Jun 2015, 12:40

I'm able to log to a separate log, not the VM log. How do I redirect it?
mhanor
 
Posts: 228
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Windows 7 64 bit guest memory corruption

Postby mhanor » 26. Jun 2015, 12:50

mhanor
 
Posts: 228
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Windows 7 64 bit guest memory corruption

Postby Ramshankar » 26. Jun 2015, 13:27

mhanor wrote:I'm able to log to a separate log, not the VM log. How do I redirect it?

No need to redirect it, separate is fine and how it works.
Oracle Corp.
Ramshankar
Oracle Corporation
 
Posts: 773
Joined: 7. Jan 2008, 16:17

Re: Windows 7 64 bit guest memory corruption

Postby Ramshankar » 26. Jun 2015, 14:48

Thanks for the log, I had a look. If your problem is very easily reproducible, could you try disabling large pages for the VM and trying?

Code: Select all   Expand viewCollapse view
VBoxManage modifyvm <vmname> --largepages off


And you can verify that it's really off in VBox.log after starting the VM in the line:
Code: Select all   Expand viewCollapse view
EnableLargePages   <integer> = 0x0000000000000001 (1)


It should show 0 there instead of 1.
Oracle Corp.
Ramshankar
Oracle Corporation
 
Posts: 773
Joined: 7. Jan 2008, 16:17

Re: Windows 7 64 bit guest memory corruption

Postby mhanor » 26. Jun 2015, 19:21

I'm not able to reproduce it. Now I know why I wasn't able to reproduce it on my Ubuntu 14.04 x64 host OS. I have just enabled large pages (disabled by default, it seems, for this host) and now I'm able to reproduce it under my Ubuntu host OS, using the RC2 build.
mhanor
 
Posts: 228
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Windows 7 64 bit guest memory corruption

Postby Ramshankar » 29. Jun 2015, 15:51

Thanks for testing, we should have a test build available soon.
Oracle Corp.
Ramshankar
Oracle Corporation
 
Posts: 773
Joined: 7. Jan 2008, 16:17

Re: Windows 7 64 bit guest memory corruption

Postby frank » 29. Jun 2015, 15:55

Here is a Windows test build which contains changes which hopefully fix your problem. Could you verify? Thank you!
frank
Oracle Corporation
 
Posts: 3363
Joined: 7. Jun 2007, 09:11
Location: Dresden, Germany
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows

Next

Return to Pre-Beta 5.2 Postings

Who is online

Users browsing this forum: No registered users and 9 guests