Hau-Hau / firefox-tab-suspender

A Firefox extension that automatic suspend tabs and saves memory
Other
15 stars 2 forks source link

Recurring Kernel Panic #79

Open SolidStill opened 4 years ago

SolidStill commented 4 years ago

Frequent kernel panics since installing the Tab Suspender Firefox addon. Thread backtrace identifies the corresponding BSD process as 'plugin-container' - which, in combination with the timing of the installation and subsequent panics, makes me fairly confident that this addon is the issue.

Note that 'AAA.LoadEarly.MouSSE' is the kernel extension in the backtrace (see crash report below) - this is a special kernel extension installed by "macOS Patcher" (This allows the installation of newer macOS versions on older unsupported macs)

Here's the full crash report:

Anonymous UUID:       3F1E9C15-F6FE-66E6-570C-B107A10CF4EF

Thu Apr  9 22:11:16 2020

*** Panic Report ***
panic(cpu 0 caller 0xffffff800fcdbadd): Kernel trap at 0xffffff7f90678e00, type 6=invalid opcode, registers:
CR0: 0x0000000080010033, CR2: 0x00003217086bffe4, CR3: 0x00000000a993c000, CR4: 0x00000000000026e0
RAX: 0xfff8800000000006, RBX: 0x00003217086d3340, RCX: 0x0000000000002042, RDX: 0x0000000000000001
RSP: 0xfffff6b280080130, RBP: 0x00007ffee2b45ee8, RSI: 0x0000000000000028, RDI: 0x0000000000000006
R8:  0x0000002f00000202, R9:  0x0000000000000030, R10: 0x000008345881c600, R11: 0x000000000001fff1
R12: 0x0000000000000008, R13: 0x00007ffee2b467d8, R14: 0x0000000123a84000, R15: 0x000468a78b450b0f
RFL: 0x0000000000010083, RIP: 0xffffff7f90678e00, CS:  0x0000000000000008, SS:  0x0000000000000000
Fault CR2: 0x00003217086bffe4, Error code: 0x0000000000000000, Fault CPU: 0x0, PL: 0, VF: 0

Backtrace (CPU 0), Frame : Return Address
0xffffff800f97fcd0 : 0xffffff800fbae6ed 
0xffffff800f97fd20 : 0xffffff800fcea185 
0xffffff800f97fd60 : 0xffffff800fcdb8ba 
0xffffff800f97fdd0 : 0xffffff800fb5bb40 
0xffffff800f97fdf0 : 0xffffff800fbae107 
0xffffff800f97ff10 : 0xffffff800fbadf53 
0xffffff800f97ff80 : 0xffffff800fcdbadd 
0xffffff800f9800f0 : 0xffffff800fb5bb40 
0xffffff800f980110 : 0xffffff7f90678e00 
No mapping exists for frame pointer
Backtrace terminated-invalid frame pointer 0x7ffee2b45ee8
      Kernel Extensions in backtrace:
         AAA.LoadEarly.MouSSE(0.38)[7DDA536B-57F7-33B2-A5DC-7ABB923F9C59]@0xffffff7f90678000->0xffffff7f9067cfff

BSD process name corresponding to current thread: plugin-container
Boot args: -no_compat_check

Mac OS version:
18G103

Kernel version:
Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64
Kernel UUID: C41337A1-0EC3-3896-A954-A1F85E849D53
Kernel slide:     0x000000000f800000
Kernel text base: 0xffffff800fa00000
__HIB  text base: 0xffffff800f900000
System model name: MacBookPro5,2 (Mac-F2268EC8)

System uptime in nanoseconds: 6451184181774
last loaded kext at 6399054906047: com.apple.driver.AppleXsanScheme 3 (addr 0xffffff7f92f30000, size 32768)
last unloaded kext at 518199632336: com.apple.filesystems.msdosfs   1.10 (addr 0xffffff7f92f30000, size 61440)
loaded kexts:
org.pqrs.driver.Karabiner.VirtualHIDDevice.v061000  6.10.0
AAA.LoadEarly.MouSSE    0.38
com.parrotgeek.SIPManager   1
com.apple.filesystems.smbfs 3.3.2
com.apple.driver.AudioAUUC  1.70
com.apple.fileutil  20.036.15
com.apple.driver.AppleHWSensor  1.9.5d0
com.apple.filesystems.autofs    3.0
com.apple.driver.AGPM   110.23.46
com.apple.driver.AppleMikeyHIDDriver    131
com.apple.driver.AppleMikeyDriver   281.52
com.apple.driver.AGDCBacklightControl   3.50.12
com.apple.driver.AppleHDA   281.52
com.apple.AGDCPluginDisplayMetrics  3.28.4
com.apple.driver.AppleUpstreamUserClient    3.6.5
com.apple.driver.AppleHV    1
com.apple.iokit.IOUserEthernet  1.0.1
com.apple.iokit.IOBluetoothSerialManager    6.0.14d3
com.apple.driver.pmtelemetry    1
com.apple.Dont_Steal_Mac_OS_X   7.0.0
com.apple.driver.AppleIntelSlowAdaptiveClocking 4.0.0
com.apple.GeForceTesla  10.0.4
com.apple.driver.AppleMCCSControl   1.5.6
com.apple.driver.AppleMuxControl    3.28.4
com.apple.driver.SMCMotionSensor    3.0.4d1
com.apple.driver.AppleLPC   3.1
com.apple.driver.AppleOSXWatchdog   1
com.apple.driver.AppleSMCLMU    212
com.apple.driver.ACPI_SMC_PlatformPlugin    1.0.0
com.apple.driver.AppleUSBTCButtons  255
com.apple.driver.AppleUSBTCKeyboard 255
com.apple.driver.AppleIRController  354
com.apple.filesystems.apfs  945.275.7
com.apple.driver.AppleVirtIO    2.1.3
com.apple.filesystems.hfs.kext  407.200.4
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.iokit.SCSITaskUserClient  408.250.3
com.apple.private.KextAudit 1.0
com.apple.driver.AppleFWOHCI    5.6.0
com.apple.driver.AirPort.Brcm4331   800.21.31
com.apple.driver.AppleAHCIPort  329.260.5
com.apple.nvenet    2.0.22
com.apple.driver.AppleRTC   2.0
com.apple.driver.AppleHPET  1.8
com.apple.driver.AppleSmartBatteryManager   161.0.0
com.apple.driver.AppleACPIButtons   6.1
com.apple.driver.AppleSMBIOS    2.1
com.apple.driver.AppleACPIEC    6.1
com.apple.driver.AppleAPIC  1.7
com.apple.driver.AppleIntelCPUPowerManagementClient 220.0.0
com.apple.nke.applicationfirewall   201
com.apple.security.TMSafetyNet  8
com.apple.driver.AppleIntelCPUPowerManagement   220.0.0
com.apple.driver.AppleXsanScheme    3
com.apple.kext.triggers 1.0
com.apple.driver.DspFuncLib 281.52
com.apple.kext.OSvKernDSPLib    528
com.apple.iokit.IOAVBFamily 760.6
com.apple.plugin.IOgPTPPlugin   740.2
com.apple.iokit.IOEthernetAVBController 1.1.0
com.apple.iokit.IOSkywalkFamily 1
com.apple.driver.AppleBacklightExpert   1.1.0
com.apple.driver.AppleSSE   1.0
com.apple.iokit.IOSurface   255.6.1
com.apple.AppleGPUWrangler  3.28.4
com.apple.iokit.IOSlowAdaptiveClockingFamily    1.0.0
com.apple.nvidia.classic.NVDANV50HalTesla   10.0.4
com.apple.driver.AppleSMBusController   1.0.18d1
com.apple.driver.AppleHDAController 281.52
com.apple.iokit.IOHDAFamily 281.52
com.apple.AppleGraphicsDeviceControl    3.28.4
com.apple.driver.AppleGraphicsControl   3.28.4
com.apple.iokit.IOFireWireIP    2.3.0
com.apple.driver.IOPlatformPluginLegacy 1.0.0
com.apple.driver.IOPlatformPluginFamily 6.0.0d8
com.apple.nvidia.classic.NVDAResmanTesla    10.0.4
com.apple.driver.AppleSMBusPCI  1.0.14d1
com.apple.iokit.IONDRVSupport   519.15
com.apple.iokit.IOGraphicsFamily    519.15
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 6.0.14d3
com.apple.iokit.IOBluetoothHostControllerUSBTransport   6.0.14d3
com.apple.iokit.IOBluetoothHostControllerTransport  6.0.14d3
com.apple.iokit.IOBluetoothFamily   6.0.14d3
com.apple.driver.AppleUSBMultitouch 263
com.apple.driver.usb.AppleUSBHub    1.2
com.apple.driver.usb.IOUSBHostHIDDevice 1.2
com.apple.iokit.IOAudioFamily   206.5
com.apple.vecLib.kext   1.2.0
com.apple.driver.usb.networking 5.0.0
com.apple.driver.usb.AppleUSBHostCompositeDevice    1.2
com.apple.iokit.IOSerialFamily  11
com.apple.filesystems.hfs.encodings.kext    1
com.apple.iokit.IOSCSIMultimediaCommandsDevice  408.250.3
com.apple.iokit.IOBDStorageFamily   1.8
com.apple.iokit.IODVDStorageFamily  1.8
com.apple.iokit.IOCDStorageFamily   1.8
com.apple.iokit.IOAHCISerialATAPI   267.50.1
com.apple.iokit.IOAHCIBlockStorage  301.270.1
com.apple.iokit.IOFireWireFamily    4.7.3
com.apple.iokit.IO80211Family   1200.12.2
com.apple.driver.corecapture    1.0.4
com.apple.iokit.IOAHCIFamily    288
com.apple.driver.usb.AppleUSBEHCIPCI    1.2
com.apple.driver.usb.AppleUSBOHCIPCI    1.2
com.apple.driver.usb.AppleUSBOHCI   1.2
com.apple.driver.usb.AppleUSBEHCI   1.2
com.apple.driver.NVSMU  2.2.9
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.driver.AppleUSBHostMergeProperties    1.2
com.apple.iokit.IOSMBusFamily   1.1
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.security.quarantine   3
com.apple.security.sandbox  300.0
com.apple.kext.AppleMatch   1.0.0d1
com.apple.driver.DiskImages 493.0.0
com.apple.driver.AppleFDEKeyStore   28.30
com.apple.driver.AppleEffaceableStorage 1.0
com.apple.driver.AppleKeyStore  2
com.apple.driver.AppleUSBTDM    456.260.3
com.apple.driver.AppleMobileFileIntegrity   1.0.5
com.apple.iokit.IOUSBMassStorageDriver  145.200.2
com.apple.iokit.IOSCSIBlockCommandsDevice   408.250.3
com.apple.iokit.IOSCSIArchitectureModelFamily   408.250.3
com.apple.iokit.IOStorageFamily 2.1
com.apple.kext.CoreTrust    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.IOReportFamily  47
com.apple.iokit.IOTimeSyncFamily    740.2
com.apple.iokit.IONetworkingFamily  3.4
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: MacBookPro5,2, BootROM MBP52.008E.B05, 2 processors, Intel Core 2 Duo, 2.8 GHz, 4 GB, SMC 1.42f4
Graphics: kHW_NVidiaGeForce9400MItem, NVIDIA GeForce 9400M, 256 MB
Graphics: kHW_NVidiaGeForce9600MGTItem, NVIDIA GeForce 9600M GT, spdisplays_pcie_device, 512 MB
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x80AD, 0x484D54313235533641465238432D47372020
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x80AD, 0x484D54313235533641465238432D47372020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.106.98.102.31)
Bluetooth: Version 6.0.14d3, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: INTEL SSDSC2BW120H6, 120.03 GB
Serial ATA Device: HL-DT-ST DVDRW  GS21N
USB Device: USB Bus
USB Device: BRCM2046 Hub
USB Device: Bluetooth USB Host Controller
USB Device: USB Bus
USB Device: Apple Internal Keyboard / Trackpad
USB Device: IR Receiver
USB Device: USB 2.0 Bus
USB Device: Built-in iSight
USB Device: USB 2.0 Bus
Thunderbolt Bus: 
SolidStill commented 4 years ago

Really hoping you can help me out here because the extension you've made is incredibly useful and seems very well designed. Thank you!

Hau-Hau commented 4 years ago

Hello @SolidStill, It seems like Firefox's plugin-container bug caused (probably) by Tab Suspender memory leak.

I'm working on fix but it can takes from 2 weeks to 2 months or more because I've decided to make big changes in project.

SolidStill commented 4 years ago

Thanks for filling me in @Hau-Hau 👍 Kudos on the project and your approach. I've "starred" the project so hopefully I'll be aware when you commit your overhaul. Thanks very much.