VirtualBox

Opened 3 months ago

Last modified 5 days ago

#22123 assigned defect

Infinite Loop in Guest Addition for Windows XP (1 Core always 100% on VBoxTray.exe)

Reported by: Francesco Bucciantini Owned by: pentagonik
Component: guest additions Version: VirtualBox-7.0.20
Keywords: guest additions, infinite loop, cpu cycles 100%, Windows XP Cc: Francesco Bucciantini
Guest type: other Host type: other

Description (last modified by Francesco Bucciantini)

Hi guys, on July 8th 2024 I raised an issue with the development snapshot uploaded on 2024-07-04T18:53:02, namely version 7.0.97 r163779 on Fedora 40, kernel 6.9.6 as it was cycling through something. In my 4c/8th configuration the process VirtualBoxVM constantly used at least 15% CPU time which means that it's always using 1 core at 100% despite the guest being completely idling. This seems to be occurring regardless of the guest, although I made the tests in particular on Windows XP. Anyway everything pointed towards an issue within the hypervisor. This didn't happen with the last but one development snapshot version and it also doesn't happen with the last but one stable build, namely 7.0.18 r162988. I was hoping this was gonna be debugged and caught early before the stable release, but unfortunately I can now confirm that the issue has been carried over from the development snapshot 7.0.97 r163779 to the last stable release 7.0.20 r163906.

https://i.imgur.com/KstNnoF.png

Logs: https://forums.virtualbox.org/download/file.php?id=52945

Forum reference for 7.0.97 r163779 Development Snapshot https://forums.virtualbox.org/viewtopic.php?p=548925#p548925

Forum reference for 7.0.20 r163906 Stable: https://forums.virtualbox.org/viewtopic.php?t=111893

Attachments (17)

Screenshot from 2024-07-23 07-56-51.png (17.2 KB ) - added by Francesco Bucciantini 3 months ago.
Screenshot highlighting the problem with the guest addition (25% CPU in 4c/4th means 1 core is always at 100%)
WindowsEmbedded-2024-07-23-08-04-34.zip (41.3 KB ) - added by Francesco Bucciantini 3 months ago.
Logs of the VM experiencing the issue
WindowsEmbedded-2024-08-19-08-06-25.zip (46.3 KB ) - added by Francesco Bucciantini 8 weeks ago.
Virtualbox 7.1.0 r164395
Screenshot from 2024-08-25 18-48-32.png (16.6 KB ) - added by Francesco Bucciantini 7 weeks ago.
Issue still occurring with Virtualbox 7.1.0 r164448 (aka BETA 2)
WindowsEmbedded-2024-08-25-18-51-31.zip (46.4 KB ) - added by Francesco Bucciantini 7 weeks ago.
Logs of the issue occurring on Virtualbox 7.1.0 r164448 (aka BETA 2)
Screenshot from 2024-08-28 10-13-45.png (314.2 KB ) - added by Francesco Bucciantini 7 weeks ago.
Virtualbox 7.1.0 r164481
WindowsEmbedded-2024-08-28-10-17-42.zip (45.6 KB ) - added by Francesco Bucciantini 7 weeks ago.
Virtualbox 7.1.0 r164481
VBoxTray.zip (473 bytes ) - added by Francesco Bucciantini 6 weeks ago.
VBoxTray logs 7.1.0 r164481
WindowsEmbedded-2024-08-30-07-50-45.zip (45.2 KB ) - added by Francesco Bucciantini 6 weeks ago.
Virtualbox logs 7.1.0 r164481
Screenshot from 2024-09-02 17-34-43.png (16.7 KB ) - added by Francesco Bucciantini 6 weeks ago.
CPU Usage 7.1.0 r164448 with Guest Addition r164641
WindowsEmbedded-2024-09-02-17-46-34.zip (45.5 KB ) - added by Francesco Bucciantini 6 weeks ago.
Host logs Virtualbox 7.1.0 r164448 with Guest Addition r164641
VBoxTray.2.zip (1.2 KB ) - added by Francesco Bucciantini 6 weeks ago.
Guest logs Virtualbox 7.1.0 r164448 with Guest Addition r164641
WindowsEmbedded-2024-09-07-18-19-24.zip (46.4 KB ) - added by Francesco Bucciantini 5 weeks ago.
Host logs Virtualbox 7.1.0 r164699 with guest addition version r164700
VBoxTray.3.zip (1.1 KB ) - added by Francesco Bucciantini 5 weeks ago.
Guest logs Virtualbox 7.1.0 r164699 with guest addition version r164700
WindowsEmbedded-2024-09-12-08-54-33.zip (46.3 KB ) - added by Francesco Bucciantini 5 weeks ago.
Host logs Virtualbox 7.1.0 r164728
VBoxTray.4.zip (1.4 KB ) - added by Francesco Bucciantini 5 weeks ago.
Guest logs Virtualbox 7.1.0 r164728
WindowsEmbedded-2024-10-09-08-31-48.zip (45.1 KB ) - added by Francesco Bucciantini 26 hours ago.
Host logs Virtualbox 7.1.3 r165012

Download all attachments as: .zip

Change History (35)

by Francesco Bucciantini, 3 months ago

Screenshot highlighting the problem with the guest addition (25% CPU in 4c/4th means 1 core is always at 100%)

by Francesco Bucciantini, 3 months ago

Logs of the VM experiencing the issue

comment:1 by Francesco Bucciantini, 3 months ago

Description: modified (diff)

comment:2 by Francesco Bucciantini, 3 months ago

Description: modified (diff)

comment:3 by Francesco Bucciantini, 3 months ago

I can also confirm that reverting to the guest additions version 7.0.19 r163782 works and the infinite loop is gone.

https://i.imgur.com/cXxvCSp.png

So now it's just a matter of comparing the changes between 7.0.19 r163782 and 7.0.20 r163906 and spot which commit caused the issue.

by Francesco Bucciantini, 8 weeks ago

Virtualbox 7.1.0 r164395

comment:4 by Francesco Bucciantini, 8 weeks ago

The issue is also occurring on 7.1.0 r164369 and 7.1.0 r164395 from August 15th, 2024. Given that 7.1.0 is Beta, it has also been reported in the dedicated Beta section of the forum: https://forums.virtualbox.org/viewtopic.php?t=111997

Once again, downgrading the guest additions to 7.0.19 r163782 (or, for those who prefer stable, 7.0.18 https://download.virtualbox.org/virtualbox/7.0.18/VBoxGuestAdditions_7.0.18.iso) solves the issue. In other words, I can confirm that the last guest additions to not show the issue are 7.0.19 r163782 and using those solves the issue on both 7.0.20 and 7.1.0.

comment:5 by pentagonik, 8 weeks ago

Thanks for the report; I'll have a look into this.

comment:6 by pentagonik, 8 weeks ago

Owner: set to pentagonik
Status: newassigned

comment:7 by pentagonik, 8 weeks ago

It could be that this particular snapshot version(s) had the same bug we were seeing in some other reports, which caused a high host CPU load.

Did the host CPU load drop as soon as you terminated VBoxTray on the guest?

comment:8 by Francesco Bucciantini, 8 weeks ago

Yes, the host CPU load dropped as soon as I killed the VBoxTray.exe process. That is, if you're using Bridged Network and not NAT, if you're using NAT, then you still had the high CPU load in the host despite the guest using basically nothing. This was until yesterday's release Virtualbox 7.1.0 r164443 which addressed the NAT issue.

In other words:

Test 1:

Virtualbox: 7.1.0 r164369 / r164395 Guest Additions: 7.1.0 r164395 Network: NAT

Guest CPU: 25% for a 4c configuration (infinite loop in VBoxTray.exe in one core) Host CPU: 66% for a 4c/8th configuration (high CPU usage beyond 1 core in infinite loop)

Test 2:

Virtualbox: 7.1.0 r164369 / r164395 Guest Additions: 7.1.0 r164395 Network: Bridged Network

Guest CPU: 25% for a 4c configuration (infinite loop in VBoxTray.exe in one core) Host CPU: 15% for a 4c/8th configuration (1 core stuck in infinite loop changing every few seconds, typical in Linux + a little vm overhead, which is normal)

Test 3:

Virtualbox: 7.1.0 r164369 / r164395 Guest Additions: 7.0.19 r163782 Network: NAT

Guest CPU: 5% for a 4c configuration (normal usage) Host CPU: 55% for a 4c/8th configuration (high CPU usage)

Test 4:

Virtualbox: 7.1.0 r164369 / r164395 Guest Additions: 7.0.19 r163782 Network: Bridged Network

Guest CPU: 5% for a 4c configuration (normal usage) Host CPU: 9% for a 4c/8th configuration (normal usage)

In other words, using the old guest additions makes the infinite loop in the guest go away, however it does nothing to prevent the infinite loop in the host if you're using NAT. That isn't the case if you're using bridged network, though. That is until yesterday's release, Virtualbox 7.1.0 r164443, as I was saying. With yesterday's release, I can confirm that the NAT infinite loop on the host is solved:

Virtualbox: 7.1.0 r164443 Guest Additions: 7.0.19 r163782 Network: NAT

Guest CPU: 5% for a 4c configuration (normal usage) Host CPU: 9% for a 4c/8th configuration (normal usage)

Virtualbox: 7.1.0 r164443 Guest Additions: 7.0.19 r163782 Network: Bridged Network

Guest CPU: 5% for a 4c configuration (normal usage) Host CPU: 9% for a 4c/8th configuration (normal usage)

So... one problem down, one to go. :D Thank you for fixing the first problem by the way (the NAT one). Now all is left is to also fix the issue in the guest addition for the guest. :)

comment:9 by pentagonik, 7 weeks ago

Does this still apply to Beta 2?

comment:10 by Francesco Bucciantini, 7 weeks ago

Yes, it also applies to Virtualbox 7.1.0 r164448 (aka BETA 2). New logs depicting the same issue occurring with Beta 2 in attachment (WindowsEmbedded-2024-08-25-18-51-31.zip).

by Francesco Bucciantini, 7 weeks ago

Issue still occurring with Virtualbox 7.1.0 r164448 (aka BETA 2)

by Francesco Bucciantini, 7 weeks ago

Logs of the issue occurring on Virtualbox 7.1.0 r164448 (aka BETA 2)

comment:11 by Francesco Bucciantini, 7 weeks ago

I've just installed the new Guest Addition version 7.1.0 r164481 and the problem persists. I tried to set the environment variables as it says here: https://www.virtualbox.org/wiki/AdditionsLogging however it didn't work as it didn't create any file in the specified folder. In attachment the normal logs for 7.1.0 r164481 (WindowsEmbedded-2024-08-28-10-17-42.zip).

by Francesco Bucciantini, 7 weeks ago

Virtualbox 7.1.0 r164481

by Francesco Bucciantini, 7 weeks ago

Virtualbox 7.1.0 r164481

comment:12 by Francesco Bucciantini, 6 weeks ago

New logs, also from within the guest. Essentially, I went into https://i.imgur.com/h29cOtm.png

and I created the DWORD entry LoggingEnabled with Decimal 255 (Hex ff) https://i.imgur.com/jQm7dm8.png

Then I added the two Environment Variables: https://i.imgur.com/EG2lk2c.png

and I created the "Temp" folder in C: to allow logs to be written there: https://i.imgur.com/1HWMLaQ.png

At this point, I rebooted and logged in with my normal Active Directory user and sure enough the logs were there. :) https://i.imgur.com/s2uUBqR.png

Unfortunately, however, when I opened them, I was a bit surprised by the lack of details. It looks like there isn't much being logged... :(

00:00:00.011718 main     VBoxTray 7.1.0_BETA2 r164482 win.x86 (Aug 21 2024 16:45:56) release log
00:00:00.011718 main     Log opened 2024-08-30T06:41:27.714716700Z
00:00:00.011718 main     OS Product: Windows XP Professional
00:00:00.012695 main     OS Release: 5.1.2600
00:00:00.012695 main     Executable: C:\WINDOWS\system32\VBoxTray.exe
00:00:00.012695 main     Process ID: 3836
00:00:00.012695 main     Package type: WINDOWS_32BITS_GENERIC
00:00:00.012695 main     Verbosity level: 0

https://i.imgur.com/RETtXI0.png

When I shut down the guest, I've got the message that VBoxTray couldn't be stopped correctly (probably 'cause it was still using resources being stuck in an infinite loop with the same 25% CPU usage in a 4c/4th configuration): https://i.imgur.com/mJMxc2c.png

Then I killed it and I shut down the host: https://i.imgur.com/FdWbHad.png

Anyway, in attachment you can find the logs, both from the Host and the Guest.

by Francesco Bucciantini, 6 weeks ago

Attachment: VBoxTray.zip added

VBoxTray logs 7.1.0 r164481

by Francesco Bucciantini, 6 weeks ago

Virtualbox logs 7.1.0 r164481

comment:13 by Francesco Bucciantini, 6 weeks ago

The Guest Additions were updated today at 13:14:26 BST in the development snapshot page, so I installed the new version, namely r164641 and I rebooted the guest. Unfortunately, things got... uhm... worse, but you know what they say "things have to get worse before they get better". Jokes aside, I have no idea what the new VBoxTray.exe is doing, but whatever it is, it's no longer single threaded with 1 core out of 4 being at 100% resulting in 25% CPU usage, but rather multithreaded with the load being spread across 2 cores and the CPU usage being 50% now in a 4c configuration. After waiting for a while (around 20 minutes), however, the CPU usage dropped down to 25% once again, thus going back to the old behavior. Things look interesting for the guest logs this time round as there are more things going on.

00:00:00.007812 main     VBoxTray 7.1.0_BETA2 r164641 win.x86 (Sep  2 2024 13:06:42) release log
00:00:00.007812 main     Log opened 2024-09-02T16:15:36.763906500Z
00:00:00.008789 main     OS Product: Windows XP Professional
00:00:00.009765 main     OS Release: 5.1.2600
00:00:00.009765 main     Executable: C:\WINDOWS\system32\VBoxTray.exe
00:00:00.009765 main     Process ID: 3572
00:00:00.009765 main     Package type: WINDOWS_32BITS_GENERIC
00:00:00.009765 main     Verbosity level: 0
00:00:00.014648 main     Windows version 5.1 build 2600 (uNtVersion=0x50010000000a28)
00:00:23.383789 main     Starting services ...
00:00:23.383789 main     Starting service 'display' ...
00:03:01.079101 main     Service 'display' started
00:03:01.080078 main     Starting service 'clipboard' ...
00:03:01.081054 main     Shared Clipboard: New Clipboard API not available (VERR_SYMBOL_NOT_FOUND)
00:03:01.088867 main     Shared Clipboard: Guest features: 0x7 - Host features: 0x3
00:03:01.089843 main     Shared Clipboard: Using chunk size 65536 (maximum is 134213632)
00:05:54.214843 shclwnd  Shared Clipboard: Initialized OLE in window thread
00:05:54.232421 shclwnd  Shared Clipboard: Window thread running
00:08:18.444335 clipboard Shared Clipboard: Worker loop running
00:08:18.445312 main     Service 'clipboard' started
00:08:18.446289 clipboard Shared Clipboard: Initialized OLE in worker thread
00:08:18.447265 main     Starting service 'seamless' ...
00:10:45.871093 main     Service 'seamless' started
00:10:45.871093 main     Starting service 'VRDP' ...
00:13:08.093750 main     Service 'VRDP' started
00:13:08.094726 main     Starting service 'IPC' ...
00:13:08.096679 main     VBoxIPCInit: Local IPC server now running at "\\.\pipe\VBoxTrayIPC-Bucciantinif"
00:15:32.291015 main     Service 'IPC' started
00:15:32.291015 main     Starting service 'LA' ...
00:15:32.291992 main     LA: RegQueryValueExW: failed [SOFTWARE\Oracle\VirtualBox Guest Additions/VBoxTrayLog]
00:15:32.291992 main     LA: RegQueryValueExW: failed [SOFTWARE\Oracle\VirtualBox Guest Additions/VBoxTrayLA]
00:15:32.292968 main     LA: DetachOnDisconnect=true
00:18:04.646484 main     Service 'LA' started
00:18:04.647460 main     Starting service 'draganddrop' ...
00:21:04.146484 dndwnd   DnD: Guest features: 0x0 - Host features: 0x0
00:21:34.138671 main     DnD: Failed to initialize proxy window, rc=VERR_NOT_SUPPORTED
00:22:34.139648 main     DnD: Initializing drag and drop service failed with rc=VERR_NOT_SUPPORTED
00:22:34.139648 main     Service 'draganddrop' is not supported on this system
00:22:34.139648 main     All services started
00:23:25.402343 dndwnd   DnD: Creating drop target failed with hr=0x80070057

The total run of the guest was 45 minutes after which I shut it down. In attachment you can find the screenshots along with the logs from both the host and the guest running version 7.1.0 r164448 with Guest Addition r164641.

by Francesco Bucciantini, 6 weeks ago

CPU Usage 7.1.0 r164448 with Guest Addition r164641

by Francesco Bucciantini, 6 weeks ago

Host logs Virtualbox 7.1.0 r164448 with Guest Addition r164641

by Francesco Bucciantini, 6 weeks ago

Attachment: VBoxTray.2.zip added

Guest logs Virtualbox 7.1.0 r164448 with Guest Addition r164641

comment:14 by Francesco Bucciantini, 5 weeks ago

I've updated to Virtualbox 7.1.0 r164699 with guest addition version r164700 uploaded on September 6th and unfortunately the issue still occurs. Looks like I'm still getting the line "New Clipboard API not available (VERR_SYMBOL_NOT_FOUND)" in the logs. New logs in attachment.

by Francesco Bucciantini, 5 weeks ago

Host logs Virtualbox 7.1.0 r164699 with guest addition version r164700

by Francesco Bucciantini, 5 weeks ago

Attachment: VBoxTray.3.zip added

Guest logs Virtualbox 7.1.0 r164699 with guest addition version r164700

comment:15 by Francesco Bucciantini, 5 weeks ago

Updated to Virtualbox 7.1.0 r164728. Unfortunately the issue is still there. New logs (both host and guest) in attachment.

by Francesco Bucciantini, 5 weeks ago

Host logs Virtualbox 7.1.0 r164728

by Francesco Bucciantini, 5 weeks ago

Attachment: VBoxTray.4.zip added

Guest logs Virtualbox 7.1.0 r164728

comment:16 by Francesco Bucciantini, 2 weeks ago

Tested on Virtualbox 7.1.2 r164945 stable and unfortunately the problem is still there.

comment:17 by Francesco Bucciantini, 5 days ago

Tested on Virtualbox 7.1.3 r165012 development snapshot and unfortunately the problem is still there.

by Francesco Bucciantini, 26 hours ago

Host logs Virtualbox 7.1.3 r165012

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette