VirtualBox

Opened 4 years ago

Last modified 4 years ago

#19050 new defect

VirtualBox 6.0 on macOS 10.14 crashes on suspend/resume

Reported by: bcandler Owned by:
Component: other Version: VirtualBox 6.0.14
Keywords: Cc:
Guest type: Linux Host type: Mac OS X

Description

Host: Macbook Pro 2015 retina 13", macOS 10.14.6, vbox 6.0.14 Guest: Ubuntu 18.04.3 server

When the macbook lid is closed and then reopened:

  • the VM says it has "unexpectedly quit"
  • when I click on the VirtualBox icon, that has "unexpectedly quit" as well

Possibly related to #16486; however, I never had this problem with vbox 5.x. It seems to happen every time now, although this is with a freshly-installed 18.04 guest so possibly the guest is different.

Since the laptop has a retina display, with vbox 6.0 I select View > Scaled Mode otherwise the console text is too small. With vbox 5.x the console size was fine without adjustments. I don't know if this is related.

Change History (3)

comment:1 by bcandler, 4 years ago

I just tried an experiment: I ran an old and trusted 14.04 VM *and* the new 18.04.3 VM, and left laptop to sleep overnight.

After restarting, the 14.04 was still running, but the 18.04.3 aborted.

18.04.3 is running kernel 4.15.0-66-generic

Here is the tail of Logs/VBox.log.1 - it shows an error on pausing but no issue on resuming

00:35:16.535045 NAT: DHCP offered IP address 10.0.2.15
00:37:42.380997 Pausing VM execution, reason 'host suspend'
00:37:42.381340 Changing the VM state from 'RUNNING' to 'SUSPENDING'
00:37:42.419219 AIOMgr: Endpoint for file '/Users/brian/VirtualBox VMs/bionic-server/bionic-server.vdi' (flags 000c0781) created successfully
00:37:42.453390 PDMR3Suspend: 71 972 523 ns run time
00:37:42.453434 Changing the VM state from 'SUSPENDING' to 'SUSPENDED'
00:37:42.453453 Console: Machine state changed to 'Paused'
00:37:42.593352 ERROR [COM]: aRC=VBOX_E_INVALID_VM_STATE (0x80bb0002) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={Invalid machine state Paused when checking if the guest entered the ACPI mode)}, preserve=false aResultDetail=0
00:37:42.605164 ERROR [COM]: aRC=VBOX_E_INVALID_VM_STATE (0x80bb0002) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={Invalid machine state Paused when checking if the guest entered the ACPI mode)}, preserve=false aResultDetail=0
00:38:15.244851 Resuming VM execution, reason 'host resume'
00:38:15.247072 Changing the VM state from 'SUSPENDED' to 'RESUMING'
00:38:15.249101 AIOMgr: Endpoint for file '/Users/brian/VirtualBox VMs/bionic-server/bionic-server.vdi' (flags 000c0723) created successfully
00:38:15.467097 Changing the VM state from 'RESUMING' to 'RUNNING'
00:38:15.467156 Console: Machine state changed to 'Running'

And for the 14.04 VM which didn't crash:

02:11:04.893026 Pausing VM execution, reason 'host suspend'
02:11:04.894863 Changing the VM state from 'RUNNING' to 'SUSPENDING'
02:11:04.904272 AIOMgr: Endpoint for file '/Users/brian/VirtualBox VMs/cfprov/Snapshots/{5ae93552-1c8d-4699-8a75-4f9447d7ced2}.vdi' (flags 000c0781) created successfully
02:11:04.949415 PDMR3Suspend: 54 152 005 ns run time
02:11:04.949706 Changing the VM state from 'SUSPENDING' to 'SUSPENDED'
02:11:04.949741 Console: Machine state changed to 'Paused'
02:11:37.704882 Resuming VM execution, reason 'host resume'
02:11:37.705755 Changing the VM state from 'SUSPENDED' to 'RESUMING'
02:11:37.707812 AIOMgr: Endpoint for file '/Users/brian/VirtualBox VMs/cfprov/Snapshots/{5ae93552-1c8d-4699-8a75-4f9447d7ced2}.vdi' (flags 000c0723) created successfully
02:11:37.810827 Changing the VM state from 'RESUMING' to 'RUNNING'
02:11:37.810907 Console: Machine state changed to 'Running'
02:11:39.729861 GUI: UIDesktopWidgetWatchdog::sltHandleHostScreenWorkAreaResized: Screen 0 work area is formally resized to: 0x23 x 1225x777
02:11:54.994401 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000010fbd3000 w=800 h=600 bpp=32 cbLine=0xC80 flags=0x1 origin=0,0
02:11:59.582602 Changing the VM state from 'RUNNING' to 'SUSPENDING'
02:11:59.583459 AIOMgr: Endpoint for file '/Users/brian/VirtualBox VMs/cfprov/Snapshots/{5ae93552-1c8d-4699-8a75-4f9447d7ced2}.vdi' (flags 000c0781) created successfully
02:11:59.597019 PDMR3Suspend: 14 374 365 ns run time
02:11:59.597055 Changing the VM state from 'SUSPENDING' to 'SUSPENDED'
02:11:59.597073 Console: Machine state changed to 'Paused'
02:12:01.682375 Changing the VM state from 'SUSPENDED' to 'RESUMING'
02:12:01.682757 AIOMgr: Endpoint for file '/Users/brian/VirtualBox VMs/cfprov/Snapshots/{5ae93552-1c8d-4699-8a75-4f9447d7ced2}.vdi' (flags 000c0723) created successfully
02:12:01.683888 Changing the VM state from 'RESUMING' to 'RUNNING'
02:12:01.683913 Console: Machine state changed to 'Running'
02:12:09.493483 GUI: UIDesktopWidgetWatchdog::sltHandleHostScreenWorkAreaResized: Screen 0 work area is formally resized to: 0x23 x 1228x777

comment:2 by bcandler, 4 years ago

Happened again. Note the crash happened a few seconds after opening the laptop.

It offers to send a crash report to Apple, and here is the top part which looks relevant - there is a malloc use-after-free error reported.

Time Awake Since Boot: 1400000 seconds
Time Since Wake:       28 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called
VirtualBoxVM(98790,0x1113d45c0) malloc: Incorrect checksum for freed object 0x7fdc8b6fe200: probably modified after being freed.
Corrupt value: 0x0


Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib              0x00007fff5d8792c6 __pthread_kill + 10
1   libsystem_pthread.dylib             0x00007fff5d934bf1 pthread_kill + 284
2   libsystem_c.dylib                   0x00007fff5d7e36a6 abort + 127
3   libsystem_malloc.dylib              0x00007fff5d8f2077 malloc_vreport + 545
4   libsystem_malloc.dylib              0x00007fff5d90ae0d malloc_zone_error + 183
5   libsystem_malloc.dylib              0x00007fff5d8ee5c8 small_free_list_remove_ptr_no_clear + 1177
6   libsystem_malloc.dylib              0x00007fff5d8ed1db small_malloc_from_free_list + 152
7   libsystem_malloc.dylib              0x00007fff5d8ecafc small_malloc_should_clear + 284
8   libsystem_malloc.dylib              0x00007fff5d8ea245 szone_malloc_should_clear + 120
9   libsystem_malloc.dylib              0x00007fff5d8e8c99 malloc_zone_malloc + 103
10  libsystem_malloc.dylib              0x00007fff5d8e8c15 malloc + 24
11  com.apple.CoreGraphics              0x00007fff31c3f713 aal_create + 135
12  com.apple.CoreGraphics              0x00007fff31c3f34d ripr_Acquire + 122
13  com.apple.CoreGraphics              0x00007fff31c3f248 RIPRenderPath + 73
14  com.apple.CoreGraphics              0x00007fff31c06843 ripc_GetClipState + 4035
15  com.apple.CoreGraphics              0x00007fff31c054a6 ripc_GetRenderingState + 150
16  com.apple.CoreGraphics              0x00007fff31c052d1 ripc_DrawRects + 80
17  com.apple.AppKit                    0x00007fff2efe3ed1 __backing_store_DrawRects_block_invoke + 39
18  com.apple.AppKit                    0x00007fff2efe3260 backing_store_delegate + 893
19  com.apple.AppKit                    0x00007fff2f2ff1e2 backing_store_DrawRects.llvm.1028279097235270472 + 907
20  com.apple.CoreGraphics              0x00007fff31c051f2 CGContextFillRects + 96
21  com.apple.CoreGraphics              0x00007fff31c0518b CGContextFillRect + 105
22  com.apple.CoreGraphics              0x00007fff31c6d457 CGContextDrawImages + 2359
23  com.apple.coreui                    0x00007fff45ef650e _CUITileImageWithOperation + 327
24  com.apple.coreui                    0x00007fff45ed1311 DrawOnePartElementFromRenditionWithOperation + 859
25  com.apple.coreui                    0x00007fff45ed0e69 -[CUIThemeFacet _drawSpecificRenditionKey:rendition:inFrame:context:alpha:operation:isFocused:isFlipped:effects:] + 505
26  com.apple.coreui                    0x00007fff45ed0c61 -[CUIThemeFacet _drawSpecificRenditionKey:inFrame:context:isFocused:isFlipped:effects:] + 153
27  com.apple.coreui                    0x00007fff45ef520d -[CUIThemeFacet drawInFrame:isFocused:context:] + 133
28  com.apple.coreui                    0x00007fff45ee9e3c CUICoreThemeRenderer::DrawWindowFrameStandardNew(CUIDescriptor const*) + 2524
29  com.apple.coreui                    0x00007fff45ecfa4a CUIRenderer::Draw(CGRect, CGContext*, __CFDictionary const*, __CFDictionary const**) + 1776
30  com.apple.coreui                    0x00007fff45ecf32a CUIDraw + 278
31  com.apple.AppKit                    0x00007fff2eeffa4d __44-[NSAppearance _drawInRect:context:options:]_block_invoke + 47
32  com.apple.AppKit                    0x00007fff2edec753 -[NSCompositeAppearance _callCoreUIWithBlock:options:] + 363
33  com.apple.AppKit                    0x00007fff2eeffa18 -[NSAppearance _drawInRect:context:options:] + 105
34  com.apple.AppKit                    0x00007fff2f0af3e2 _NSDrawThemeBackground + 1203
35  com.apple.AppKit                    0x00007fff2f6617d3 -[NSThemeFrame _drawTexturedBackground] + 340
36  com.apple.AppKit                    0x00007fff2f661876 -[NSThemeFrame _drawTexturedThemeBackgroundRect:] + 102
37  com.apple.AppKit                    0x00007fff2efe481e -[NSThemeFrame drawWindowBackgroundRect:] + 71
38  com.apple.AppKit                    0x00007fff2efe4559 -[NSFrameView drawThemeContentFill:inView:] + 296
39  com.apple.AppKit                    0x00007fff2f660c7c -[NSThemeFrame _drawTexturedWindowWithClipRect:inView:] + 58
40  com.apple.AppKit                    0x00007fff2f660f1f -[NSThemeFrame _drawTexturedWindowWithClipRect:] + 42
41  com.apple.AppKit                    0x00007fff2efe216f -[NSThemeFrame drawRect:] + 139
42  com.apple.AppKit                    0x00007fff2ef0321e _NSViewDrawRect + 66
43  com.apple.AppKit                    0x00007fff2eeee05e -[NSView _drawRect:clip:] + 1752
44  com.apple.AppKit                    0x00007fff2eeebfe1 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 5165
45  com.apple.AppKit                    0x00007fff2eeeab8e -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 65
46  com.apple.AppKit                    0x00007fff2eee8490 -[NSView _oldDisplayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 1893
47  com.apple.AppKit                    0x00007fff2eee7ac9 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 253
48  com.apple.AppKit                    0x00007fff2eee46be -[NSView displayIfNeeded] + 1302
49  com.apple.AppKit                    0x00007fff2eee13ff -[NSWindow displayIfNeeded] + 280
50  com.apple.AppKit                    0x00007fff2eee1240 __NSWindowGetDisplayCycleObserverForDisplay_block_invoke + 684
51  com.apple.AppKit                    0x00007fff2eedc334 NSDisplayCycleObserverInvoke + 162
52  com.apple.AppKit                    0x00007fff2eedbeb4 NSDisplayCycleFlush + 1030
53  com.apple.QuartzCore                0x00007fff3c24e54d CA::Transaction::run_commit_handlers(CATransactionPhase) + 49
54  com.apple.QuartzCore                0x00007fff3c24dd26 CA::Transaction::commit() + 212
55  com.apple.AppKit                    0x00007fff2eedb84d __65+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayRefresh]_block_invoke + 274
56  com.apple.CoreFoundation            0x00007fff31841688 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
57  com.apple.CoreFoundation            0x00007fff318415bd __CFRunLoopDoObservers + 451
58  com.apple.CoreFoundation            0x00007fff317e3ce0 __CFRunLoopRun + 1136
59  com.apple.CoreFoundation            0x00007fff317e361e CFRunLoopRunSpecific + 455
60  com.apple.HIToolbox                 0x00007fff30a421ab RunCurrentEventLoopInMode + 292
61  com.apple.HIToolbox                 0x00007fff30a41ded ReceiveNextEventCommon + 355
62  com.apple.HIToolbox                 0x00007fff30a41c76 _BlockUntilNextEventMatchingListInModeWithFilter + 64
63  com.apple.AppKit                    0x00007fff2edda77d _DPSNextEvent + 1135
64  com.apple.AppKit                    0x00007fff2edd946b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361
65  com.apple.AppKit                    0x00007fff2edd3588 -[NSApplication run] + 699
66  libqcocoa.dylib                     0x000000010c408eed QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2205
67  org.qt-project.QtCoreVBox           0x00000001067dd791 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
68  org.qt-project.QtCoreVBox           0x00000001067e1b4a QCoreApplication::exec() + 346
69  VirtualBoxVM.dylib                  0x00000001064a1f13 TrustedMain + 1315
70  org.virtualbox.app.VirtualBoxVM     0x0000000105dd9d36 0x105dd6000 + 15670
71  libdyld.dylib                       0x00007fff5d73e3d5 start + 1

comment:3 by Socratis, 4 years ago

Duplicate of #19041?
Which sounds like a duplicate of #13874?

The last connection is a long-shot though...

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use