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 , 4 years ago
comment:2 by , 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
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
And for the 14.04 VM which didn't crash: