machyve / xhyve

xhyve, a lightweight OS X virtualization solution
Other
6.44k stars 353 forks source link

Macbook crash after long sleep with xhyve running #86

Closed pdonorio closed 8 years ago

pdonorio commented 8 years ago

Hello, as for the subject, if i leave the laptop closed for too long (e.g. from going to sleep to when i awake) it will be in power off. Restarting it will say that the system was closed unexpectedly.

I installed no other software in the last month but xhyve with dlite. I did it a few days ago and the problem happened three nights in a row.

I had a similar issue with Virtualbox last year. It was due to some issue with El Capitan and Virtual Machines, and don't know if it was solved by OSX or Virtualbox update.

Can someone help out here? Thanks a lot

jnicolson commented 8 years ago

This is also occurring for me - since installing dlite with xhyve, it seems as though every time my laptop goes to sleep it crashes.

OS X 10.11.4 (15E33e), MacBook Pro Mid-2014. Dlite 1.1.1

AntonioMeireles commented 8 years ago

@pdonorio you're too in 10.11.4 (15E33e) ? (trying to spot a pattern)

pdonorio commented 8 years ago

@AntonioMeireles no, i am on OS X 10.11.3 (15D21) Kenerl is Darwin 15.3.0

Is a 10.11.4 out??

Anyway, if i close and open up after one hour everything is fine, so there seams to be some differences with @jnicolson.

Also dlite version 1.0.4, i may update to the latest (1.1.2).

jnicolson commented 8 years ago

If it helps, I've attached the backtrace from the most recent crash.

Kernel_2016-01-29-185747_Jarls-MacBook-Pro.txt

I'm not 100% sure how long mine is taking before it crashes - it seems like @pdonorio to be after an extended period of inactivity (today I left my computer and went out for dinner and it had crashed when I got home - something between 1.5 and 2 hours).

hrzbrg commented 8 years ago

I got this error on 10.11.3 and 10.11.4 since I started running xhyve. Someone hinted that I should uninstall VirtualBox, but it didn't help.

nlf commented 8 years ago

i did a little investigating of this on my end also. it occurs for me on both 10.11.2 and 10.11.3, but only when the laptop has been sleeping for several hours. some additional info however, is that it also only happens if the laptop is disconnected from its power cable. when i leave the power connected the laptop can sleep overnight without issue, but without it it crashes within a few hours.

pdonorio commented 8 years ago

Removed virtualbox, updated dlite. Still the problem occurs every night.

But... if i plug the cable it does not happen, as suggested from @nlf
so i guess it's about the os in sleep mode having some conflicts if the virtual environment is running.

I would like to try with xhyve off tonight and see if something changes.

xez commented 8 years ago

Not an issue with xhyve per se, if your machine panics on wake it is an OS X bug.

pdonorio commented 8 years ago

I removed everything yesterday, installed xhyve with brew, updated dlite, and this morning i found the laptop on, with no crash or freeze, and docker running.

I will wait to see if the problem is gone in the next days.

caarlos0 commented 8 years ago

For me it happens even with cable plugged...

More info in https://github.com/nlf/dlite/issues/79

nlf commented 8 years ago

this seems to have randomly stopped for me too, for what it's worth.. i didn't make any changes that i recall, but the last several days my laptop has been waking up just fine

caseywebdev commented 8 years ago

It has happened to me a few times, most recently after closing the laptop for just under an hour. I'm using dlite 1.1.3, OS X 10.11.4 Beta (15E33e), DhyveOS 2.1.1, and Docker 1.9.1 (a34a1d5). Not plugged in to power.

elliot-wood commented 8 years ago

I get a kernel panic regardless of how long my computer is in sleep or if I am connected to power.

However, if I send a SIGSTOP to the xhyve process(es), and put my computer to sleep, it will resume fine, but will kernel panic when I send a SIGCONT.

Running OS X 10.11.4 (15E33e).

caarlos0 commented 8 years ago

@andonuts I do dlite stop when I'm not using it, so sleep and wake up works fine...

elliot-wood commented 8 years ago

@caarlos0 I'm using xhyve directly using a slightly modified version of the xhyverun.sh script.

pdonorio commented 8 years ago

So i didn't have kernel panic anymore. Not plugged for the night, no dlite stop, i just leave it and no problems at all.

Reading @nlf i would say it didn't depend on my remove/reinstall of the software.

caarlos0 commented 8 years ago

@pdonorio that's really weird..

qrpike commented 8 years ago

Been having this issue too. Very annoying :/

pdonorio commented 8 years ago

And the problem is back...

I had to update the VM to the latest Docker engine release (1.10) and having some issues i ended up with removing and installing again. The laptop goes in kernel panic even with the cable plugged. The only way to avoid it is to stop the dlite service...

:/

fixe commented 8 years ago

This was also happening to me frequently. I've upgraded from 10.11.3 to 10.11.4 and no crashes occurred meanwhile. I'll let you guys know if the problem reappears.

caarlos0 commented 8 years ago

@fixe i'm on 10.11.4, problem do occur.

caarlos0 commented 8 years ago

Seems to have stopped on 15E39d.

testn commented 8 years ago

I have seen it twice in one day on 10.11.4

xez commented 8 years ago

@testn Which 10.11.4 build?

pdonorio commented 8 years ago

After @caarlos0 comment i updated to the beta program. I'm on 15E39d now and after updating the problem never happened again.

romadinov commented 8 years ago

I have the same issue on 10.11.3. Uninstallation of dlite/xhyve fixed the issue (although it is not a solution) so the problem is definitely in xhyve.

mhubig commented 8 years ago

It seems im also affected by this bug, I'm on Mac OS X Version 10.11.3 (15D21):

Anonymous UUID:       9F9646BB-4EAE-D7A4-1FE6-B84F278BE8DE

Tue Feb 23 19:32:13 2016

*** Panic Report ***
panic(cpu 0 caller 0xffffff801f7d255a): Kernel trap at 0xffffff801f7b48ed, type 6=invalid opcode, registers:
CR0: 0x0000000080010033, CR2: 0x00007fff5c88f090, CR3: 0x0000000023977000, CR4: 0x00000000001627e0
RAX: 0xffffff920cedb3d0, RBX: 0x0000000000000008, RCX: 0x0000000000000001, RDX: 0x0000000000000010
RSP: 0xffffff920cedb3d0, RBP: 0xffffff920cedb3e0, RSI: 0x0000000000000000, RDI: 0x00000000484e0000
R8:  0xffffff801f7b48d0, R9:  0x00000000484e0000, R10: 0x0000000000000000, R11: 0x0000000000000000
R12: 0x0000000000000008, R13: 0x0000000000000000, R14: 0x0000000000000000, R15: 0x0000000000000000
RFL: 0x0000000000010082, RIP: 0xffffff801f7b48ed, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0x00007fff5c88f090, Error code: 0x0000000000000000, Fault CPU: 0x0, PL: 2

Backtrace (CPU 0), Frame : Return Address
0xffffff920cedb060 : 0xffffff801f6df792 
0xffffff920cedb0e0 : 0xffffff801f7d255a 
0xffffff920cedb2c0 : 0xffffff801f7f0233 
0xffffff920cedb2e0 : 0xffffff801f7b48ed 
0xffffff920cedb3e0 : 0xffffff801f7dc769 
0xffffff920cedb4d0 : 0xffffff801f7b0d12 
0xffffff920cedb570 : 0xffffff801f7b92ed 
0xffffff920cedb630 : 0xffffff801f7bba57 
0xffffff920cedb650 : 0xffffff801f78e0a6 
0xffffff920cedb670 : 0xffffff801f78b9e0 
0xffffff920cedb790 : 0xffffff801fc7ca6a 
0xffffff920cedbb90 : 0xffffff801f7df7fd 
0xffffff920cedbbd0 : 0xffffff801f7be37a 
0xffffff920cedbc60 : 0xffffff801f7defe3 
0xffffff920cedbcd0 : 0xffffff7fa20e452d 
0xffffff920cedbd10 : 0xffffff7fa20e7d79 
0xffffff920cedbd30 : 0xffffff801fcd38ff 
0xffffff920cedbd90 : 0xffffff801fcfe9e6 
0xffffff920cedbe00 : 0xffffff801fca48f9 
0xffffff920cedbe60 : 0xffffff801fc9c884 
0xffffff920cedbec0 : 0xffffff801fca9b42 
0xffffff920cedbf00 : 0xffffff801fca9c92 
0xffffff920cedbf40 : 0xffffff801fcb4d61 
0xffffff920cedbf80 : 0xffffff801fcb4f5c 
0xffffff920cedbfb0 : 0xffffff801f7ccf77 
      Kernel Extensions in backtrace:
         com.apple.driver.AppleACPIPlatform(4.0)[3BE4E926-E063-3BBD-BE05-F6F97358C7A4]@0xffffff7fa20d9000->0xffffff7fa2138fff
            dependency: com.apple.iokit.IOACPIFamily(1.4)[5D7574C3-8E90-3873-BAEB-D979FC215A7D]@0xffffff7fa0649000
            dependency: com.apple.iokit.IOPCIFamily(2.9)[F398CE94-0FBD-3E8E-A7AB-55F7F05A81ED]@0xffffff7f9ff2c000

BSD process name corresponding to current thread: kernel_task

Mac OS version:
15D21

Kernel version:
Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64
Kernel UUID: DECC9F02-27D7-31F0-9599-A9EF2873902C
Kernel slide:     0x000000001f400000
Kernel text base: 0xffffff801f600000
__HIB  text base: 0xffffff801f500000
System model name: MacBookPro11,5 (Mac-06F11F11946D27C5)

System uptime in nanoseconds: 64337593833100
last loaded kext at 60180098452967: com.apple.driver.AppleXsanScheme    3 (addr 0xffffff7fa324d000, size 32768)
last unloaded kext at 60938030299197: com.apple.driver.AppleXsanScheme  3 (addr 0xffffff7fa324d000, size 32768)
loaded kexts:
org.virtualbox.kext.VBoxNetAdp  5.0.10
org.virtualbox.kext.VBoxNetFlt  5.0.10
org.virtualbox.kext.VBoxUSB 5.0.10
org.virtualbox.kext.VBoxDrv 5.0.10
com.apple.filesystems.smbfs 3.0.0
com.apple.driver.AudioAUUC  1.70
com.apple.driver.AGPM   110.20.22
com.apple.driver.ApplePlatformEnabler   2.6.0d0
com.apple.driver.X86PlatformShim    1.0.0
com.apple.filesystems.autofs    3.0
com.apple.driver.AppleOSXWatchdog   1
com.apple.driver.AppleGraphicsDevicePolicy  3.7.7
com.apple.driver.pmtelemetry    1
com.apple.driver.AppleUpstreamUserClient    3.6.1
com.apple.iokit.IOUserEthernet  1.0.1
com.apple.kext.AMDFramebuffer   1.4.0
com.apple.driver.AppleHDA   272.51.3
com.apple.iokit.IOBluetoothSerialManager    4.4.3f4
com.apple.AMDRadeonX4000    1.4.0
com.apple.driver.AppleIntelHD5000Graphics   10.1.2
com.apple.Dont_Steal_Mac_OS_X   7.0.0
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.4.3f4
com.apple.driver.AppleHV    1
com.apple.driver.AppleCameraInterface   5.41.0
com.apple.driver.AppleThunderboltIP 3.0.8
com.apple.driver.AppleIntelFramebufferAzul  10.1.2
com.apple.kext.AMD7000Controller    1.4.0
com.apple.driver.AppleSMCLMU    208
com.apple.driver.AppleMCCSControl   1.2.13
com.apple.driver.AppleLPC   3.1
com.apple.driver.AppleMuxControl    3.12.6
com.apple.driver.AppleIntelSlowAdaptiveClocking 4.0.0
com.apple.driver.AppleUSBCardReader 3.7.1
com.apple.driver.AppleTopCaseHIDEventDriver 86
com.apple.driver.AppleUSBTopCaseDriver  86
com.apple.iokit.IOAHCIBlockStorage  2.8.5
com.apple.driver.AirPort.Brcm4360   1020.17.1a1
com.apple.driver.AppleAHCIPort  3.1.8
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0
com.apple.BootCache 38
com.apple.driver.AppleACPIButtons   4.0
com.apple.driver.AppleSmartBatteryManager   161.0.0
com.apple.driver.AppleRTC   2.0
com.apple.driver.AppleHPET  1.8
com.apple.driver.AppleSMBIOS    2.1
com.apple.driver.AppleACPIEC    4.0
com.apple.driver.AppleAPIC  1.7
com.apple.nke.applicationfirewall   163
com.apple.security.quarantine   3
com.apple.security.TMSafetyNet  8
com.apple.iokit.IOUSBUserClient 900.4.1
com.apple.kext.triggers 1.0
com.apple.driver.DspFuncLib 272.51.3
com.apple.kext.OSvKernDSPLib    525
com.apple.iokit.IOSerialFamily  11
com.apple.iokit.IOSurface   108.0.1
com.apple.iokit.IOBluetoothHostControllerUSBTransport   4.4.3f4
com.apple.iokit.IOBluetoothFamily   4.4.3f4
com.apple.driver.CoreCaptureResponder   1
com.apple.driver.AppleHDAController 272.51.3
com.apple.iokit.IOHDAFamily 272.51.3
com.apple.iokit.IOAudioFamily   204.3
com.apple.vecLib.kext   1.2.0
com.apple.iokit.IOAcceleratorFamily2    205.1
com.apple.kext.AMDSupport   1.4.0
com.apple.AppleGraphicsDeviceControl    3.12.6
com.apple.driver.AppleSMBusController   1.0.14d1
com.apple.driver.AppleBacklightExpert   1.1.0
com.apple.iokit.IONDRVSupport   2.4.1
com.apple.driver.AppleGraphicsControl   3.12.6
com.apple.iokit.IOGraphicsFamily    2.4.1
com.apple.driver.X86PlatformPlugin  1.0.0
com.apple.driver.AppleSMC   3.1.9
com.apple.driver.IOPlatformPluginFamily 6.0.0d7
com.apple.iokit.IOSlowAdaptiveClockingFamily    1.0.0
com.apple.iokit.IOSCSIBlockCommandsDevice   3.7.7
com.apple.iokit.IOUSBMassStorageDriver  1.0.0
com.apple.iokit.IOSCSIArchitectureModelFamily   3.7.7
com.apple.driver.AppleHIDKeyboard   181
com.apple.driver.AppleMultitouchDriver  304.10
com.apple.driver.AppleHIDTransport  5
com.apple.driver.usb.IOUSBHostHIDDevice 1.0.1
com.apple.driver.usb.AppleUSBHostCompositeDevice    1.0.1
com.apple.driver.CoreStorage    517.20.1
com.apple.iokit.IO80211Family   1110.26
com.apple.driver.mDNSOffloadUserClient  1.0.1b8
com.apple.driver.corecapture    1.0.4
com.apple.iokit.IOAHCIFamily    2.8.1
com.apple.driver.usb.AppleUSBXHCIPCI    1.0.1
com.apple.driver.usb.AppleUSBXHCI   1.0.1
com.apple.iokit.IONetworkingFamily  3.2
com.apple.driver.AppleThunderboltDPInAdapter    4.1.3
com.apple.driver.AppleThunderboltDPAdapterFamily    4.1.3
com.apple.driver.AppleThunderboltPCIDownAdapter 2.0.2
com.apple.driver.AppleThunderboltNHI    4.0.4
com.apple.iokit.IOThunderboltFamily 5.1.0
com.apple.iokit.IOUSBFamily 900.4.1
com.apple.iokit.IOUSBHostFamily 1.0.1
com.apple.driver.AppleUSBHostMergeProperties    1.0.1
com.apple.driver.AppleEFINVRAM  2.0
com.apple.driver.AppleEFIRuntime    2.0
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.iokit.IOSMBusFamily   1.1
com.apple.security.sandbox  300.0
com.apple.kext.AppleMatch   1.0.0d1
com.apple.driver.AppleKeyStore  2
com.apple.driver.AppleMobileFileIntegrity   1.0.5
com.apple.driver.AppleCredentialManager 1.0
com.apple.driver.DiskImages 417.2
com.apple.iokit.IOStorageFamily 2.1
com.apple.iokit.IOReportFamily  31
com.apple.driver.AppleFDEKeyStore   28.30
com.apple.driver.AppleACPIPlatform  4.0
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily    1.4
com.apple.kec.Libm  1
com.apple.kec.pthread   1
com.apple.kec.corecrypto    1.0

System Profile:
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x152), Broadcom BCM43xx 1.0 (7.21.94.136.1a1)
Bluetooth: Version 4.4.3f4 16616, 3 services, 27 devices, 1 incoming serial ports
Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533642465238412D50422020
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533642465238412D50422020
USB Device: USB 3.0 Bus
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Bluetooth USB Host Controller
Serial ATA Device: APPLE SSD SM0512G, 500,28 GB
Model: MacBookPro11,5, BootROM MBP114.0172.B07, 4 processors, Intel Core i7, 2,5 GHz, 16 GB, SMC 2.30f2
Network Service: Wi-Fi, AirPort, en0
Graphics: AMD Radeon R9 M370X, AMD Radeon R9 M370X, PCIe, 2048 MB
Graphics: Intel Iris Pro, Intel Iris Pro, Built-In
holys commented 8 years ago

Occurs to me, too

image

Anonymous UUID:       419FF6A4-A502-6384-670A-172EF7A7D6A5

Wed Feb 24 03:44:48 2016

*** Panic Report ***
panic(cpu 0 caller 0xffffff801bbd6bba): Kernel trap at 0xffffff801bbb8f8d, type 6=invalid opcode, registers:
CR0: 0x0000000080010033, CR2: 0x00007fff5843f0e0, CR3: 0x000000001ecf8000, CR4: 0x00000000001627e0
RAX: 0xffffff913957b3f0, RBX: 0xffffff801bbb8f70, RCX: 0x0000000000000001, RDX: 0x0000000000009eaa
RSP: 0xffffff913957b3f0, RBP: 0xffffff913957b400, RSI: 0x0000000000000000, RDI: 0x000000004571b000
R8:  0xffffff801bbb8f70, R9:  0x0000000000000000, R10: 0x0000000000000000, R11: 0x0000000000000000
R12: 0x0000000000000004, R13: 0xffffff802c08fde0, R14: 0xffffff801c2c6540, R15: 0x0000000000000000
RFL: 0x0000000000010086, RIP: 0xffffff801bbb8f8d, CS:  0x0000000000000008, SS:  0x0000000000000000
Fault CR2: 0x00007fff5843f0e0, Error code: 0x0000000000000000, Fault CPU: 0x0, PL: 2

Backtrace (CPU 0), Frame : Return Address
0xffffff913957b080 : 0xffffff801bae5307 
0xffffff913957b100 : 0xffffff801bbd6bba 
0xffffff913957b2e0 : 0xffffff801bbf4313 
0xffffff913957b300 : 0xffffff801bbb8f8d 
0xffffff913957b400 : 0xffffff801bbe0c05 
0xffffff913957b4d0 : 0xffffff801bbb55ef 
0xffffff913957b570 : 0xffffff801bbbd98d 
0xffffff913957b630 : 0xffffff801bbc00d7 
0xffffff913957b650 : 0xffffff801bb92946 
0xffffff913957b670 : 0xffffff801bb90280 
0xffffff913957b790 : 0xffffff801c07d0aa 
0xffffff913957bb90 : 0xffffff801bbe38dd 
0xffffff913957bbd0 : 0xffffff801bbc29fa 
0xffffff913957bc60 : 0xffffff801bbe30c3 
0xffffff913957bcd0 : 0xffffff7f9e48752d 
0xffffff913957bd10 : 0xffffff7f9e48ad79 
0xffffff913957bd30 : 0xffffff801c0d3eef 
0xffffff913957bd90 : 0xffffff801c0fe543 
0xffffff913957be00 : 0xffffff801c0a4f39 
0xffffff913957be60 : 0xffffff801c09cec4 
0xffffff913957bec0 : 0xffffff801c0aa182 
0xffffff913957bf00 : 0xffffff801c0aa2d2 
0xffffff913957bf40 : 0xffffff801c0b53a1 
0xffffff913957bf80 : 0xffffff801c0b559c 
0xffffff913957bfb0 : 0xffffff801bbd15d7 
      Kernel Extensions in backtrace:
         com.apple.driver.AppleACPIPlatform(4.0)[295F7A91-2DF7-3FFE-9550-A0C1A6F9D575]@0xffffff7f9e47c000->0xffffff7f9e4dbfff
            dependency: com.apple.iokit.IOACPIFamily(1.4)[CBAE26D8-0ACB-3C1F-8347-FDCA67EC40B3]@0xffffff7f9c9c7000
            dependency: com.apple.iokit.IOPCIFamily(2.9)[8E5F549E-0055-3C0E-93F8-E872A048E31B]@0xffffff7f9c349000

BSD process name corresponding to current thread: kernel_task

Mac OS version:
15B42

Kernel version:
Darwin Kernel Version 15.0.0: Sat Sep 19 15:53:46 PDT 2015; root:xnu-3247.10.11~1/RELEASE_X86_64
Kernel UUID: AB5FC1B4-12E7-311E-8E6F-9023985D8C1D
Kernel slide:     0x000000001b800000
Kernel text base: 0xffffff801ba00000
__HIB  text base: 0xffffff801b900000
System model name: MacBookPro11,1 (Mac-189A3D4F975D5FFC)

System uptime in nanoseconds: 163326182025719
last loaded kext at 112027842269615: com.apple.driver.AppleUSBMergeNub  900.4.1 (addr 0xffffff7f9e5ba000, size 12288)
last unloaded kext at 80904244121739: com.apple.driver.AppleUSBMergeNub 900.4.1 (addr 0xffffff7f9e5a8000, size 12288)
loaded kexts:
org.pqrs.driver.Karabiner   10.15.0
com.apple.iokit.IOBluetoothUSBDFU   4.4.2f1
com.apple.driver.AppleUSBTCKeyEventDriver   245.4
com.apple.filesystems.smbfs 3.0.0
com.apple.driver.AudioAUUC  1.70
com.apple.driver.AGPM   110.20.21
com.apple.driver.ApplePlatformEnabler   2.5.1d0
com.apple.driver.X86PlatformShim    1.0.0
com.apple.filesystems.autofs    3.0
com.apple.driver.AppleUpstreamUserClient    3.6.1
com.apple.driver.AppleOSXWatchdog   1
com.apple.driver.pmtelemetry    1
com.apple.iokit.IOUserEthernet  1.0.1
com.apple.driver.AppleHDA   272.50.31
com.apple.iokit.IOBluetoothSerialManager    4.4.2f1
com.apple.driver.AppleIntelHD5000Graphics   10.1.0
com.apple.driver.AppleLPC   3.1
com.apple.Dont_Steal_Mac_OS_X   7.0.0
com.apple.driver.AppleHV    1
com.apple.driver.AppleSMCLMU    208
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.4.2f1
com.apple.driver.AppleIntelSlowAdaptiveClocking 4.0.0
com.apple.driver.AppleIntelFramebufferAzul  10.1.0
com.apple.driver.AppleThunderboltIP 3.0.8
com.apple.driver.AppleCameraInterface   5.41.0
com.apple.driver.AppleBacklight 170.8.1
com.apple.driver.AppleMCCSControl   1.2.13
com.apple.driver.AppleUSBCardReader 3.7.1
com.apple.driver.AppleUSBTCButtons  245.4
com.apple.driver.AppleUSBTCKeyboard 245.4
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0
com.apple.BootCache 37
com.apple.iokit.IOAHCIBlockStorage  2.8.0
com.apple.driver.AppleAHCIPort  3.1.5
com.apple.driver.AirPort.Brcm4360   1010.14.1a4
com.apple.driver.AppleRTC   2.0
com.apple.driver.AppleSmartBatteryManager   161.0.0
com.apple.driver.AppleACPIButtons   4.0
com.apple.driver.AppleHPET  1.8
com.apple.driver.AppleSMBIOS    2.1
com.apple.driver.AppleACPIEC    4.0
com.apple.driver.AppleAPIC  1.7
com.apple.nke.applicationfirewall   163
com.apple.security.quarantine   3
com.apple.security.TMSafetyNet  8
com.apple.driver.AppleUSBMergeNub   900.4.1
com.apple.driver.usb.cdc.acm    5.0.0
com.apple.driver.usb.cdc.ecm    5.0.0
com.apple.driver.usb.cdc    5.0.0
com.apple.driver.usb.networking 5.0.0
com.apple.driver.usb.IOUSBHostHIDDevice 1.0.1
com.apple.kext.triggers 1.0
com.apple.driver.DspFuncLib 272.50.31
com.apple.kext.OSvKernDSPLib    525
com.apple.iokit.IOSurface   108.0.1
com.apple.driver.CoreCaptureResponder   1
com.apple.driver.X86PlatformPlugin  1.0.0
com.apple.driver.IOPlatformPluginFamily 6.0.0d7
com.apple.iokit.IOBluetoothHostControllerUSBTransport   4.4.2f1
com.apple.iokit.IOBluetoothFamily   4.4.2f1
com.apple.iokit.IOSlowAdaptiveClockingFamily    1.0.0
com.apple.AppleGraphicsDeviceControl    3.11.33b1
com.apple.iokit.IOAcceleratorFamily2    203.10
com.apple.driver.AppleHDAController 272.50.31
com.apple.iokit.IOHDAFamily 272.50.31
com.apple.iokit.IOAudioFamily   204.1
com.apple.vecLib.kext   1.2.0
com.apple.iokit.IOSerialFamily  11
com.apple.driver.AppleBacklightExpert   1.1.0
com.apple.iokit.IONDRVSupport   2.4.1
com.apple.driver.AppleSMC   3.1.9
com.apple.driver.AppleSMBusController   1.0.14d1
com.apple.iokit.IOGraphicsFamily    2.4.1
com.apple.iokit.IOSCSIBlockCommandsDevice   3.7.7
com.apple.iokit.IOUSBMassStorageDriver  1.0.0
com.apple.iokit.IOSCSIArchitectureModelFamily   3.7.7
com.apple.driver.usb.AppleUSBHub    1.0.1
com.apple.driver.AppleUSBMultitouch 250.4
com.apple.iokit.IOUSBHIDDriver  900.4.1
com.apple.driver.usb.AppleUSBHostCompositeDevice    1.0.1
com.apple.driver.CoreStorage    517
com.apple.iokit.IOAHCIFamily    2.8.0
com.apple.driver.AppleThunderboltDPInAdapter    4.1.2
com.apple.driver.AppleThunderboltDPAdapterFamily    4.1.2
com.apple.driver.AppleThunderboltPCIDownAdapter 2.0.2
com.apple.driver.AppleThunderboltNHI    4.0.4
com.apple.iokit.IOThunderboltFamily 5.0.6
com.apple.iokit.IO80211Family   1101.24
com.apple.driver.mDNSOffloadUserClient  1.0.1b8
com.apple.iokit.IONetworkingFamily  3.2
com.apple.driver.corecapture    1.0.4
com.apple.driver.usb.AppleUSBXHCIPCI    1.0.1
com.apple.driver.usb.AppleUSBXHCI   1.0.1
com.apple.iokit.IOUSBFamily 900.4.1
com.apple.iokit.IOUSBHostFamily 1.0.1
com.apple.driver.AppleUSBHostMergeProperties    1.0.1
com.apple.driver.AppleEFINVRAM  2.0
com.apple.driver.AppleEFIRuntime    2.0
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.iokit.IOSMBusFamily   1.1
com.apple.security.sandbox  300.0
com.apple.kext.AppleMatch   1.0.0d1
com.apple.driver.AppleKeyStore  2
com.apple.driver.AppleMobileFileIntegrity   1.0.5
com.apple.driver.AppleCredentialManager 1.0
com.apple.driver.DiskImages 415
com.apple.iokit.IOStorageFamily 2.1
com.apple.iokit.IOReportFamily  31
com.apple.driver.AppleFDEKeyStore   28.30
com.apple.driver.AppleACPIPlatform  4.0
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily    1.4
com.apple.kec.Libm  1
com.apple.kec.pthread   1
com.apple.kec.corecrypto    1.0
Model: MacBookPro11,1, BootROM MBP111.0138.B16, 2 processors, Intel Core i5, 2.6 GHz, 8 GB, SMC 2.16f68
Graphics: Intel Iris, Intel Iris, Built-In
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x802C, 0x384B54463531323634485A2D314736453120
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x802C, 0x384B54463531323634485A2D314736453120
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x112), Broadcom BCM43xx 1.0 (7.21.94.29.1a4)
Bluetooth: Version 4.4.2f1 16391, 3 services, 27 devices, 1 incoming serial ports
Network Service: USB 10/100/1000 LAN, Ethernet, en7
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SD0128F, 121.33 GB
USB Device: USB 3.0 Bus
USB Device: USB3.0 Hub
USB Device: USB 10/100/1000 LAN
USB Device: Apple Internal Keyboard / Trackpad
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: USB2.0 Hub
USB Device: Hub
USB Device: HHKB Professional
USB Device: USB Optical Mouse
Thunderbolt Bus: MacBook Pro, Apple Inc., 17.2
fifsky commented 8 years ago

me too Mac OS X Version 10.11.3

Anonymous UUID:       45B9EF33-CC30-8AA0-B49E-5A701A7FEF5E

Tue Feb 23 21:36:29 2016

*** Panic Report ***
panic(cpu 0 caller 0xffffff8003fd255a): Kernel trap at 0xffffff8003fb48ed, type 6=invalid opcode, registers:
CR0: 0x0000000080010033, CR2: 0x00007fff55237cc0, CR3: 0x0000000007688000, CR4: 0x00000000001627e0
RAX: 0xffffff81ef69b3d0, RBX: 0x0000000000000008, RCX: 0x0000000000000001, RDX: 0x0000000000000011
RSP: 0xffffff81ef69b3d0, RBP: 0xffffff81ef69b3e0, RSI: 0x0000000000000000, RDI: 0x0000000413b3d000
R8:  0xffffff8003fb48d0, R9:  0x0000000413b3d000, R10: 0x0000000000000000, R11: 0x0000000000000000
R12: 0x0000000000000008, R13: 0x0000000000000000, R14: 0x0000000000000000, R15: 0x0000000000000000
RFL: 0x0000000000010082, RIP: 0xffffff8003fb48ed, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0x00007fff55237cc0, Error code: 0x0000000000000000, Fault CPU: 0x0, PL: 2

Backtrace (CPU 0), Frame : Return Address
0xffffff81ef69b060 : 0xffffff8003edf792 
0xffffff81ef69b0e0 : 0xffffff8003fd255a 
0xffffff81ef69b2c0 : 0xffffff8003ff0233 
0xffffff81ef69b2e0 : 0xffffff8003fb48ed 
0xffffff81ef69b3e0 : 0xffffff8003fdc769 
0xffffff81ef69b4d0 : 0xffffff8003fb0d12 
0xffffff81ef69b570 : 0xffffff8003fb92ed 
0xffffff81ef69b630 : 0xffffff8003fbba57 
0xffffff81ef69b650 : 0xffffff8003f8e0a6 
0xffffff81ef69b670 : 0xffffff8003f8b9e0 
0xffffff81ef69b790 : 0xffffff800447ca6a 
0xffffff81ef69bb90 : 0xffffff8003fdf7fd 
0xffffff81ef69bbd0 : 0xffffff8003fbe37a 
0xffffff81ef69bc60 : 0xffffff8003fdefe3 
0xffffff81ef69bcd0 : 0xffffff7f86e2852d 
0xffffff81ef69bd10 : 0xffffff7f86e2bd79 
0xffffff81ef69bd30 : 0xffffff80044d38ff 
0xffffff81ef69bd90 : 0xffffff80044fe9e6 
0xffffff81ef69be00 : 0xffffff80044a48f9 
0xffffff81ef69be60 : 0xffffff800449c884 
0xffffff81ef69bec0 : 0xffffff80044a9b42 
0xffffff81ef69bf00 : 0xffffff80044a9c92 
0xffffff81ef69bf40 : 0xffffff80044b4d61 
0xffffff81ef69bf80 : 0xffffff80044b4f5c 
0xffffff81ef69bfb0 : 0xffffff8003fccf77 
      Kernel Extensions in backtrace:
         com.apple.driver.AppleACPIPlatform(4.0)[3BE4E926-E063-3BBD-BE05-F6F97358C7A4]@0xffffff7f86e1d000->0xffffff7f86e7cfff
            dependency: com.apple.iokit.IOACPIFamily(1.4)[5D7574C3-8E90-3873-BAEB-D979FC215A7D]@0xffffff7f85302000
            dependency: com.apple.iokit.IOPCIFamily(2.9)[F398CE94-0FBD-3E8E-A7AB-55F7F05A81ED]@0xffffff7f8472c000

BSD process name corresponding to current thread: kernel_task
Boot args: rootless=0

Mac OS version:
15D21

Kernel version:
Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64
Kernel UUID: DECC9F02-27D7-31F0-9599-A9EF2873902C
Kernel slide:     0x0000000003c00000
Kernel text base: 0xffffff8003e00000
__HIB  text base: 0xffffff8003d00000
System model name: MacBookPro11,3 (Mac-2BD1B31983FE1663)

System uptime in nanoseconds: 32644632466939
last loaded kext at 23242595405228: com.apple.driver.AppleXsanScheme    3 (addr 0xffffff7f86fd3000, size 32768)
last unloaded kext at 23312192452327: com.apple.driver.AppleXsanScheme  3 (addr 0xffffff7f86fd3000, size 32768)
loaded kexts:
com.parallels.kext.vnic 10.3.0 29227
com.parallels.kext.netbridge    10.3.0 29227
com.parallels.kext.hypervisor   10.3.0 29227
com.parallels.kext.usbconnect   10.3.0 29227
org.virtualbox.kext.VBoxNetAdp  5.0.8
org.virtualbox.kext.VBoxNetFlt  5.0.8
org.virtualbox.kext.VBoxUSB 5.0.8
org.virtualbox.kext.VBoxDrv 5.0.8
com.apple.filesystems.smbfs 3.0.0
com.apple.driver.AppleMikeyHIDDriver    124
com.apple.driver.AppleHWSensor  1.9.5d0
com.apple.filesystems.autofs    3.0
com.apple.driver.AudioAUUC  1.70
com.apple.driver.AGPM   110.20.22
com.apple.driver.ApplePlatformEnabler   2.6.0d0
com.apple.driver.X86PlatformShim    1.0.0
com.apple.driver.AppleOSXWatchdog   1
com.apple.driver.AppleGraphicsDevicePolicy  3.7.7
com.apple.driver.AppleHDA   272.51.3
com.apple.driver.AppleUpstreamUserClient    3.6.1
com.apple.driver.pmtelemetry    1
com.apple.iokit.IOUserEthernet  1.0.1
com.apple.GeForce   10.0.8
com.apple.iokit.IOBluetoothSerialManager    4.4.3f4
com.apple.driver.AppleIntelHD5000Graphics   10.1.2
com.apple.Dont_Steal_Mac_OS_X   7.0.0
com.apple.driver.AppleMuxControl    3.12.6
com.apple.driver.AppleHV    1
com.apple.driver.AppleThunderboltIP 3.0.8
com.apple.driver.AppleSMCLMU    208
com.apple.driver.AppleMCCSControl   1.2.13
com.apple.driver.AppleLPC   3.1
com.apple.driver.AppleCameraInterface   5.41.0
com.apple.driver.AppleIntelFramebufferAzul  10.1.2
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.4.3f4
com.apple.driver.AppleIntelSlowAdaptiveClocking 4.0.0
com.apple.driver.AppleUSBCardReader 3.7.1
com.apple.driver.AppleUSBTCButtons  245.4
com.apple.driver.AppleUSBTCKeyboard 245.4
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0
com.apple.BootCache 38
com.apple.iokit.IOAHCIBlockStorage  2.8.5
com.apple.driver.AppleAHCIPort  3.1.8
com.apple.driver.AirPort.Brcm4360   1020.17.1a1
com.apple.driver.AppleSmartBatteryManager   161.0.0
com.apple.driver.AppleACPIButtons   4.0
com.apple.driver.AppleRTC   2.0
com.apple.driver.AppleHPET  1.8
com.apple.driver.AppleSMBIOS    2.1
com.apple.driver.AppleACPIEC    4.0
com.apple.driver.AppleAPIC  1.7
com.apple.nke.applicationfirewall   163
com.apple.security.quarantine   3
com.apple.security.TMSafetyNet  8
com.apple.driver.usb.IOUSBHostHIDDevice 1.0.1
com.apple.iokit.IOUSBUserClient 900.4.1
com.apple.kext.triggers 1.0
com.apple.driver.DspFuncLib 272.51.3
com.apple.kext.OSvKernDSPLib    525
com.apple.nvidia.driver.NVDAGK100Hal    10.0.8
com.apple.nvidia.driver.NVDAResman  10.0.8
com.apple.iokit.IOSerialFamily  11
com.apple.iokit.IOSurface   108.0.1
com.apple.driver.AppleBacklightExpert   1.1.0
com.apple.iokit.IONDRVSupport   2.4.1
com.apple.driver.AppleGraphicsControl   3.12.6
com.apple.driver.CoreCaptureResponder   1
com.apple.driver.AppleHDAController 272.51.3
com.apple.iokit.IOHDAFamily 272.51.3
com.apple.iokit.IOAudioFamily   204.3
com.apple.vecLib.kext   1.2.0
com.apple.driver.AppleSMBusController   1.0.14d1
com.apple.AppleGraphicsDeviceControl    3.12.6
com.apple.iokit.IOAcceleratorFamily2    205.1
com.apple.iokit.IOGraphicsFamily    2.4.1
com.apple.driver.X86PlatformPlugin  1.0.0
com.apple.driver.AppleSMC   3.1.9
com.apple.driver.IOPlatformPluginFamily 6.0.0d7
com.apple.iokit.IOBluetoothHostControllerUSBTransport   4.4.3f4
com.apple.iokit.IOBluetoothFamily   4.4.3f4
com.apple.iokit.IOSlowAdaptiveClockingFamily    1.0.0
com.apple.iokit.IOSCSIBlockCommandsDevice   3.7.7
com.apple.iokit.IOUSBMassStorageDriver  1.0.0
com.apple.iokit.IOSCSIArchitectureModelFamily   3.7.7
com.apple.driver.usb.AppleUSBHub    1.0.1
com.apple.driver.AppleUSBMultitouch 250.5
com.apple.iokit.IOUSBHIDDriver  900.4.1
com.apple.driver.usb.AppleUSBHostCompositeDevice    1.0.1
com.apple.driver.CoreStorage    517.20.1
com.apple.iokit.IOAHCIFamily    2.8.1
com.apple.driver.AppleThunderboltDPInAdapter    4.1.3
com.apple.driver.AppleThunderboltDPAdapterFamily    4.1.3
com.apple.driver.AppleThunderboltPCIDownAdapter 2.0.2
com.apple.driver.AppleThunderboltNHI    4.0.4
com.apple.iokit.IOThunderboltFamily 5.1.0
com.apple.iokit.IO80211Family   1110.26
com.apple.driver.mDNSOffloadUserClient  1.0.1b8
com.apple.iokit.IONetworkingFamily  3.2
com.apple.driver.corecapture    1.0.4
com.apple.driver.usb.AppleUSBXHCIPCI    1.0.1
com.apple.driver.usb.AppleUSBXHCI   1.0.1
com.apple.iokit.IOUSBFamily 900.4.1
com.apple.iokit.IOUSBHostFamily 1.0.1
com.apple.driver.AppleUSBHostMergeProperties    1.0.1
com.apple.driver.AppleEFINVRAM  2.0
com.apple.driver.AppleEFIRuntime    2.0
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.iokit.IOSMBusFamily   1.1
com.apple.security.sandbox  300.0
com.apple.kext.AppleMatch   1.0.0d1
com.apple.driver.AppleKeyStore  2
com.apple.driver.AppleMobileFileIntegrity   1.0.5
com.apple.driver.AppleCredentialManager 1.0
com.apple.driver.DiskImages 417.2
com.apple.iokit.IOStorageFamily 2.1
com.apple.iokit.IOReportFamily  31
com.apple.driver.AppleFDEKeyStore   28.30
com.apple.driver.AppleACPIPlatform  4.0
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily    1.4
com.apple.kec.Libm  1
com.apple.kec.pthread   1
com.apple.kec.corecrypto    1.0
fifsky commented 8 years ago

Yesterday I upgraded the virtualbox and its extension, no crash today

philidem commented 8 years ago

I've been experiencing the same OS X crashes after I installed DLite (which uses xyhve).

Has anyone tried using sleepwatcher which allows you to run a script before sleep and after wakeup? I'm thinking about using this to run dlite stop before sleep and dlite start after wake.

mhubig commented 8 years ago

@philidem Could be a nice workaround for now, thanks for the hint!

mhubig commented 8 years ago

This fixes the crashes for me ... works line a charm!

$ brew install sleepwatcher
$ ln -sfv ~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist
$ launchctl load ~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist
$ cat << EOF > ~/.sleep
#!/bin/sh
/usr/local/bin/dlite stop
EOF
$ cat << EOF > ~/.wakeup
#!/bin/sh
/usr/local/bin/dlite start
EOF
$ chmod +x ~/.sleep ~/.wakeup
philidem commented 8 years ago

I've been running DLite/xhyve with sleepwatcher configured similar to how @mhubig described and it does prevent the OS X crash. Only downside is that it will stop the VM so hopefully this is just a temporary workaround (better than crashing OS though).

cmosetick commented 8 years ago

@philidem @mhubig Thanks for the tip on sleepwatcher! I had to slightly modify mhubig's instructions, regarding the symlink and I checked for the sleepwatcher service to be running.

Here is what I did:

brew install sleepwatcher
ln -s /usr/local/Cellar/sleepwatcher/2.2/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist \
~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist

ls -la ~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist

launchctl load ~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist

launchctl list | grep sleep

cat << EOF > ~/.sleep
#!/bin/sh
/usr/local/bin/dlite stop
EOF

cat << EOF > ~/.wakeup
#!/bin/sh
/usr/local/bin/dlite start
EOF

chmod +x ~/.sleep ~/.wakeup
zackhsi commented 8 years ago

FWIW, I've upgraded to OSX 10.11.4 Beta (15E61b) and this issue has disappeared.

:pray:

philidem commented 8 years ago

@zackhsi thank you for the tip! I just installed OSX 10.11.4 Beta and now I am hoping that the issue is resolved as well.

philidem commented 8 years ago

Upgrading to OSX 10.11.4 Beta fixed the problem for me. Thanks again for the suggestion!