• macOS Catalina Kernel panic 因为意外而重新启动


    0x00 What's Happend?

    我的 MacBookAir 在升级到Catalina 之后,经常在休眠模式重启,随后在桌面上显示“因为意外而重新启动”的信息,以下是跟随日志:

    panic(cpu 2 caller 0xffffff80064279d7): "com_apple_driver_AppleUSBCardReaderInterfaceNub::setPowerState(0xffffff8031211a00 : 0xffffff7f87e3af86, 2 -> 0) timed out after 30728 ms"@/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-6153.41.3/iokit/Kernel/IOServicePM.cpp:5302
    Backtrace (CPU 2), Frame : Return Address
    0xffffff8106fdbb40 : 0xffffff8005d39a3b 
    0xffffff8106fdbb90 : 0xffffff8005e70fe5 
    0xffffff8106fdbbd0 : 0xffffff8005e62a5e 
    0xffffff8106fdbc20 : 0xffffff8005ce0a40 
    0xffffff8106fdbc40 : 0xffffff8005d39127 
    0xffffff8106fdbd40 : 0xffffff8005d3950b 
    0xffffff8106fdbd90 : 0xffffff80064d17f9 
    0xffffff8106fdbe00 : 0xffffff80064279d7 
    0xffffff8106fdbe50 : 0xffffff8006427599 
    0xffffff8106fdbe60 : 0xffffff800643e94e 
    0xffffff8106fdbea0 : 0xffffff8006426348 
    0xffffff8106fdbec0 : 0xffffff8005d7b625 
    0xffffff8106fdbf40 : 0xffffff8005d7b151 
    0xffffff8106fdbfa0 : 0xffffff8005ce013e 
    
    BSD process name corresponding to current thread: kernel_task
    
    Mac OS version:
    19B88
    
    Kernel version:
    Darwin Kernel Version 19.0.0: Thu Oct 17 16:17:15 PDT 2019; root:xnu-6153.41.3~29/RELEASE_X86_64
    Kernel UUID: 7503CD47-851F-321E-8747-50DB6299165F
    Kernel slide:     0x0000000005a00000
    Kernel text base: 0xffffff8005c00000
    __HIB  text base: 0xffffff8005b00000
    System model name: MacBookAir7,2 (Mac-937CB26E2E02BB01)
    System shutdown begun: NO
    Panic diags file available: YES (0x0)
    
    System uptime in nanoseconds: 29541206130211
    last loaded kext at 29510234574231: >usb.cdc	5.0.0 (addr 0xffffff7f89031000, size 28672)
    last unloaded kext at 23781756274496: >!AXsanScheme	3 (addr 0xffffff7f89031000, size 32768)
    loaded kexts:
    @filesystems.smbfs	3.4
    >AudioAUUC	1.70
    >!AGraphicsDevicePolicy	4.5.9
    @AGDCPluginDisplayMetrics	4.5.9
    @fileutil	20.036.15
    >!AHV	1
    |IOUserEthernet	1.0.1
    |IO!BSerialManager	7.0.1f1
    >!AUpstreamUserClient	3.6.8
    >AGPM	111.2.5
    >!APlatformEnabler	2.7.0d0
    >X86PlatformShim	1.0.0
    >pmtelemetry	1
    >!A!IBDWGraphics	14.0.2
    @Dont_Steal_Mac_OS_X	7.0.0
    >!AHDA	283.14
    >!AThunderboltIP	3.1.3
    >eficheck	1
    >!ABacklight	180.1
    >!ASMCLMU	212
    >!ALPC	3.1
    >AirPort.BrcmNIC	1400.1.1
    >!ACameraInterface	7.6.0
    >!A!IBDWGraphicsFramebuffer	14.0.2
    >!A!ISlowAdaptiveClocking	4.0.0
    >!AMCCSControl	1.13
    @filesystems.autofs	3.0
    >!UCardReader	489.41.1
    >!ATopCaseHIDEventDriver	3410.1
    >!AVirtIO	1.0
    @filesystems.hfs.kext	522.0.9
    @!AFSCompression.!AFSCompressionTypeDataless	1.0.0d1
    @BootCache	40
    @!AFSCompression.!AFSCompressionTypeZlib	1.0.0
    @filesystems.apfs	1412.41.1
    >!AAHCIPort	341.0.2
    @private.KextAudit	1.0
    >!ASmartBatteryManager	161.0.0
    >!ARTC	2.0
    >!AACPIButtons	6.1
    >!AHPET	1.8
    >!ASMBIOS	2.1
    >!AACPIEC	6.1
    >!AAPIC	1.7
    $!AImage4	1
    @nke.applicationfirewall	303
    $TMSafetyNet	8
    @!ASystemPolicy	2.0.0
    |EndpointSecurity	1
    >usb.cdc	5.0.0
    >!UAudio	320.49
    >!AGraphicsControl	4.5.9
    |IOAVB!F	800.17
    >!ASSE	1.0
    >DspFuncLib	283.14
    @kext.OSvKernDSPLib	529
    @!AGPUWrangler	4.5.9
    >!ABacklightExpert	1.1.0
    |IONDRVSupport	568
    >!AHDA!C	283.14
    |IOHDA!F	283.14
    |IOAudio!F	300.2
    @vecLib.kext	1.2.0
    |IO80211!F	1200.12.2b1
    >mDNSOffloadUserClient	1.0.1b8
    >corecapture	1.0.4
    @!AGraphicsDeviceControl	4.5.9
    |IOAccelerator!F2	438.2.7
    >X86PlatformPlugin	1.0.0
    >IOPlatformPlugin!F	6.0.0d8
    |IOSlowAdaptiveClocking!F	1.0.0
    >!ASMBus!C	1.0.18d1
    |IOGraphics!F	568
    @plugin.IOgPTPPlugin	810.1
    |IOEthernetAVB!C	1.1.0
    |IOSkywalk!F	1
    @kext.triggers	1.0
    |Broadcom!BHost!CUSBTransport	7.0.1f1
    |IO!BHost!CUSBTransport	7.0.1f1
    |IO!BHost!CTransport	7.0.1f1
    >usb.ethernet.asix	5.0.0
    >usb.!UHub	1.2
    >usb.networking	5.0.0
    >usb.!UHostCompositeDevice	1.2
    >!AHS!BDriver	3410.1
    >IO!BHIDDriver	7.0.1f1
    |IO!B!F	7.0.1f1
    |IO!BPacketLogger	7.0.1f1
    >!AMultitouchDriver	3410.2
    >!AInputDeviceSupport	3410.1
    >!AHIDKeyboard	209
    >!AHSSPIHIDDriver	58
    |IOSerial!F	11
    |IOSurface	269.6
    @filesystems.hfs.encodings.kext	1
    |IOAHCIBlock!S	316.40.3
    |IOAHCI!F	290.0.1
    >!AThunderboltDPInAdapter	6.2.3
    >!AThunderboltDPAdapter!F	6.2.3
    >!AThunderboltPCIDownAdapter	2.5.2
    >!AThunderboltNHI	5.8.0
    |IOThunderbolt!F	7.4.6
    >!AHSSPISupport	58
    >!A!ILpssSpi!C	3.0.60
    >!A!ILpssDmac	3.0.60
    >!A!ILpssGspi	3.0.60
    >usb.!UXHCIPCI	1.2
    >usb.!UXHCI	1.2
    |IOUSB!F	900.4.2
    >!AEFINVRAM	2.1
    >!AEFIRuntime	2.1
    |IOSMBus!F	1.1
    |IOHID!F	2.0.0
    $quarantine	4
    $sandbox	300.0
    @kext.!AMatch	1.0.0d1
    >DiskImages	493.0.0
    >!AFDEKeyStore	28.30
    >!AEffaceable!S	1.0
    >!AKeyStore	2
    >!UTDM	489.41.1
    |IOSCSIBlockCommandsDevice	422.0.2
    >!ACredentialManager	1.0
    >KernelRelayHost	1
    >!ASEPManager	1.0.1
    >IOSlaveProcessor	1
    |IOTimeSync!F	810.1
    |IONetworking!F	3.4
    |IOUSBMass!SDriver	157.40.7
    |IOSCSIArchitectureModel!F	422.0.2
    |IO!S!F	2.1
    |IOUSBHost!F	1.2
    >!UHostMergeProperties	1.2
    >usb.!UCommon	1.0
    >!ABusPower!C	1.0
    |CoreAnalytics!F	1
    >!AMobileFileIntegrity	1.0.5
    @kext.CoreTrust	1
    |IOReport!F	47
    >!AACPIPlatform	6.1
    >!ASMC	3.1.9
    >watchdog	1
    |IOPCI!F	2.9
    |IOACPI!F	1.4
    @kec.pthread	1
    @kec.Libm	1
    @kec.corecrypto	1.0
    

    0x01 Solution

    最后通过禁用了日志中显示的 “AppleUSBCardReaderInterfaceNub” 相关 kext,解决了这个问题。
    以下是解决步骤:

    1、下载 Kext Wizard.app

    2、搜索 AppleUSBCardReader

    3、Unload
    选中它,点击 Unload

    注意:在 macOS 重新启动后,这个内核扩展会被重新加载,如果你需要重启之后不被加载,可以直接删除这个 .kext ,但我不建议这么做。

  • 相关阅读:
    jenkins:通过execute shell启动的进程会被杀死的问题
    Cacti:添加监控磁盘IO
    Linux:添加永久路由
    Linux:下载方式安装lrzsz
    Linux:Vmware安装linux虚拟机,桥接方式配置静态IP后重启网卡,提示:Error,some other host already uses address 10.252.252.21...
    Linux:安装rstatd,报错
    Linux:安装图形界面
    leetcode Median of Two Sorted Arrays
    算法导论 寻找第i小元素 9.2
    算法导论9.1-1
  • 原文地址:https://www.cnblogs.com/nnylee/p/11774950.html
Copyright © 2020-2023  润新知