sourcegraph / go-langserver

Go language server to add Go support to editors and other tools that use the Language Server Protocol (LSP)
https://sourcegraph.com
MIT License
1.17k stars 89 forks source link

Panic crash of OSX after using go-langserver with vscode #336

Closed huttarichard closed 6 years ago

huttarichard commented 6 years ago

I used go-langserver for a while. But last week or so go-langserver used excessive amount of CPU and has been pain to work with. This afternoon I was working on project and suddenly mac crashed.

So I opened crash report and I found that go-langserver crashed my system. I lost all my recent unsaved changes in go.

Version:

$ go-langserver --version                                                                                                            
v3-dev

$ code --version
1.28.2
7f3ce96ff4729c91352ae6def877e59c561f4850
x64

Take a look on crash report:

Anonymous UUID:       A9C79F5E-9314-59AC-F1ED-F06039E8AA73

Sat Nov  3 13:58:52 2018

*** Panic Report ***
panic(cpu 5 caller 0xffffff801c36a296): "compressed PTE 0xfffffeaf3642b810 0xc000000000000000 has extra bits 0x8000000000000000: corrupted?"@/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-4570.71.2/osfmk/i386/pmap_x86_common.c:594
Backtrace (CPU 5), Frame : Return Address
0xffffff924585b800 : 0xffffff801c26c1c6 
0xffffff924585b850 : 0xffffff801c395274 
0xffffff924585b890 : 0xffffff801c387544 
0xffffff924585b900 : 0xffffff801c21e1e0 
0xffffff924585b920 : 0xffffff801c26bc3c 
0xffffff924585ba50 : 0xffffff801c26b9fc 
0xffffff924585bab0 : 0xffffff801c36a296 
0xffffff924585bc10 : 0xffffff801c2eca36 
0xffffff924585bd70 : 0xffffff801c2ee245 
0xffffff924585bf10 : 0xffffff801c387ad2 
0xffffff924585bfa0 : 0xffffff801c21e0f2 

BSD process name corresponding to current thread: go-langserver

Mac OS version:
17G65

Kernel version:
Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64
Kernel UUID: 1AE5ACFD-3B6F-3D74-AD52-31F1430DBC6F
Kernel slide:     0x000000001c000000
Kernel text base: 0xffffff801c200000
__HIB  text base: 0xffffff801c100000
System model name: MacBookPro14,3 (Mac-551B86E5744E2388)

System uptime in nanoseconds: 4360370796047353
last loaded kext at 4086095554945295: com.apple.driver.DiskImages.SparseDiskImage   480.60.1 (addr 0xffffff7f9f44d000, size 16384)
last unloaded kext at 313882400573: com.apple.driver.AppleXsanScheme    3 (addr 0xffffff7f9ddae000, size 40960)
loaded kexts:
com.google.dfsfuse.filesystems.dfsfuse  3.7.4
com.Sonarworks.driver.TrueFi    1.8.7
com.apple.driver.DiskImages.SparseDiskImage 480.60.1
com.apple.driver.DiskImages.ReadWriteDiskImage  480.60.1
com.apple.driver.DiskImages.CryptoEncoding  480.60.1
com.apple.driver.DiskImages.UDIFDiskImage   480.60.1
com.apple.driver.DiskImages.HTTPBackingStore    480.60.1
com.apple.driver.DiskImages.RAMBackingStore 480.60.1
com.apple.driver.DiskImages.FileBackingStore    480.60.1
com.apple.filesystems.msdosfs   1.10
com.apple.driver.usb.AppleUSBHostBillboardDevice    1.0
com.apple.filesystems.ntfs  3.13
com.apple.iokit.SCSITaskUserClient  404.30.2
com.apple.macos.driver.AppleUSBEthernetHost 8.1.1
com.apple.nke.rvi   2.0.0
com.apple.driver.AppleUSBTopCaseDriver  133
com.apple.driver.AppleMikeyHIDDriver    131
com.apple.kext.AMDFramebuffer   1.6.8
com.apple.kext.AMDRadeonX4000   1.6.8
com.apple.driver.AudioAUUC  1.70
com.apple.driver.AppleGraphicsDevicePolicy  3.20.13
com.apple.AGDCPluginDisplayMetrics  3.20.13
com.apple.driver.AppleHV    1
com.apple.iokit.IOUserEthernet  1.0.1
com.apple.iokit.IOBluetoothSerialManager    6.0.7f10
com.apple.driver.pmtelemetry    1
com.apple.driver.AppleUpstreamUserClient    3.6.5
com.apple.driver.AGPM   110.23.37
com.apple.driver.ApplePlatformEnabler   2.7.0d0
com.apple.driver.X86PlatformShim    1.0.0
com.apple.Dont_Steal_Mac_OS_X   7.0.0
com.apple.driver.AGDCBacklightControl   3.20.13
com.apple.driver.AppleIntelKBLGraphics  10.3.6
com.apple.driver.AppleHDA   281.52
com.apple.kext.AMD9500Controller    1.6.8
com.apple.driver.AppleThunderboltIP 3.1.1
com.apple.driver.eficheck   1
com.apple.driver.AppleGFXHDA    100.1.17
com.apple.driver.AirPort.BrcmNIC    1241.31.1a9
com.apple.driver.AppleIntelPCHPMC   2.0.1
com.apple.driver.AppleIntelSlowAdaptiveClocking 4.0.0
com.apple.driver.AppleMCCSControl   1.5.5
com.apple.driver.AppleEmbeddedOSSupportHost 1
com.apple.driver.SMCMotionSensor    3.0.4d1
com.apple.driver.AppleMuxControl    3.20.13
com.apple.driver.AppleOSXWatchdog   1
com.apple.driver.AppleIntelKBLGraphicsFramebuffer   10.3.6
com.apple.filesystems.autofs    3.0
com.apple.driver.AppleHIDALSService 1
com.apple.filesystems.hfs.kext  407.50.6
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.BootCache 40
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0
com.apple.AppleSystemPolicy 1.0
com.apple.driver.AppleTopCaseHIDEventDriver 133
com.apple.filesystems.apfs  748.51.0
com.apple.driver.AppleSmartBatteryManager   161.0.0
com.apple.driver.AppleACPIButtons   6.1
com.apple.driver.AppleRTC   2.0
com.apple.driver.AppleSMBIOS    2.1
com.apple.driver.AppleACPIEC    6.1
com.apple.driver.AppleAPIC  1.7
com.apple.nke.applicationfirewall   183
com.apple.security.TMSafetyNet  8
com.apple.security.quarantine   3
com.apple.driver.DiskImages.KernelBacked    480.60.1
com.apple.driver.AppleUSBAudio  312.6
com.apple.driver.usb.cdc.acm    5.0.0
com.apple.driver.usb.cdc.ecm    5.0.0
com.apple.driver.AppleUSBMergeNub   900.4.1
com.apple.driver.AppleXsanScheme    3
com.apple.kext.AMDRadeonX4100HWLibs 1.0
com.apple.kext.AMDRadeonX4000HWServices 1.6.8
com.apple.iokit.IOAVBFamily 680.2
com.apple.plugin.IOgPTPPlugin   680.15
com.apple.iokit.IOEthernetAVBController 1.1.0
com.apple.driver.AppleSSE   1.0
com.apple.driver.DspFuncLib 281.52
com.apple.kext.OSvKernDSPLib    526
com.apple.AppleGPUWrangler  3.20.13
com.apple.driver.AppleBacklightExpert   1.1.0
com.apple.driver.AppleHDAController 281.52
com.apple.iokit.IOHDAFamily 281.52
com.apple.iokit.IOAudioFamily   206.5
com.apple.vecLib.kext   1.2.0
com.apple.iokit.IONDRVSupport   519.20
com.apple.iokit.IO80211Family   1200.12.2
com.apple.driver.mDNSOffloadUserClient  1.0.1b8
com.apple.driver.corecapture    1.0.4
com.apple.iokit.IOBluetoothHostControllerUARTTransport  6.0.7f10
com.apple.iokit.IOBluetoothHostControllerTransport  6.0.7f10
com.apple.driver.AppleIntelLpssUARTv1   3.0.60
com.apple.driver.AppleIntelLpssUARTCommon   3.0.60
com.apple.driver.AppleOnboardSerial 1.0
com.apple.iokit.IOSkywalkFamily 1
com.apple.iokit.IOSerialFamily  11
com.apple.iokit.IOSlowAdaptiveClockingFamily    1.0.0
com.apple.driver.AppleSMBusController   1.0.18d1
com.apple.driver.AppleGraphicsControl   3.20.13
com.apple.kext.AMDSupport   1.6.8
com.apple.AppleGraphicsDeviceControl    3.20.13
com.apple.iokit.IOAcceleratorFamily2    378.26
com.apple.iokit.IOGraphicsFamily    519.20
com.apple.iokit.IOSurface   211.15
com.apple.driver.X86PlatformPlugin  1.0.0
com.apple.driver.IOPlatformPluginFamily 6.0.0d8
com.apple.kext.triggers 1.0
com.apple.driver.usb.IOUSBHostHIDDevice 1.2
com.apple.driver.usb.cdc.ncm    5.0.0
com.apple.driver.usb.AppleUSBiBridge    1.0
com.apple.driver.usb.cdc    5.0.0
com.apple.driver.usb.networking 5.0.0
com.apple.driver.usb.AppleUSBHostCompositeDevice    1.2
com.apple.driver.usb.AppleUSBHub    1.2
com.apple.driver.AppleUSBHostMergeProperties    1.2
com.apple.filesystems.hfs.encodings.kext    1
com.apple.driver.AppleActuatorDriver    1404.4
com.apple.driver.AppleHIDKeyboard   205
com.apple.driver.AppleHSBluetoothDriver 133
com.apple.driver.IOBluetoothHIDDriver   6.0.7f10
com.apple.iokit.IOBluetoothFamily   6.0.7f10
com.apple.driver.AppleMultitouchDriver  1404.4
com.apple.driver.AppleInputDeviceSupport    1404.3
com.apple.driver.AppleHSSPIHIDDriver    53
com.apple.driver.AppleHSSPISupport  53
com.apple.driver.AppleIntelLpssSpiController    3.0.60
com.apple.driver.AppleThunderboltDPInAdapter    5.5.5
com.apple.driver.AppleThunderboltDPAdapterFamily    5.5.5
com.apple.driver.AppleThunderboltPCIDownAdapter 2.1.3
com.apple.iokit.IONVMeFamily    2.1.0
com.apple.driver.AppleThunderboltNHI    4.7.2
com.apple.driver.AppleHPM   3.1.3
com.apple.iokit.IOThunderboltFamily 6.7.8
com.apple.driver.AppleIntelLpssI2CController    3.0.60
com.apple.driver.AppleIntelLpssDmac 3.0.60
com.apple.driver.AppleIntelLpssI2C  3.0.60
com.apple.driver.AppleIntelLpssGspi 3.0.60
com.apple.driver.usb.AppleUSBXHCIPCI    1.2
com.apple.driver.usb.AppleUSBXHCI   1.2
com.apple.driver.usb.AppleUSBHostPacketFilter   1.0
com.apple.iokit.IOUSBFamily 900.4.1
com.apple.driver.AppleEFINVRAM  2.1
com.apple.driver.AppleEFIRuntime    2.1
com.apple.iokit.IOSMBusFamily   1.1
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.security.sandbox  300.0
com.apple.kext.AppleMatch   1.0.0d1
com.apple.driver.DiskImages 480.60.1
com.apple.driver.AppleFDEKeyStore   28.30
com.apple.driver.AppleEffaceableStorage 1.0
com.apple.driver.AppleKeyStore  2
com.apple.driver.AppleUSBTDM    439.70.3
com.apple.driver.AppleMobileFileIntegrity   1.0.5
com.apple.iokit.IOUSBMassStorageDriver  140.70.2
com.apple.iokit.IOSCSIBlockCommandsDevice   404.30.2
com.apple.iokit.IOSCSIArchitectureModelFamily   404.30.2
com.apple.iokit.IOStorageFamily 2.1
com.apple.driver.AppleCredentialManager 1.0
com.apple.driver.KernelRelayHost    1
com.apple.iokit.IOUSBHostFamily 1.2
com.apple.driver.usb.AppleUSBCommon 1.0
com.apple.driver.AppleBusPowerController    1.0
com.apple.driver.AppleSEPManager    1.0.1
com.apple.driver.IOSlaveProcessor   1
com.apple.iokit.IOTimeSyncFamily    680.15
com.apple.iokit.IONetworkingFamily  3.4
com.apple.iokit.IOReportFamily  31
com.apple.driver.AppleACPIPlatform  6.1
com.apple.driver.AppleSMC   3.1.9
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily    1.4
com.apple.kec.pthread   1
com.apple.kec.Libm  1
com.apple.kec.corecrypto    1.0

EOF
Model: MacBookPro14,3, BootROM MBP143.0178.B00, 4 processors, Intel Core i7, 2,9 GHz, 16 GB, SMC 2.45f0
Graphics: Intel HD Graphics 630, Intel HD Graphics 630, Built-In
Graphics: Radeon Pro 560, Radeon Pro 560, PCIe
Memory Module: BANK 0/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
Memory Module: BANK 1/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x173), Broadcom BCM43xx 1.0 (7.77.37.31.1a9)
Bluetooth: Version 6.0.7f10, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB 3.0 Bus
USB Device: iBridge
USB Device: USB2.0 Hub
USB Device: Magic Keyboard with Numeric Keypad
USB Device: USB-C Digital AV Multiport Adapter
USB Device: USB3.0 Hub
Thunderbolt Bus: MacBook Pro, Apple Inc., 33.1
Thunderbolt Bus: MacBook Pro, Apple Inc., 33.1
huttarichard commented 6 years ago

Related issue #209

grazimdeoliveira commented 6 years ago

😈

keegancsmith commented 6 years ago

Sorry that it crashed your system. This is a side-effect of https://github.com/sourcegraph/go-langserver/issues/209 so marking as duplicate.