V2EX 13小时前
[程序员] 求救,我的 mac 每天都是用着用着自动死机重启,实在找不到原因,也试过重装系统(不抹除)
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

该文章记录了一次系统崩溃事件,具体表现为zalloc函数在尝试从'data.kalloc.1024'区域分配内存时失败,原因是该区域的内存已耗尽。日志显示该区域已分配20GB内存,占用了21,320,912个元素,并且没有可用空间。这次崩溃发生在CPU 5上,且与Darwin Kernel Version 24.5.0及特定版本的iBoot等系统组件相关。Paniclog版本为14,并提供了详细的内核信息、内存区域分布以及涉及的内核扩展列表,最终的Stackshot捕获了崩溃时的系统状态。

💡 **内存区域耗尽导致系统崩溃:** 系统在尝试从名为'data.kalloc.1024'的内存区域分配时,遇到了“zone map exhausted”的错误,表明该内存区域已完全被占用,无法满足新的分配请求,从而触发了系统的panic(崩溃)。

📊 **详细的内存状态与系统信息:** panic日志提供了关键的系统信息,包括OS版本(24F74)、Kernel版本(Darwin Kernel Version 24.5.0)、Boot session UUID等,以及内存区域的详细分布,其中'data.kalloc.1024'区域占用了20GB空间,且已无可用内存。

💻 **崩溃发生在特定CPU核心:** 崩溃明确指出发生在CPU 5上,并提供了该CPU核心的详细上下文信息,包括程序计数器(PC)、链接寄存器(LR)和帧指针(FP),这有助于定位问题发生的具体代码位置。

🔍 **涉及的内核扩展与驱动:** 日志列出了崩溃时加载的内核扩展(kexts),其中`com.apple.driver.AppleMobileFileIntegrity`被特别提及。这些信息对于分析崩溃原因,特别是内存管理问题,至关重要。

🚨 **内存泄漏的可能性:** 'zone map exhausted'的错误通常暗示着系统中可能存在内存泄漏,即程序或驱动未能正确释放已使用的内存,导致该区域最终被耗尽。此处'data.kalloc.1024'区域的完全占用是一个强烈的信号。

panic(cpu 5 caller 0xfffffe0029499584): zalloc[3]: zone map exhausted while allocating from zone [data.kalloc.1024], likely due to memory leak in zone [data.kalloc.1024] (20G, 21320912 elements allocated) @zalloc.c:4560Debugger message: panicMemory ID: 0xffOS release type: UserOS version: 24F74Kernel version: Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:25 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6020Fileset Kernelcache UUID: 46F507E80A8E734CE38ADBCF90B2C394Kernel UUID: E573DECF-AF89-32CC-9CC2-A08B157C4825Boot session UUID: 2632C43A-3089-4C3F-9019-0EDD35B370DEiBoot version: iBoot-11881.121.1iBoot Stage 2 version: iBoot-11881.121.1secure boot?: YESroots installed: 0Paniclog version: 14KernelCache slide: 0x0000000020c24000KernelCache base: 0xfffffe0027c28000Kernel slide: 0x0000000020c2c000Kernel text base: 0xfffffe0027c30000Kernel text exec slide: 0x00000000223b8000Kernel text exec base: 0xfffffe00293bc000mach_absolute_time: 0xde82c42cfcEpoch Time: sec usecBoot : 0x68856422 0x000a4085Sleep : 0x688568ee 0x000993caWake : 0x6885b78b 0x000bc17aCalendar: 0x68864e44 0x000e0e45

Zone info:Zone map: 0xfffffe1002000000 - 0xfffffe3602000000. VM : 0xfffffe1002000000 - 0xfffffe15ce000000. RO : 0xfffffe15ce000000 - 0xfffffe1868000000. GEN0 : 0xfffffe1868000000 - 0xfffffe1e34000000. GEN1 : 0xfffffe1e34000000 - 0xfffffe2400000000. GEN2 : 0xfffffe2400000000 - 0xfffffe29cc000000. GEN3 : 0xfffffe29cc000000 - 0xfffffe2f98000000. DATA : 0xfffffe2f98000000 - 0xfffffe3602000000Metadata: 0xfffffeca04010000 - 0xfffffeca0d810000Bitmaps : 0xfffffeca0d810000 - 0xfffffeca135c8000Extra : 0 - 0

Largest zones:Zone Name Cur Size Free Sizedata. kalloc.1024 20G 0BAPFS_INODES 106M 1385Kvnodes 66M 5016Bcompressor_segment 47M 10Mcompressor_slots.512 22M 2570KTPIDRx_ELy = {1: 0xfffffe29cfab97b0 0: 0x0000000000001005 0ro: 0x00000001f1291fe0 }CORE 0 PVH locks held: NoneCORE 1 PVH locks held: NoneCORE 2 PVH locks held: NoneCORE 3 PVH locks held: NoneCORE 4 PVH locks held: NoneCORE 5 PVH locks held: NoneCORE 6 PVH locks held: NoneCORE 7 PVH locks held: NoneCORE 8 PVH locks held: NoneCORE 9 PVH locks held: NoneCORE 0: PC=0xfffffe0029489ef4, LR=0xfffffe0029489ef4, FP=0xfffffecb15ae3dc0CORE 1: PC=0xfffffe00293d0c38, LR=0xfffffe00293d0c38, FP=0x0000000000000000CORE 2: PC=0xfffffe0029459b70, LR=0xfffffe0029459b70, FP=0xfffffecb16a33ed0CORE 3: PC=0xfffffe0029459b70, LR=0xfffffe0029459b70, FP=0xfffffecb15edbed0CORE 4: PC=0xfffffe0029436ba0, LR=0xfffffe002961cb7c, FP=0xfffffecb164ff190CORE 5 is the one that panicked. Check the full backtrace for details.CORE 6: PC=0xfffffe002943b5bc, LR=0xfffffe00295252a0, FP=0xfffffecb158df8e0CORE 7: PC=0xfffffe00294a4e6c, LR=0xfffffe002957c1cc, FP=0xfffffecb160bfd80CORE 8: PC=0x000000010073f5c0, LR=0x000000010073f694, FP=0x000000016fa35fd0CORE 9: PC=0xfffffe002957b5bc, LR=0xfffffe002957b578, FP=0xfffffecb16303f10Compressor Info: 12% of compressed pages limit (OK) and 13% of segments limit (OK) with 9 swapfiles and OK swap spacePanicked task 0xfffffe28cb260e38: 0 pages, 1 threads: pid 12986: bashPanicked thread: 0xfffffe29cfab97b0, backtrace: 0xfffffecb160d6f30, tid: 656268729lr: 0xfffffe002941cb08 fp: 0xfffffecb160d6fc0lr: 0xfffffe002957d2c8 fp: 0xfffffecb160d7030lr: 0xfffffe002957b5b0 fp: 0xfffffecb160d70f0lr: 0xfffffe00293c78c0 fp: 0xfffffecb160d7100lr: 0xfffffe002941c400 fp: 0xfffffecb160d74d0lr: 0xfffffe0029cab2d0 fp: 0xfffffecb160d74f0lr: 0xfffffe0029499584 fp: 0xfffffecb160d76e0lr: 0xfffffe002949cd18 fp: 0xfffffecb160d7760lr: 0xfffffe002942fb7c fp: 0xfffffecb160d7790lr: 0xfffffe0029b3f7e4 fp: 0xfffffecb160d77b0lr: 0xfffffe002aa9fab8 fp: 0xfffffecb160d77d0lr: 0xfffffe002aa9fbc8 fp: 0xfffffecb160d7800lr: 0xfffffe002aaacb6c fp: 0xfffffecb160d7b90lr: 0xfffffe0029c800a8 fp: 0xfffffecb160d7c50lr: 0xfffffe0029960a70 fp: 0xfffffecb160d7d00lr: 0xfffffe0029961bc0 fp: 0xfffffecb160d7db0lr: 0xfffffe0029961728 fp: 0xfffffecb160d7de0lr: 0xfffffe0029abcafc fp: 0xfffffecb160d7e50lr: 0xfffffe002957b63c fp: 0xfffffecb160d7f10lr: 0xfffffe00293c78c0 fp: 0xfffffecb160d7f20lr: 0xfffffe00293c7884 fp: 0x0000000000000000Kernel Extensions in backtrace:com.apple.driver.AppleMobileFileIntegrity(1.0.5)[33248781-C3E4-30EE-A094-5DC895EE0D19]@0xfffffe002aa9dce0->0xfffffe002aad12a3dependency: com.apple.iokit.CoreAnalyticsFamily(1)[FA3A8174-544C-3425-81C4-54991153C9CA]@0xfffffe002b24daa0->0xfffffe002b256fe3dependency: com.apple.kec.corecrypto(14.0)[55182400-F7EA-3E3F-9690-FA1AAB4ABE92]@0xfffffe002c7ff700->0xfffffe002c85a247dependency: com.apple.kext.CoreTrust(1)[4EF1384C-73F2-3958-A2EB-C3F00627457D]@0xfffffe002b302e50->0xfffffe002b30ba9fdependency: com.apple.security.AppleImage4(7.0.0)[1168090C-9CC6-33B0-BC41-D17B85CD763F]@0xfffffe002a858290->0xfffffe002a87bb23

last started kext at 31852815266: com.apple.filesystems.smbfs 6.0 (addr 0xfffffe0028806390, size 111737)loaded kexts:com.apple.filesystems.smbfs 6.0com.apple.filesystems.autofs 3.0com.apple.driver.usb.AppleUSBHostBillboardDevice 1.0com.apple.driver.AppleTopCaseHIDEventDriver 8420.1com.apple.driver.AppleBiometricServices 1com.apple.driver.CoreKDL 1com.apple.driver.DiskImages.ReadWriteDiskImage 493.0.0com.apple.driver.DiskImages.UDIFDiskImage 493.0.0com.apple.driver.DiskImages.RAMBackingStore 493.0.0com.apple.driver.DiskImages.FileBackingStore 493.0.0com.apple.driver.AppleUSBDeviceNCM 5.0.0com.apple.driver.AppleFileSystemDriver 3.0.1com.apple.nke.l2tp 1.9com.apple.filesystems.tmpfs 1com.apple.filesystems.nfs 1com.apple.filesystems.lifs 1com.apple.filesystems.apfs 2332.120.31com.apple.IOTextEncryptionFamily 1.0.0com.apple.filesystems.hfs.kext 683.120.3com.apple.security.BootPolicy 1com.apple.BootCache 40com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1com.apple.driver.AppleSmartBatteryManager 161.0.0com.apple.driver.AppleALSColorSensor 1.0.0d1com.apple.driver.AppleAOPVoiceTrigger 440.4com.apple.driver.AppleThunderboltIP 4.0.3com.apple.driver.SEPHibernation 1com.apple.driver.ApplePMP 1com.apple.driver.ApplePMPFirmware 1com.apple.driver.AppleSmartIO2 1com.apple.driver.AppleAVD 863.1com.apple.AppleEmbeddedSimpleSPINORFlasher 1com.apple.driver.AppleProResHW 475.6com.apple.driver.AppleSN012776Amp 840.26com.apple.driver.AppleCS42L84Audio 840.26com.apple.AGXG14X 327.5com.apple.driver.AppleTypeCRetimer 1.0.0com.apple.driver.AppleT6020CLPC 1com.apple.driver.AppleT6020SOCTuner 1com.apple.driver.AppleDPDisplayTCON 1com.apple.driver.AppleMobileDispT602X-DCP 140.0com.apple.driver.AppleM68Buttons 1.0.0d1com.apple.driver.AppleJPEGDriver 7.6.8com.apple.driver.AppleAVE2 803.71.1com.apple.driver.AppleSDXC 3.5.3com.apple.driver.usb.AppleSynopsysUSB40XHCI 1com.apple.driver.AppleSamsungSerial 1.0.0d1com.apple.driver.AppleSerialShim 1com.apple.driver.AppleS5L8960XNCO 1com.apple.driver.AppleEventLogHandler 1com.apple.driver.AppleT6020PMGR 1com.apple.driver.AppleS8000AES 1com.apple.driver.AppleS8000DWI 1.0.0d1com.apple.driver.AppleInterruptControllerV2 1.0.0d1com.apple.driver.AppleBluetoothModule 1com.apple.driver.AppleBCMWLANBusInterfacePCIe 1com.apple.driver.AppleS5L8920XPWM 1.0.0d1com.apple.driver.AudioDMAController-T602x 450.4com.apple.driver.AppleSPIMC 1com.apple.driver.AppleS5L8940XI2C 1.0.0d2com.apple.driver.AppleT8110DART 1com.apple.driver.AppleT6020 1com.apple.iokit.IOUserEthernet 1.0.1com.apple.driver.usb.AppleUSBUserHCI 1com.apple.iokit.IOKitRegistryCompatibility 1com.apple.iokit.EndpointSecurity 1com.apple.driver.AppleDiskImages2 385.120.4com.apple.AppleSystemPolicy 2.0.0com.apple.kec.InvalidateHmac 1com.apple.kec.AppleEncryptedArchive 1com.apple.driver.driverkit.serial 6.0.0com.apple.driver.AppleHSBluetoothDriver 8420.1com.apple.driver.IOBluetoothHIDDriver 9.0.0com.apple.driver.AppleHIDKeyboard 8010.1com.apple.driver.AppleActuatorDriver 8440.1com.apple.driver.AppleMultitouchDriver 8440.1com.apple.driver.AppleMesaSEPDriver 100.99com.apple.iokit.IOBiometricFamily 1com.apple.iokit.IOAVBFamily 1320.3com.apple.driver.DiskImages.KernelBacked 493.0.0com.apple.driver.AppleXsanScheme 3com.apple.driver.usb.networking 5.0.0com.apple.nke.ppp 1.9com.apple.driver.AppleBSDKextStarter 3com.apple.kext.triggers 1.0com.apple.filesystems.hfs.encodings.kext 1com.apple.driver.AppleSyntheticGameController 12.5.3com.apple.driver.AppleConvergedIPCOLYBTControl 1com.apple.driver.AppleConvergedPCI 1com.apple.driver.AppleBluetoothDebug 1com.apple.driver.AppleBTM 1.0.1com.apple.driver.IOHIDPowerSource 1com.apple.driver.AppleCallbackPowerSource 1com.apple.driver.AppleSEPHDCPManager 1.0.1com.apple.driver.AppleAOPAudio 440.12com.apple.driver.AppleUVDMDriver 1.0.0com.apple.driver.AppleUVDM 1.0.0com.apple.driver.AppleThunderboltUSBDownAdapter 1.0.4com.apple.driver.AppleTrustedAccessory 1com.apple.iokit.AppleSEPGenericTransfer 1com.apple.driver.AppleThunderboltDPInAdapter 8.5.1com.apple.driver.AppleThunderboltDPAdapterFamily 8.5.1com.apple.driver.AppleThunderboltPCIDownAdapter 4.1.1com.apple.driver.AppleStockholmControl 1.0.0com.apple.iokit.IONVMeFamily 2.1.0com.apple.AGXFirmwareKextG14XRTBuddy 1com.apple.AGXFirmwareKextRTBuddy64 327.5com.apple.driver.AppleDCPDPTXProxy 1.0.0com.apple.driver.DCPDPFamilyProxy 1com.apple.driver.AppleH11ANEInterface 8.600.2com.apple.driver.AppleDiagnosticDataAccessReadOnly 1.0.0com.apple.driver.AppleNANDConfigAccess 1.0.0com.apple.driver.AppleHPM 3.4.4com.apple.driver.AppleCSEmbeddedAudio 840.26com.apple.driver.AppleEmbeddedAudio 840.26com.apple.iokit.AppleARMIISAudio 440.17com.apple.driver.IISAudioIsolatedStreamECProxy 440.17com.apple.driver.ExclavesAudioKext 240.34com.apple.plugin.IOgPTPPlugin 1340.12com.apple.iokit.IOGPUFamily 104.5com.apple.driver.ApplePassthroughPPM 3.0com.apple.driver.DCPAVFamilyProxy 1com.apple.iokit.IOMobileGraphicsFamily-DCP 343.0.0com.apple.driver.AppleDCP 1com.apple.driver.AppleFirmwareKit 1com.apple.iokit.IOMobileGraphicsFamily 343.0.0com.apple.driver.AppleM2ScalerCSCDriver 265.0.0com.apple.driver.AppleMobileApNonce 1com.apple.driver.AppleHIDTransportFIFO 8440.2com.apple.driver.AppleHIDTransport 8440.2com.apple.driver.AppleSPU 1com.apple.driver.AppleInputDeviceSupport 8440.2com.apple.driver.AppleSPMIPMU 1.0.1com.apple.driver.AppleDialogPMU 1.0.1com.apple.driver.AppleSPMI 1.0.1com.apple.driver.AppleUSBXDCIARM 1.0com.apple.driver.AppleUSBXDCI 1.0com.apple.iokit.IOUSBDeviceFamily 2.0.0com.apple.driver.usb.AppleSynopsysUSBXHCI 1com.apple.driver.usb.AppleUSBXHCI 1.2com.apple.driver.AppleEmbeddedUSBHost 1com.apple.driver.usb.AppleUSBHub 1.2com.apple.driver.usb.AppleUSBHostCompositeDevice 1.2com.apple.driver.AppleT8112TypeCPhy 1com.apple.driver.AppleT8103TypeCPhy 1com.apple.driver.AppleSART 1com.apple.driver.ApplePMGR 1com.apple.driver.AppleARMWatchdogTimer 1com.apple.driver.AppleDisplayCrossbar 1.0.0com.apple.iokit.IODisplayPortFamily 1.0.0com.apple.driver.AppleTypeCPhy 1com.apple.driver.AppleMultiFunctionManager 1com.apple.driver.AppleBluetoothDebugService 1com.apple.driver.AppleBCMWLANCore 1.0.0com.apple.iokit.IO80211Family 1200.13.1com.apple.driver.IOImageLoader 1.0.0com.apple.driver.AppleOLYHAL 1com.apple.driver.corecapture 1.0.4com.apple.driver.AppleA7IOP-MXWrap-v1 1.0.2com.apple.driver.AppleThunderboltNHI 7.2.81com.apple.driver.AppleT6000PCIeC 1com.apple.iokit.IOThunderboltFamily 9.3.3com.apple.iokit.IOPortFamily 1.0com.apple.driver.AppleT602xPCIe 1com.apple.driver.AppleT6020PCIePIODMA 1com.apple.driver.AppleEmbeddedPCIE 1com.apple.driver.ApplePIODMA 1com.apple.driver.AppleMCA2-T602x 940.3com.apple.driver.AppleEmbeddedAudioLibs 420.3com.apple.driver.AppleFirmwareUpdateKext 1com.apple.driver.AppleH13CameraInterface 9.500.0com.apple.driver.AppleGPIOICController 1.0.2com.apple.driver.AppleA7IOP-ASCWrap-v4 1.0.2com.apple.driver.AppleDockChannel 1com.apple.driver.AppleFireStormErrorHandler 1com.apple.driver.usb.AppleUSBHostPacketFilter 1.0com.apple.iokit.IOTimeSyncFamily 1340.12com.apple.driver.DiskImages 493.0.0com.apple.iokit.IOGraphicsFamily 599com.apple.iokit.IOBluetoothFamily 9.0.0com.apple.driver.AppleUIO 1com.apple.driver.AppleSSE 1.0com.apple.driver.AppleSEPKeyStore 2com.apple.driver.AppleUSBTDM 556com.apple.iokit.IOUSBMassStorageDriver 259.100.1com.apple.iokit.IOPCIFamily 2.9com.apple.iokit.IOUSBHostFamily 1.2com.apple.driver.AppleUSBHostMergeProperties 1.2com.apple.driver.usb.AppleUSBCommon 1.0com.apple.driver.AppleSMC 3.1.9com.apple.driver.RTBuddy 1.0.0com.apple.driver.AppleEmbeddedTempSensor 1.0.0com.apple.driver.AppleARMPMU 1.0com.apple.iokit.IOAccessoryManager 1.0.0com.apple.driver.AppleOnboardSerial 1.0com.apple.iokit.IOSerialFamily 11com.apple.iokit.IOSCSIBlockCommandsDevice 500.120.2com.apple.iokit.IOSCSIArchitectureModelFamily 500.120.2com.apple.driver.AppleRSMChannel 1com.apple.iokit.IORSMFamily 1com.apple.driver.AppleLockdownMode 1com.apple.driver.AppleIPAppender 1.0com.apple.iokit.IOSkywalkFamily 1.0com.apple.driver.mDNSOffloadUserClient 1.0.1b8com.apple.iokit.IONetworkingFamily 3.4com.apple.driver.AppleFDEKeyStore 28.30com.apple.driver.AppleEffaceableStorage 1.0com.apple.driver.AppleCredentialManager 1.0com.apple.driver.AppleSEPManager 1.0.1com.apple.driver.IODARTFamily 1com.apple.driver.AppleA7IOP 1.0.2com.apple.driver.IOSlaveProcessor 1com.apple.driver.AppleBiometricSensor 2com.apple.iokit.IOHIDFamily 2.0.0com.apple.driver.AppleANELoadBalancer 8.600.2com.apple.AUC 1.0com.apple.iokit.IOSurface 372.5.2com.apple.iokit.IOAVFamily 1.0.0com.apple.iokit.IOHDCPFamily 1.0.0com.apple.iokit.IOCECFamily 1com.apple.iokit.IOAudio2Family 1.0com.apple.driver.AppleIISController 440.2com.apple.driver.AppleAudioClockLibs 420.3com.apple.driver.FairPlayIOKit 72.13.0com.apple.driver.AppleARMPlatform 1.0.2com.apple.iokit.IOSlowAdaptiveClockingFamily 1.0.0com.apple.iokit.IOReportFamily 47com.apple.security.quarantine 4com.apple.security.sandbox 300.0com.apple.iokit.IOStorageFamily 2.1com.apple.kext.AppleMatch 1.0.0d1com.apple.driver.AppleMobileFileIntegrity 1.0.5com.apple.iokit.CoreAnalyticsFamily 1com.apple.security.AppleImage4 7.0.0com.apple.kext.CoreTrust 1com.apple.iokit.IOCryptoAcceleratorFamily 1.0.1com.apple.kec.pthread 1com.apple.kec.Libm 1com.apple.kec.Compression 1.0com.apple.kec.corecrypto 14.0

** Stackshot Succeeded ** Bytes Traced 874189 (Uncompressed 2187168) **

设备信息https://webwlx.oss-cn-beijing.aliyuncs.com/iShot_2025-07-28_15.55.26.png

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

系统崩溃 内存泄漏 内核panic zalloc kalloc.1024
相关文章