signalapp / Signal-Desktop

A private messenger for Windows, macOS, and Linux.
https://signal.org/download
GNU Affero General Public License v3.0
14.6k stars 2.66k forks source link

Signal Crashed my Mac #5442

Closed robwilkes closed 3 years ago

robwilkes commented 3 years ago

MacOS Problem Report indicates Signal Helper panicked and caused my Mac to restart.

Excerpt from the below: CORE 0 is the one that panicked. Check the full backtrace for details. Panicked task 0xfffffe167c3561f8: 80655 pages, 30 threads: pid 61284: Signal Helper (R

Full report: panic(cpu 0 caller 0xfffffe0017b41798): "dart-dispext0 (0xfffffe2332f80000): SMMU(SMMU) error: SID 0 PTE invalid exception on read with DVA 0x24000 (TTBR 0 SEG 0 PTE 0x9) ERROR_STATUS 0x80000004 TIME 0xcba660dbfca2 TTE 0 AXI_ID 0)" Debugger message: panic Memory ID: 0x6 OS release type: User OS version: 20G80 Kernel version: Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101 Fileset Kernelcache UUID: E46841F89DC3FD7ACEC6F404AC995579 Kernel UUID: AC4A14A7-8A8E-3AE6-85A6-55E6B2502BF9 iBoot version: iBoot-6723.140.2 secure boot?: YES Paniclog version: 13 KernelCache slide: 0x000000000e970000 KernelCache base: 0xfffffe0015974000 Kernel slide: 0x000000000f4b8000 Kernel text base: 0xfffffe00164bc000 Kernel text exec base: 0xfffffe0016588000 mach_absolute_time: 0x4e339a66714 Epoch Time: sec usec Boot : 0x6108e328 0x00058e78 Sleep : 0x610c7629 0x000a78b1 Wake : 0x610c779d 0x0001029e Calendar: 0x610ca89e 0x0005ccd9

CORE 0 recently retired instr at 0xfffffe00166f96a4 CORE 1 recently retired instr at 0xfffffe00166fad6c CORE 2 recently retired instr at 0xfffffe00166fad6c CORE 3 recently retired instr at 0xfffffe00166fad6c CORE 4 recently retired instr at 0xfffffe00166fad70 CORE 5 recently retired instr at 0xfffffe00166fad70 CORE 6 recently retired instr at 0xfffffe00166fad70 CORE 7 recently retired instr at 0xfffffe00166fad70 CORE 0 PVH locks held: None CORE 1 PVH locks held: None CORE 2 PVH locks held: None CORE 3 PVH locks held: None CORE 4 PVH locks held: None CORE 5 PVH locks held: None CORE 6 PVH locks held: None CORE 7 PVH locks held: None CORE 0 is the one that panicked. Check the full backtrace for details. CORE 1: PC=0xfffffe00168151fc, LR=0xfffffe0016814c54, FP=0xfffffe30b4e62ef0 CORE 2: PC=0xfffffe0016633af4, LR=0xfffffe0016633af0, FP=0xfffffe30b61cbbe0 CORE 3: PC=0xfffffe00166f86fc, LR=0xfffffe0019238ff8, FP=0xfffffe30b6063630 CORE 4: PC=0xfffffe0016601a64, LR=0xfffffe0016601a5c, FP=0xfffffe3084203ee0 CORE 5: PC=0xfffffe0016be7054, LR=0xfffffe0016c2e774, FP=0xfffffe30b7f3b7c0 CORE 6: PC=0x000000019a5d1328, LR=0x00000001ae54d47c, FP=0x000000016fb5ed20 CORE 7: PC=0xfffffe0016601a64, LR=0xfffffe0016601a5c, FP=0xfffffe30beca3ee0 Panicked task 0xfffffe167c3561f8: 80655 pages, 30 threads: pid 61284: Signal Helper (R Panicked thread: 0xfffffe167c93dfe0, backtrace: 0xfffffe30293534f0, tid: 1365594 lr: 0xfffffe00165d6b68 fp: 0xfffffe3029353560 lr: 0xfffffe00165d694c fp: 0xfffffe30293535d0 lr: 0xfffffe00167001c8 fp: 0xfffffe30293535f0 lr: 0xfffffe00166f1674 fp: 0xfffffe30293536a0 lr: 0xfffffe001658f7e8 fp: 0xfffffe30293536b0 lr: 0xfffffe00165d65dc fp: 0xfffffe3029353a40 lr: 0xfffffe00165d65dc fp: 0xfffffe3029353ab0 lr: 0xfffffe0016d88e80 fp: 0xfffffe3029353ad0 lr: 0xfffffe0017b41798 fp: 0xfffffe3029353d40 lr: 0xfffffe0017b41270 fp: 0xfffffe3029353dd0 lr: 0xfffffe0017b40a5c fp: 0xfffffe3029353e80 lr: 0xfffffe0016cb67e8 fp: 0xfffffe3029353ec0 lr: 0xfffffe0016cec6e8 fp: 0xfffffe3029353f20 lr: 0xfffffe00176ee8c8 fp: 0xfffffe3029353fb0 lr: 0xfffffe0016cdd308 fp: 0xfffffe3029353fc0 lr: 0xfffffe00166f4148 fp: 0xfffffe3029353fe0 lr: 0xfffffe001658f85c fp: 0xfffffe3029353ff0 lr: 0xfffffe0016598c28 fp: 0x0000000000000000 Kernel Extensions in backtrace: com.apple.driver.AppleT8020DART(1.0)[CA7E5ECE-B7E9-3AB8-A9EF-08838AA1CAC3]@0xfffffe0017b3c000->0xfffffe0017b43fff dependency: com.apple.driver.AppleARMPlatform(1.0.2)[5E9CCC2E-8DAD-3602-9B36-6A976B6F7995]@0xfffffe0016ee4000->0xfffffe0016f33fff dependency: com.apple.driver.IODARTFamily(1)[E5C341EF-A949-33A0-81DE-3CB3C94381E2]@0xfffffe0018618000->0xfffffe001862bfff com.apple.driver.AppleInterruptController(1.0d1)[D15A24BC-1D17-3665-85C0-A51650EB6565]@0xfffffe00176ec000->0xfffffe00176effff dependency: com.apple.driver.AppleARMPlatform(1.0.2)[5E9CCC2E-8DAD-3602-9B36-6A976B6F7995]@0xfffffe0016ee4000->0xfffffe0016f33fff

last started kext at 1453247763349: com.apple.driver.usb.cdc.ncm 5.0.0 (addr 0xfffffe0015f98000, size 16384) loaded kexts: com.apple.filesystems.afpfs 11.3 com.apple.nke.asp_tcp 8.2 com.apple.driver.usb.AppleUSBHostBillboardDevice 1.0 com.apple.fileutil 20.036.15 com.apple.filesystems.autofs 3.0 com.apple.fsplaceholder 1.14.0 com.apple.driver.AppleTopCaseHIDEventDriver 4050.1 com.apple.iokit.IOBluetoothSerialManager 8.0.5d7 com.apple.driver.AppleBiometricServices 1 com.apple.driver.usb.realtek8153patcher 5.0.0 com.apple.driver.BCMWLANFirmware4378.Hashstore 1 com.apple.driver.SEPHibernation 1 com.apple.driver.CoreKDL 1 com.apple.driver.DiskImages.ReadWriteDiskImage 493.0.0 com.apple.driver.DiskImages.UDIFDiskImage 493.0.0 com.apple.driver.DiskImages.RAMBackingStore 493.0.0 com.apple.driver.DiskImages.FileBackingStore 493.0.0 com.apple.driver.AppleSmartBatteryManager 161.0.0 com.apple.driver.AppleUSBDeviceNCM 5.0.0 com.apple.driver.AppleThunderboltIP 4.0.3 com.apple.filesystems.apfs 1677.141.1 com.apple.driver.AppleALSColorSensor 1.0.0d1 com.apple.driver.AppleFileSystemDriver 3.0.1 com.apple.nke.l2tp 1.9 com.apple.filesystems.tmpfs 1 com.apple.driver.AppleAOPVoiceTrigger 11.5 com.apple.IOTextEncryptionFamily 1.0.0 com.apple.filesystems.hfs.kext 556.100.11 com.apple.security.BootPolicy 1 com.apple.BootCache 40 com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0 com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1 com.apple.driver.ApplePMP 1 com.apple.driver.AppleSmartIO2 1 com.apple.driver.ApplePMPFirmware 1 com.apple.driver.AppleDPDisplayTCON 1 com.apple.driver.AppleCS42L83Audio 442.26 com.apple.driver.AppleTAS5770LAmp 442.26 com.apple.AppleEmbeddedSimpleSPINORFlasher 1 com.apple.driver.AppleSPMIPMU 1.0.1 com.apple.driver.AppleT8020SOCTuner 1 com.apple.driver.AppleT8103CLPCv3 1 com.apple.AGXG13G 173.28.7 com.apple.driver.AppleAVD 385 com.apple.driver.AppleAVE2 401.73.4 com.apple.driver.AppleJPEGDriver 4.6.0 com.apple.driver.AppleMobileDispH13G-DCP 140.0 com.apple.driver.usb.AppleUSBHostT8103 1 com.apple.driver.AudioDMAController-T8103 1.60.5 com.apple.driver.AppleS5L8960XNCO 1 com.apple.driver.AppleT8103PMGR 1 com.apple.driver.AppleS8000AES 1 com.apple.driver.AppleS8000DWI 1.0.0d1 com.apple.driver.AppleS5L8960XWatchDogTimer 1 com.apple.driver.AppleInterruptController 1.0.0d1 com.apple.driver.AppleT8020DART 1 com.apple.driver.AppleBluetoothModule 1 com.apple.driver.AppleSamsungSerial 1.0.0d1 com.apple.driver.AppleBCMWLANBusInterfacePCIe 1 com.apple.driver.AppleS5L8920XPWM 1.0.0d1 com.apple.driver.AppleS5L8940XI2C 1.0.0d2 com.apple.driver.AppleSPIMC 1 com.apple.driver.AppleT8101 1 com.apple.driver.AppleM68Buttons 1.0.0d1 com.apple.iokit.IOUserEthernet 1.0.1 com.apple.driver.usb.AppleUSBUserHCI 1 com.apple.iokit.IOKitRegistryCompatibility 1 com.apple.iokit.EndpointSecurity 1 com.apple.driver.AppleDiskImages2 1 com.apple.AppleSystemPolicy 2.0.0 com.apple.nke.applicationfirewall 311 com.apple.kec.InvalidateHmac 1 com.apple.driver.usb.cdc.ncm 5.0.0 com.apple.security.SecureRemotePassword 1.0 com.apple.driver.usb.IOUSBHostHIDDevice 1.2 com.apple.kext.triggers 1.0 com.apple.driver.AppleActuatorDriver 4440.3 com.apple.driver.AppleHIDKeyboard 224 com.apple.driver.AppleMultitouchDriver 4440.3 com.apple.driver.AppleHSBluetoothDriver 4050.1 com.apple.driver.IOBluetoothHIDDriver 8.0.5d7 com.apple.iokit.IOAVBFamily 940.4 com.apple.plugin.IOgPTPPlugin 985.2 com.apple.iokit.IOEthernetAVBController 1.1.0 com.apple.driver.AppleMesaSEPDriver 100.99 com.apple.iokit.IOBiometricFamily 1 com.apple.driver.usb.cdc.ecm 5.0.0 com.apple.driver.usb.cdc.acm 5.0.0 com.apple.driver.usb.serial 6.0.0 com.apple.driver.usb.cdc 5.0.0 com.apple.driver.AppleUSBAudio 405.39 com.apple.iokit.IOAudioFamily 300.6.1 com.apple.vecLib.kext 1.2.0 com.apple.driver.AppleSEPHDCPManager 1.0.1 com.apple.driver.AppleTrustedAccessory 1 com.apple.iokit.AppleSEPGenericTransfer 1 com.apple.driver.DiskImages.KernelBacked 493.0.0 com.apple.driver.IOBluetoothHostControllerPCIeTransport 8.0.5d7 com.apple.iokit.IOBluetoothHostControllerTransport 8.0.5d7 com.apple.driver.AppleBTM 1.0.1 com.apple.driver.AppleConvergedIPCOLYBTControl 1 com.apple.driver.AppleConvergedPCI 1 com.apple.driver.AppleBluetoothDebug 1 com.apple.driver.usb.networking 5.0.0 com.apple.driver.AppleThunderboltUSBDownAdapter 1.0.4 com.apple.driver.AppleThunderboltDPInAdapter 8.1.4 com.apple.driver.AppleThunderboltDPAdapterFamily 8.1.4 com.apple.driver.AppleThunderboltPCIDownAdapter 4.1.1 com.apple.driver.AppleXsanScheme 3 com.apple.nke.ppp 1.9 com.apple.driver.AppleAOPAudio 16.2 com.apple.driver.AppleDCPDPTXProxy 1.0.0 com.apple.driver.DCPDPFamilyProxy 1 com.apple.driver.AppleHIDTransportSPI 4400.35 com.apple.driver.AppleHIDTransport 4400.35 com.apple.driver.AppleInputDeviceSupport 4400.35 com.apple.driver.AppleBSDKextStarter 3 com.apple.filesystems.hfs.encodings.kext 1 com.apple.AGXFirmwareKextG13GRTBuddy 173.28.7 com.apple.AGXFirmwareKextRTBuddy64 173.28.7 com.apple.iokit.IONVMeFamily 2.1.0 com.apple.driver.AppleSPU 1 com.apple.driver.AppleCSEmbeddedAudio 442.26 com.apple.driver.AppleStockholmControl 1.0.0 com.apple.driver.AppleEmbeddedAudio 442.26 com.apple.iokit.AppleARMIISAudio 80.34.1 com.apple.driver.AppleDiagnosticDataAccessReadOnly 1.0.0 com.apple.driver.AppleNANDConfigAccess 1.0.0 com.apple.driver.AppleHPM 3.4.4 com.apple.driver.AppleDialogPMU 1.0.1 com.apple.driver.ApplePassthroughPPM 3.0 com.apple.iokit.IOGPUFamily 21.11 com.apple.driver.AppleH11ANEInterface 4.75.0 com.apple.driver.AppleH13CameraInterface 3.58.0 com.apple.driver.AppleH10PearlCameraInterface 16.15.1 com.apple.driver.DCPAVFamilyProxy 1 com.apple.iokit.IOMobileGraphicsFamily-DCP 343.0.0 com.apple.driver.AppleDCP 1 com.apple.driver.AppleFirmwareKit 1 com.apple.iokit.IOMobileGraphicsFamily 343.0.0 com.apple.driver.AppleSPMI 1.0.1 com.apple.driver.AppleUSBXDCIARM 1.0 com.apple.driver.AppleUSBXDCI 1.0 com.apple.iokit.IOUSBDeviceFamily 2.0.0 com.apple.driver.usb.AppleUSBXHCIARM 1 com.apple.driver.usb.AppleUSBXHCI 1.2 com.apple.driver.AppleEmbeddedUSBHost 1 com.apple.driver.usb.AppleUSBHub 1.2 com.apple.driver.usb.AppleUSBHostCompositeDevice 1.2 com.apple.driver.AppleT8103TypeCPhy 1 com.apple.driver.AppleSART 1 com.apple.driver.ApplePMGR 1 com.apple.driver.watchdog 1 com.apple.driver.usb.AppleUSBHostPacketFilter 1.0 com.apple.driver.AppleDisplayCrossbar 1.0.0 com.apple.iokit.IODisplayPortFamily 1.0.0 com.apple.driver.AppleTypeCPhy 1 com.apple.driver.AppleThunderboltNHI 7.2.8 com.apple.driver.AppleT8103PCIeC 1 com.apple.iokit.IOThunderboltFamily 9.3.2 com.apple.driver.ApplePIODMA 1 com.apple.driver.AppleT8103PCIe 1 com.apple.driver.AppleMultiFunctionManager 1 com.apple.driver.AppleEmbeddedPCIE 1 com.apple.driver.AppleBluetoothDebugService 1 com.apple.driver.AppleBCMWLANCore 1.0.0 com.apple.iokit.IO80211FamilyV2 1200.12.2b1 com.apple.driver.IOImageLoader 1.0.0 com.apple.driver.corecapture 1.0.4 com.apple.driver.AppleMCA2-T8103 540.10 com.apple.driver.AppleGPIOICController 1.0.2 com.apple.driver.AppleFireStormErrorHandler 1 com.apple.driver.AppleMobileApNonce 1 com.apple.iokit.IOTimeSyncFamily 985.2 com.apple.driver.DiskImages 493.0.0 com.apple.iokit.IOGraphicsFamily 585.1 com.apple.iokit.IOBluetoothFamily 8.0.5d7 com.apple.iokit.IOBluetoothPacketLogger 8.0.5d7 com.apple.driver.FairPlayIOKit 68.7.1 com.apple.iokit.CoreAnalyticsFamily 1 com.apple.driver.AppleSSE 1.0 com.apple.driver.AppleSEPKeyStore 2 com.apple.driver.AppleUSBTDM 511.141.1 com.apple.iokit.IOUSBMassStorageDriver 184.140.2 com.apple.iokit.IOPCIFamily 2.9 com.apple.iokit.IOSCSIBlockCommandsDevice 436.140.1 com.apple.iokit.IOSCSIArchitectureModelFamily 436.140.1 com.apple.driver.AppleIPAppender 1.0 com.apple.driver.AppleFDEKeyStore 28.30 com.apple.driver.AppleEffaceableStorage 1.0 com.apple.driver.AppleCredentialManager 1.0 com.apple.driver.KernelRelayHost 1 com.apple.iokit.IOUSBHostFamily 1.2 com.apple.driver.AppleUSBHostMergeProperties 1.2 com.apple.driver.usb.AppleUSBCommon 1.0 com.apple.driver.AppleSMC 3.1.9 com.apple.driver.RTBuddy 1.0.0 com.apple.driver.AppleEmbeddedTempSensor 1.0.0 com.apple.driver.AppleARMPMU 1.0 com.apple.iokit.IOAccessoryManager 1.0.0 com.apple.driver.AppleOnboardSerial 1.0 com.apple.iokit.IOSkywalkFamily 1 com.apple.driver.mDNSOffloadUserClient 1.0.1b8 com.apple.iokit.IONetworkingFamily 3.4 com.apple.iokit.IOSerialFamily 11 com.apple.driver.AppleSEPManager 1.0.1 com.apple.driver.AppleA7IOP 1.0.2 com.apple.driver.IOSlaveProcessor 1 com.apple.driver.AppleBiometricSensor 2 com.apple.iokit.IOHIDFamily 2.0.0 com.apple.AUC 1.0 com.apple.iokit.IOAVFamily 1.0.0 com.apple.iokit.IOHDCPFamily 1.0.0 com.apple.iokit.IOCECFamily 1 com.apple.iokit.IOAudio2Family 1.0 com.apple.driver.AppleEmbeddedAudioLibs 1.17 com.apple.driver.AppleFirmwareUpdateKext 1 com.apple.driver.AppleM2ScalerCSCDriver 265.0.0 com.apple.iokit.IOSurface 290.8.1 com.apple.driver.IODARTFamily 1 com.apple.security.quarantine 4 com.apple.security.sandbox 300.0 com.apple.kext.AppleMatch 1.0.0d1 com.apple.driver.AppleMobileFileIntegrity 1.0.5 com.apple.kext.CoreTrust 1 com.apple.security.AppleImage4 3.0.0 com.apple.iokit.IOCryptoAcceleratorFamily 1.0.1 com.apple.driver.AppleARMPlatform 1.0.2 com.apple.iokit.IOStorageFamily 2.1 com.apple.iokit.IOSlowAdaptiveClockingFamily 1.0.0 com.apple.iokit.IOReportFamily 47 com.apple.kec.pthread 1 com.apple.kec.corecrypto 11.1 com.apple.kec.Libm 1

Stackshot Succeeded Bytes Traced 506911 (Uncompressed 1310896) **

josh-signal commented 3 years ago

Which Signal version are you on?

robwilkes commented 3 years ago

at the time it was 5.12.2, I have the debug log, is it safe to attach here?

ksaadDE commented 3 years ago

Are you sure it was Signal? If it's a Mac Book Air a few people have already reported that their macs got in trouble: https://www.reddit.com/r/MacOS/comments/p05ut5/m1_mac_random_crash/

Seems to be again such a case where Apple bugs their system xD

robwilkes commented 3 years ago

It could be, however the crash dump specifically points at the Signal Helper process which looks to be related to Signal Desktop.

The link you provided says the faulting task was ‘kernel_task’ not Signal Helper, but I guess it could be a generic issue and the task identified a symptom and not the cause, however it’s the only thing I have to go off of.

On 16 Aug 2021, at 10:06 am, Karim @.***> wrote:

Are you sure it was Signal? If it's a Mac Book Air a few people have already reported that their macs got in trouble: https://www.reddit.com/r/MacOS/comments/p05ut5/m1_mac_random_crash/ https://www.reddit.com/r/MacOS/comments/p05ut5/m1_mac_random_crash/ Seems to be again such a case where Apple bugs their system xD

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/signalapp/Signal-Desktop/issues/5442#issuecomment-899132490, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDMAYGQ6ECTEZJZA4MTTVTT5BJCDANCNFSM5BVDFRYA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

ksaadDE commented 3 years ago

It could be, however the crash dump specifically points at the Signal Helper process which looks to be related to Signal Desktop. The link you provided says the faulting task was ‘kernel_task’ not Signal Helper, but I guess it could be a generic issue and the task identified a symptom and not the cause, however it’s the only thing I have to go off of. On 16 Aug 2021, at 10:06 am, Karim @.***> wrote: Are you sure it was Signal? If it's a Mac Book Air a few people have already reported that their macs got in trouble: https://www.reddit.com/r/MacOS/comments/p05ut5/m1_mac_random_crash/ https://www.reddit.com/r/MacOS/comments/p05ut5/m1_mac_random_crash/ Seems to be again such a case where Apple bugs their system xD — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#5442 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDMAYGQ6ECTEZJZA4MTTVTT5BJCDANCNFSM5BVDFRYA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

I'm not a Apple expert, but as far as I know Apple does a lot to protect their Kernel and so on (sandboxing, etc) So I guess the Signal App, including the Helper, wouldn't run in any task near the kernel. Therefore I would argue it's a top down problem, so the kernel itself has some issue and kills the signal helper and points at the Signal Helper.

Also I guess the Signal Helper is also written with electron, as far as I know, electron uses heavily safe code.

indutny-signal commented 3 years ago

@robwilkes sorry you ran into it. Few questions: did you have any additional crashes like this after initial report? Do you happen to see any crashes with other electron apps like Slack or Discord?

I honestly don't know if there's much we can do about it since Signal is just a user-land Electron app and although we have some C++/Rust code that we use - it shouldn't be able to crash your OS.

robwilkes commented 3 years ago

Hi @indutny-signal . Haven't experienced any other crashes in the 9 weeks prior, and the two weeks post, with Signal, Discord or VSCode..

Happy to accept it's an anomaly that maybe isn't related to Signal despite the crash report.

indutny-signal commented 3 years ago

Appreciate your prompt response. I'll tentatively close the issue, but feel free to post more info here or reopen it if you ever see a crash like that again. Hope it will run smoothly for you from now on, though!