Giter Club home page Giter Club logo

Comments (6)

arkamar avatar arkamar commented on June 30, 2024 1

It appears that the panic is being caused by node, not entr. Specifically, the following message suggests that the panic occurred in a task associated with node:

Panicked task 0xfffffe1b356eb590: 2242 pages, 7 threads: pid 93012: node

Additionally, it seems likely that the previous panic was caused by prometheus rather than entr.

entr sends a SIGTERM signal to the child process group whenever any file in the repository is saved. You could attempt to spawn npx react-scripts build && npx ts-node app.ts in the console, possibly in a loop with

while true; do
   npx react-scripts build && npx ts-node app.ts
done

and then send a SIGTERM signal from another console. If this results in a panic, it is likely that entr is not the cause of the issue.

from entr.

eradman avatar eradman commented on June 30, 2024

I wasn't able to easily reproduce this. Try logging the state of processes when you try to restart:

while sleep 1; do
  date
  ps -x
done > ps_log

Then when your Mac starts up again see if processes are in an unexpected state (U for example)

Does it matter if reboot from the terminal?

sudo shutdown -r now

from entr.

ChannyClaus avatar ChannyClaus commented on June 30, 2024

I wasn't able to easily reproduce this. Try logging the state of processes when you try to restart:

while sleep 1; do
  date
  ps -x
done > ps_log

Then when your Mac starts up again see if processes are in an unexpected state (U for example)

Does it matter if reboot from the terminal?

sudo shutdown -r now

thanks for the quick response!

also sorry i don't think i was super clear before - the reboot seems to be forced in the sense that i did not manually reboot the laptop, rather the kernel crashes (once rebooted, MacOS gives you a pop up telling you that kernel crashed).

let me see if i can prepare a small script to reliably reproduce this at least on my machine.

[UPDATE] just got that again - somehow the small examples that i've been using fails to reproduce the issue but git ls-files | entr -s -r "npx react-scripts build && npx ts-node app.ts" (where app.ts is an express server) seems to eventually trigger it. the below is the report that macos shows on reboot (doesn't seem particularly illuminating to me but maybe it is for others?):

panic(cpu 4 caller 0xfffffe002fc07a8c): Kernel data abort. at pc 0xfffffe002f96c234, lr 0x6dc67e002f96c1fc (saved state: 0xfffffe8ffde0b7c0)
	  x0:  0x0000000000000000 x1:  0xfffffe167370c828  x2:  0xfffffe8ffde0bbe0  x3:  0x00000000ffffffff
	  x4:  0x0000000000000021 x5:  0x0000000000000000  x6:  0x0000000000000017  x7:  0x0000000000000000
	  x8:  0x0000000000000000 x9:  0x0000000000000000  x10: 0x0000000000000001  x11: 0x0000000000000008
	  x12: 0x0000000000000010 x13: 0xfffffe3018d1c000  x14: 0x0000000000000001  x15: 0x00000000000000a8
	  x16: 0xfffffe2999ae8b80 x17: 0x0000000000002abe  x18: 0x0000000000000000  x19: 0xfffffe1b24a1e100
	  x20: 0xfffffe299a063200 x21: 0xfffffe2999ae8b80  x22: 0xfffffe8ffde0bbe0  x23: 0xfffffe1b35a069b0
	  x24: 0xfffffe0032e9e000 x25: 0xfffffe8ffde0bbe0  x26: 0x0000000000000016  x27: 0xfffffe167370c828
	  x28: 0x0000000000000017 fp:  0xfffffe8ffde0bb40  lr:  0x6dc67e002f96c1fc  sp:  0xfffffe8ffde0bb10
	  pc:  0xfffffe002f96c234 cpsr: 0x00401208         esr: 0x96000006          far: 0x0000000000000018

Debugger message: panic
Memory ID: 0x6
OS release type: User
OS version: 21G419
Kernel version: Darwin Kernel Version 21.6.0: Mon Dec 19 20:45:43 PST 2022; root:xnu-8020.240.18~2/RELEASE_ARM64_T8110
Fileset Kernelcache UUID: AFAF992DECC7E1371B90D3AE45E2B475
Kernel UUID: D48AA4F6-D3B0-313C-8D47-1BFA73FB6F5D
iBoot version: iBoot-7459.141.1
secure boot?: YES
Paniclog version: 13
KernelCache slide: 0x0000000027ae8000
KernelCache base:  0xfffffe002eaec000
Kernel slide:      0x00000000282b4000
Kernel text base:  0xfffffe002f2b8000
Kernel text exec slide: 0x000000002839c000
Kernel text exec base:  0xfffffe002f3a0000
mach_absolute_time: 0x1e0b18c123a
Epoch Time:        sec       usec
  Boot    : 0x6425f6a8 0x000267a5
  Sleep   : 0x6428eab9 0x000a1a6d
  Wake    : 0x6428ead8 0x000392ef
  Calendar: 0x6428f3c4 0x000ef20c

Zone info:
  Zone map: 0xfffffe1000d0c000 - 0xfffffe3000d0c000
  . VM    : 0xfffffe1000d0c000 - 0xfffffe14cd9d8000
  . RO    : 0xfffffe14cd9d8000 - 0xfffffe1667370000
  . GEN0  : 0xfffffe1667370000 - 0xfffffe1b3403c000
  . GEN1  : 0xfffffe1b3403c000 - 0xfffffe2000d08000
  . GEN2  : 0xfffffe2000d08000 - 0xfffffe24cd9d4000
  . GEN3  : 0xfffffe24cd9d4000 - 0xfffffe299a6a0000
  . DATA  : 0xfffffe299a6a0000 - 0xfffffe3000d0c000
  Metadata: 0xfffffe3010d1c000 - 0xfffffe3018d1c000
  Bitmaps : 0xfffffe3018d1c000 - 0xfffffe30217bc000

CORE 0 recently retired instr at 0xfffffe002f52d004
CORE 1 recently retired instr at 0xfffffe002f52d004
CORE 2 recently retired instr at 0xfffffe002f52d004
CORE 3 recently retired instr at 0xfffffe002f52d004
CORE 4 recently retired instr at 0xfffffe002f52ba78
CORE 5 recently retired instr at 0xfffffe002f52d008
CORE 6 recently retired instr at 0xfffffe002f52d008
CORE 7 recently retired instr at 0xfffffe002f52d008
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: 1045651 - First lock was acquired at PC=0xfffffe002fc2b634, LR=0xfffffe002f3a7eb4
CORE 0: PC=0xfffffe002f4bb3dc, LR=0xfffffe002f4b7f14, FP=0xfffffe8ffe95bc60
CORE 1: PC=0xfffffe002f5223d8, LR=0xfffffe002f96c1fc, FP=0xfffffe8fff273b00
CORE 2: PC=0xfffffe002f426c30, LR=0xfffffe002f426c2c, FP=0xfffffe8fff1f3f00
CORE 3: PC=0xfffffe002f426c2c, LR=0xfffffe002f426c2c, FP=0xfffffe8fff8abf00
CORE 4 is the one that panicked. Check the full backtrace for details.
CORE 5: PC=0x0000000100d552fc, LR=0x0000000100d552b4, FP=0x0000000171e76d50
CORE 6: PC=0x0000000100cd0648, LR=0x0000000100cd0638, FP=0x000000017166e9d0
CORE 7: PC=0xfffffe002f512770, LR=0xfffffe002fc2b874, FP=0xfffffe00347dbe30
Compressor Info: 3% of compressed pages limit (OK) and 4% of segments limit (OK) with 0 swapfiles and OK swap space
Panicked task 0xfffffe1b356eb590: 2242 pages, 7 threads: pid 93012: node
Panicked thread: 0xfffffe167370c828, backtrace: 0xfffffe8ffde0ae80, tid: 2106770
		  lr: 0xfffffe002f3f2630  fp: 0xfffffe8ffde0aef0
		  lr: 0xfffffe002f3f230c  fp: 0xfffffe8ffde0af60
		  lr: 0xfffffe002f533398  fp: 0xfffffe8ffde0af80
		  lr: 0xfffffe002f5258d8  fp: 0xfffffe8ffde0aff0
		  lr: 0xfffffe002f523288  fp: 0xfffffe8ffde0b0b0
		  lr: 0xfffffe002f3a7784  fp: 0xfffffe8ffde0b0c0
		  lr: 0xfffffe002f3f1fa8  fp: 0xfffffe8ffde0b460
		  lr: 0xfffffe002f3f1fa8  fp: 0xfffffe8ffde0b4d0
		  lr: 0xfffffe002fbfed3c  fp: 0xfffffe8ffde0b4f0
		  lr: 0xfffffe002fc07a8c  fp: 0xfffffe8ffde0b670
		  lr: 0xfffffe002f5256d8  fp: 0xfffffe8ffde0b6e0
		  lr: 0xfffffe002f523354  fp: 0xfffffe8ffde0b7a0
		  lr: 0xfffffe002f3a7784  fp: 0xfffffe8ffde0b7b0
		  lr: 0xfffffe002f96c1fc  fp: 0xfffffe8ffde0bb40
		  lr: 0xfffffe002f906f2c  fp: 0xfffffe8ffde0bbb0
		  lr: 0xfffffe002f906a5c  fp: 0xfffffe8ffde0bc60
		  lr: 0xfffffe002f9077f0  fp: 0xfffffe8ffde0bc80
		  lr: 0xfffffe002f8f6c2c  fp: 0xfffffe8ffde0bce0
		  lr: 0xfffffe002f8f7958  fp: 0xfffffe8ffde0bdb0
		  lr: 0xfffffe002fa45220  fp: 0xfffffe8ffde0be50
		  lr: 0xfffffe002f523450  fp: 0xfffffe8ffde0bf10
		  lr: 0xfffffe002f3a7784  fp: 0xfffffe8ffde0bf20

last started kext at 1314450270: com.apple.driver.driverkit.serial	6.0.0 (addr 0xfffffe002f190d60, size 3416)
loaded kexts:
com.apple.filesystems.autofs	3.0
com.apple.UVCService	1
com.apple.driver.AppleTopCaseHIDEventDriver	5450.8
com.apple.driver.CoreKDL	1
com.apple.driver.AppleBiometricServices	1
com.apple.driver.usb.AppleUSBHostBillboardDevice	1.0
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.BCMWLANFirmware4387.Hashstore	1
com.apple.driver.BCMWLANFirmware4378.Hashstore	1
com.apple.driver.SEPHibernation	1
com.apple.driver.AppleUSBDeviceNCM	5.0.0
com.apple.driver.AppleThunderboltIP	4.0.3
com.apple.driver.AppleSmartBatteryManager	161.0.0
com.apple.driver.AppleALSColorSensor	1.0.0d1
com.apple.driver.AppleAOPVoiceTrigger	140.1
com.apple.driver.AppleFileSystemDriver	3.0.1
com.apple.nke.l2tp	1.9
com.apple.filesystems.tmpfs	1
com.apple.filesystems.lifs	1
com.apple.filesystems.apfs	1934.141.2
com.apple.IOTextEncryptionFamily	1.0.0
com.apple.filesystems.hfs.kext	583.100.10
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.AppleCS42L84Audio	550.3
com.apple.AppleEmbeddedSimpleSPINORFlasher	1
com.apple.driver.AppleTypeCRetimer	1.0.0
com.apple.driver.AppleSN012776Amp	550.3
com.apple.driver.AppleSmartIO2	1
com.apple.driver.AppleSPMIPMU	1.0.1
com.apple.driver.ApplePMPFirmware	1
com.apple.driver.AppleDPDisplayTCON	1
com.apple.driver.usb.AppleSynopsysUSB40XHCI	1
com.apple.driver.AudioDMAController-T8112	160.2
com.apple.driver.AppleEventLogHandler	1
com.apple.driver.AppleMobileDispH14G-DCP	140.0
com.apple.driver.AppleSamsungSerial	1.0.0d1
com.apple.driver.AppleSerialShim	1
com.apple.AGXG14G	190.22.3
com.apple.driver.AppleProResHW	177.0.0
com.apple.driver.AppleAVD	570
com.apple.driver.AppleAVE2	560.5.0
com.apple.driver.AppleJPEGDriver	4.8.1
com.apple.driver.AppleT8020SOCTuner	1
com.apple.driver.AppleT8112CLPC	1
com.apple.driver.AppleS5L8960XNCO	1
com.apple.driver.AppleT8112PMGR	1
com.apple.driver.AppleS8000AES	1
com.apple.driver.AppleS8000DWI	1.0.0d1
com.apple.driver.AppleInterruptControllerV2	1.0.0d1
com.apple.driver.AppleT8110DART	1
com.apple.driver.AppleBluetoothModule	1
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.AppleT8110	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	126.141.2
com.apple.AppleSystemPolicy	2.0.0
com.apple.nke.applicationfirewall	402
com.apple.kec.InvalidateHmac	1
com.apple.kec.AppleEncryptedArchive	1
com.apple.driver.driverkit.serial	6.0.0
com.apple.kext.triggers	1.0
com.apple.iokit.IOAVBFamily	1040.6
com.apple.plugin.IOgPTPPlugin	1040.3
com.apple.iokit.IOEthernetAVBController	1.1.0
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.AppleHSBluetoothDriver	5450.8
com.apple.driver.IOBluetoothHIDDriver	9.0.0
com.apple.driver.AppleActuatorDriver	5460.1
com.apple.driver.AppleMultitouchDriver	5460.1
com.apple.driver.AppleHIDKeyboard	228.2
com.apple.driver.AppleMesaSEPDriver	100.99
com.apple.iokit.IOBiometricFamily	1
com.apple.driver.usb.IOUSBHostHIDDevice	1.2
com.apple.driver.DiskImages.KernelBacked	493.0.0
com.apple.driver.AppleThunderboltUSBUpAdapter	1.0.4
com.apple.driver.AppleThunderboltDPOutAdapter	8.5.1
com.apple.driver.AppleThunderboltPCIUpAdapter	4.1.1
com.apple.driver.AppleXsanScheme	3
com.apple.driver.usb.cdc	5.0.0
com.apple.driver.AppleUSBAudio	416.2
com.apple.iokit.IOAudioFamily	340.2
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.usb.networking	5.0.0
com.apple.driver.AppleConvergedIPCOLYBTControl	1
com.apple.driver.AppleConvergedPCI	1
com.apple.driver.AppleBluetoothDebug	1
com.apple.driver.AppleBTM	1.0.1
com.apple.driver.AppleThunderboltUSBDownAdapter	1.0.4
com.apple.driver.AppleThunderboltDPInAdapter	8.5.1
com.apple.driver.AppleThunderboltDPAdapterFamily	8.5.1
com.apple.driver.AppleThunderboltPCIDownAdapter	4.1.1
com.apple.driver.AppleAOPAudio	150.2
com.apple.nke.ppp	1.9
com.apple.driver.AppleBSDKextStarter	3
com.apple.filesystems.hfs.encodings.kext	1
com.apple.driver.AppleStockholmControl	1.0.0
com.apple.iokit.IONVMeFamily	2.1.0
com.apple.driver.AppleHPM	3.4.4
com.apple.driver.AppleDCPDPTXProxy	1.0.0
com.apple.driver.AppleDiagnosticDataAccessReadOnly	1.0.0
com.apple.driver.AppleNANDConfigAccess	1.0.0
com.apple.driver.DCPDPFamilyProxy	1
com.apple.driver.AppleSPU	1
com.apple.driver.AppleCSEmbeddedAudio	550.3
com.apple.driver.AppleEmbeddedAudio	550.3
com.apple.iokit.AppleARMIISAudio	140.2
com.apple.driver.AppleDialogPMU	1.0.1
com.apple.driver.AppleSPMI	1.0.1
com.apple.driver.AppleHIDTransportFIFO	5460.1
com.apple.driver.AppleHIDTransport	5460.1
com.apple.driver.AppleInputDeviceSupport	5460.1
com.apple.driver.AppleDockChannel	1
com.apple.driver.AppleSART	1
com.apple.driver.DCPAVFamilyProxy	1
com.apple.driver.AppleUSBXDCIARM	1.0
com.apple.driver.AppleUSBXDCI	1.0
com.apple.iokit.IOUSBDeviceFamily	2.0.0
com.apple.driver.usb.AppleSynopsysUSBXHCI	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.AppleT8112TypeCPhy	1
com.apple.driver.AppleT8103TypeCPhy	1
com.apple.driver.AppleH13CameraInterface	6.51.2
com.apple.driver.AppleH10PearlCameraInterface	17.0.6
com.apple.driver.AppleH11ANEInterface	5.68.0
com.apple.AGXFirmwareKextG14GRTBuddy	1
com.apple.AGXFirmwareKextRTBuddy64	190.22.3
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.iokit.IOGPUFamily	35.29
com.apple.driver.usb.AppleUSBHostPacketFilter	1.0
com.apple.driver.ApplePassthroughPPM	3.0
com.apple.driver.ApplePMGR	1
com.apple.driver.AppleARMWatchdogTimer	1
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.81
com.apple.driver.AppleT8103PCIeC	1
com.apple.iokit.IOThunderboltFamily	9.3.3
com.apple.driver.ApplePIODMA	1
com.apple.driver.AppleT8112PCIe	1
com.apple.driver.AppleMultiFunctionManager	1
com.apple.driver.AppleBluetoothDebugService	1
com.apple.driver.AppleBCMWLANCore	1.0.0
com.apple.iokit.IO80211Family	1200.12.2b2
com.apple.driver.IOImageLoader	1.0.0
com.apple.driver.AppleOLYHAL	1
com.apple.driver.corecapture	1.0.4
com.apple.driver.AppleEmbeddedPCIE	1
com.apple.driver.AppleMCA2-T8112	640.5
com.apple.driver.AppleEmbeddedAudioLibs	140.1
com.apple.driver.AppleFirmwareUpdateKext	1
com.apple.driver.AppleGPIOICController	1.0.2
com.apple.driver.AppleFireStormErrorHandler	1
com.apple.driver.AppleMobileApNonce	1
com.apple.iokit.IOTimeSyncFamily	1040.3
com.apple.driver.DiskImages	493.0.0
com.apple.iokit.IOGraphicsFamily	597
com.apple.iokit.IOBluetoothSerialManager	9.0.0
com.apple.iokit.IOBluetoothHostControllerUSBTransport	9.0.0
com.apple.iokit.IOBluetoothHostControllerUARTTransport	9.0.0
com.apple.iokit.IOBluetoothHostControllerTransport	9.0.0
com.apple.driver.IOBluetoothHostControllerPCIeTransport	9.0.0
com.apple.iokit.IOBluetoothFamily	9.0.0
com.apple.driver.FairPlayIOKit	68.16.0
com.apple.iokit.CSRBluetoothHostControllerUSBTransport	9.0.0
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport	9.0.0
com.apple.driver.AppleSSE	1.0
com.apple.driver.AppleSEPKeyStore	2
com.apple.driver.AppleUSBTDM	533.120.2
com.apple.iokit.IOUSBMassStorageDriver	210.120.3
com.apple.iokit.IOPCIFamily	2.9
com.apple.iokit.IOSCSIBlockCommandsDevice	456.140.3
com.apple.iokit.IOSCSIArchitectureModelFamily	456.140.3
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.0
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.iokit.CoreAnalyticsFamily	1
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.AppleIISController	140.1
com.apple.driver.AppleAudioClockLibs	140.1
com.apple.driver.AppleM2ScalerCSCDriver	265.0.0
com.apple.iokit.IOSurface	302.14
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.security.AppleImage4	4.2.0
com.apple.kext.CoreTrust	1
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.Libm	1
com.apple.kec.corecrypto	12.0



** Stackshot Succeeded ** Bytes Traced 586537 (Uncompressed 1542736) **

from entr.

ChannyClaus avatar ChannyClaus commented on June 30, 2024

hmm yeah, i think you're right that the process that caused the crash was running node.
unfortunately though, i'm unable to reproduce the panic via sending a SIGTERM signal or even with entr on a small program.

i'll close this issue - at least if someone else runs into a similar issue when using entr with some other server process they will see this and maybe chime in. can update this further if i manage to narrow this down / successfully reproduce better.

from entr.

robjwells avatar robjwells commented on June 30, 2024

I've encountered something similar, also on MacOS (12.6.8), though the details differ — not using -r and not a server process.

System details:

uname -a
Darwin Icarus.local 21.6.0 Darwin Kernel Version 21.6.0: Thu Jul  6 22:18:26 PDT 2023;
root:xnu-8020.240.18.702.13~1/RELEASE_X86_64 x86_64

entr
release: 5.5
usage: entr [-acdnprsz] utility [argument [/_] ...] < filenames

In my case the offending command is:

fd . -e rs -e toml | entr -c cargo test

And the system locks up, forcing a manual restart, when I send Ctrl-C to quit entr (after cargo test itself has finished). I've included the crash log below; the panicked process is nu because I use it as a shell.

Crash report
panic(cpu 2 caller 0xffffff801dfcd373): Kernel trap at 0xffffff801e496d03, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0x0000000000000018, CR3: 0x000000021c3a21b8, CR4: 0x00000000003626e0
RAX: 0x0000000000000000, RBX: 0xffffff8ba1863d80, RCX: 0x0000000000000000, RDX: 0x0000000003000000
RSP: 0xffffffadc5e5bc60, RBP: 0xffffffadc5e5bc70, RSI: 0xffffff86d6159400, RDI: 0x0000000000000000
R8:  0xffffff801dfc19d0, R9:  0x000000007105c110, R10: 0xffffff8024ff8a80, R11: 0xffffff9a075b93d8
R12: 0x0000000000000000, R13: 0xffffff8ba1863d80, R14: 0xffffff86d6159400, R15: 0xffffff953b443c80
RFL: 0x0000000000010203, RIP: 0xffffff801e496d03, CS:  0x0000000000000008, SS:  0x0000000000000000
Fault CR2: 0x0000000000000018, Error code: 0x0000000000000000, Fault CPU: 0x2, PL: 0, VF: 0

Panicked task 0xffffff9a075b9380: 1 threads: pid 38267: nu
Backtrace (CPU 2), panicked thread: 0xffffff9a04d5eaa0, Frame : Return Address
0xffffffadc5e5b610 : 0xffffff801de7af5d 
0xffffffadc5e5b660 : 0xffffff801dfddc16 
0xffffffadc5e5b6a0 : 0xffffff801dfccf83 
0xffffffadc5e5b6f0 : 0xffffff801de1aa70 
0xffffffadc5e5b710 : 0xffffff801de7b32d 
0xffffffadc5e5b830 : 0xffffff801de7aae6 
0xffffffadc5e5b890 : 0xffffff801e714703 
0xffffffadc5e5b980 : 0xffffff801dfcd373 
0xffffffadc5e5bb00 : 0xffffff801dfcd056 
0xffffffadc5e5bb50 : 0xffffff801de1aa70 
0xffffffadc5e5bb70 : 0xffffff801e496d03 
0xffffffadc5e5bc70 : 0xffffff801e42bdd3 
0xffffffadc5e5bcc0 : 0xffffff801e42c85d 
0xffffffadc5e5bd00 : 0xffffff801e41ee29 
0xffffffadc5e5bd60 : 0xffffff801e445863 
0xffffffadc5e5be20 : 0xffffff801dec7954 
0xffffffadc5e5beb0 : 0xffffff801decc20a 
0xffffffadc5e5bee0 : 0xffffff801de7108c 
0xffffffadc5e5bf10 : 0xffffff801de1aa3c 

Process name corresponding to current thread (0xffffff9a04d5eaa0): nu

Mac OS version:
21G725

Kernel version:
Darwin Kernel Version 21.6.0: Thu Jul  6 22:18:26 PDT 2023; root:xnu-8020.240.18.702.13~1/RELEASE_X86_64
Kernel UUID: C974BFD5-3B50-3203-B85D-4423836CE406
KernelCache slide: 0x000000001dc00000
KernelCache base:  0xffffff801de00000
Kernel slide:      0x000000001dc10000
Kernel text base:  0xffffff801de10000
__HIB  text base: 0xffffff801dd00000
System model name: MacBookAir7,2 (Mac-937CB26E2E02BB01)
System shutdown begun: NO
Panic diags file available: YES (0x0)
Hibernation exit count: 1

System uptime in nanoseconds: 1268641254256556
Last Sleep:           absolute           base_tsc          base_nano
  Uptime  : 0x000481d28f4eb4a2
  Sleep   : 0x0000ddb7fea45937 0x000032d065cab3d6 0x0000daea4ae68ee7
  Wake    : 0x0000ddb810211503 0x000038b593dd690d 0x0000ddb80f155b20
Compressor Info: 9% of compressed pages limit (OK) and 10% of segments limit (OK) with 2 swapfiles and OK swap space
Zone info:
  Zone map: 0xffffff806e9b5000 - 0xffffffa06e9b5000
  . PGZ   : 0xffffff806e9b5000 - 0xffffff806f9b6000
  . VM    : 0xffffff806f9b6000 - 0xffffff853c41c000
  . RO    : 0xffffff853c41c000 - 0xffffff86d5ce8000
  . GEN0  : 0xffffff86d5ce8000 - 0xffffff8ba274e000
  . GEN1  : 0xffffff8ba274e000 - 0xffffff906f1b4000
  . GEN2  : 0xffffff906f1b4000 - 0xffffff953bc1a000
  . GEN3  : 0xffffff953bc1a000 - 0xffffff9a08681000
  . DATA  : 0xffffff9a08681000 - 0xffffffa06e9b5000
  Metadata: 0xffffffcaf3cdf000 - 0xffffffcb13cdf000
  Bitmaps : 0xffffffcb13cdf000 - 0xffffffcb16cdf000

last started kext at 677809550602577: @filesystems.msdosfs	1.10 (addr 0xffffff7fb72b1000, size 57344)
last stopped kext at 686031108426421: >!UAudio	416.2 (addr 0xffffff7fb6c1c000, size 335872)
loaded kexts:
@filesystems.smbfs	4.0
>!AUpstreamUserClient	3.6.9
>AudioAUUC	1.70
>AGPM	129
>!APlatformEnabler	2.7.0d0
>X86PlatformShim	1.0.0
@filesystems.autofs	3.0
>!AGraphicsDevicePolicy	6.5.7
@AGDCPluginDisplayMetrics	6.5.7
>pmtelemetry	1
|IOUserEthernet	1.0.1
>usb.!UUserHCI	1
>eficheck	1
>!ALPC	3.1
>!AHDA	340.2
>!AHV	1
>!ADiskImages2	126.141.2
>!A!IBDWGraphics	18.0.8
>!ASMCLMU	212
>!ACameraInterface	7.9.1
>!ABacklight	180.8
>!A!IBDWGraphicsFramebuffer	18.0.8
>!A!ISlowAdaptiveClocking	4.0.0
>!AThunderboltIP	4.0.3
>!AMCCSControl	1.16
>!UODD	533.120.2
>!ARAID	5.1.0
|SCSITaskUserClient	456.140.3
>usb.realtek8153patcher	5.0.0
>!UCardReader	533.120.2
>!AFileSystemDriver	3.0.1
@filesystems.tmpfs	1
@filesystems.lifs	1
@filesystems.hfs.kext	583.100.10
@BootCache	40
@!AFSCompression.!AFSCompressionTypeZlib	1.0.0
@!AFSCompression.!AFSCompressionTypeDataless	1.0.0d1
>!ATopCaseHIDEventDriver	5450.8
@filesystems.apfs	1934.141.2
>AirPort.BrcmNIC	1400.1.1
>!AAHCIPort	351.100.4
@private.KextAudit	1.0
>!ARTC	2.0.1
>!ASmartBatteryManager	161.0.0
>!AACPIButtons	6.1
>!AHPET	1.8
>!ASMBIOS	2.1
>!AACPIEC	6.1
>!AAPIC	1.7
@!ASystemPolicy	2.0.0
@nke.applicationfirewall	402
|IOKitRegistryCompatibility	1
|EndpointSecurity	1
@Dont_Steal_Mac_OS_X	7.0.0
@kec.!AEncryptedArchive	1
>usb.cdc.ncm	5.0.0
>!UMergeNub	900.4.2
>driverkit.serial	6.0.0
@kext.triggers	1.0
>!AGraphicsControl	6.5.7
|IO!BSerialManager	9.0.0
|IO!BPacketLogger	9.0.0
|IO!BHost!CUSBTransport	9.0.0
|IO!BHost!CUARTTransport	9.0.0
|IO!BHost!CTransport	9.0.0
>IO!BHost!CPCIeTransport	9.0.0
|IOAVB!F	1040.6
@plugin.IOgPTPPlugin	1040.3
|IOEthernetAVB!C	1.1.0
|CSR!BHost!CUSBTransport	9.0.0
|Broadcom!BHost!CUSBTransport	9.0.0
|Broadcom!B20703USBTransport	9.0.0
>DspFuncLib	340.2
@kext.OSvKernDSPLib	529
>!AIPAppender	1.0
>!AHDA!C	340.2
|IOHDA!F	340.2
>!ABacklightExpert	1.1.0
|IONDRVSupport	597
|IOAccelerator!F2	462.9
|IOSerial!F	11
@!AGPUWrangler	6.5.7
@!AGraphicsDeviceControl	6.5.7
|IOSlowAdaptiveClocking!F	1.0.0
>X86PlatformPlugin	1.0.0
>IOPlatformPlugin!F	6.0.0d8
|IOAudio!F	340.2
@vecLib.kext	1.2.0
>!AAudioClockLibs	140.1
|IOGraphics!F	597
>!ASMBus!C	1.0.18d1
|IOSCSIMultimediaCommandsDevice	456.140.3
|IOBD!S!F	1.8
|IODVD!S!F	1.8
|IOCD!S!F	1.8
>usb.IOUSBHostHIDDevice	1.2
>!AThunderboltPCIUpAdapter	4.1.1
>!AThunderboltDPOutAdapter	8.5.1
>!AThunderboltDPInAdapter	8.5.1
>!AThunderboltDPAdapter!F	8.5.1
>!AThunderboltPCIDownAdapter	4.1.1
>usb.cdc.ecm	5.0.0
>usb.cdc	5.0.0
>usb.networking	5.0.0
>usb.!UHostCompositeDevice	1.2
>usb.!UHub	1.2
>!ABSDKextStarter	3
|IOSurface	302.15
@filesystems.hfs.encodings.kext	1
>!AMultitouchDriver	5460.1
>!AInputDeviceSupport	5460.1
>!AHS!BDriver	5450.8
>IO!BHIDDriver	9.0.0
>!AHIDKeyboard	228.2
>!AHSSPIHIDDriver	63
>!AXsanScheme	3
>!AThunderboltNHI	7.2.81
|IOThunderbolt!F	9.3.3
|IOAHCIBlock!S	333.140.2
|IO80211!FLegacy	1200.12.2b1
|IOSkywalk!F	1.0
>mDNSOffloadUserClient	1.0.1b8
>corecapture	1.0.4
|IOAHCI!F	297
>usb.!UHostPacketFilter	1.0
|IOUSB!F	900.4.2
>!AHSSPISupport	63
>!A!ILpssSpi!C	3.0.60
>!A!ILpssI2C	3.0.60
>!A!ILpssGspi	3.0.60
>!A!ILpssDmac	3.0.60
>usb.!UXHCIPCI	1.2
>usb.!UXHCI	1.2
>!AEFINVRAM	2.1
>!AEFIRuntime	2.1
|IOSMBus!F	1.1
|IOHID!F	2.0.0
|IOTimeSync!F	1040.3
|IONetworking!F	3.4
>DiskImages	493.0.0
|IO!B!F	9.0.0
|IOReport!F	47
$quarantine	4
$sandbox	300.0
@kext.!AMatch	1.0.0d1
|CoreAnalytics!F	1
>!ASSE	1.0
>!AKeyStore	2
>!UTDM	533.120.2
|IOUSBMass!SDriver	210.120.3
|IOSCSIBlockCommandsDevice	456.140.3
|IO!S!F	2.1
|IOSCSIArchitectureModel!F	456.140.3
>!AMobileFileIntegrity	1.0.5
$!AImage4	4.2.0
@kext.CoreTrust	1
>!AFDEKeyStore	28.30
>!AEffaceable!S	1.0
>!ACredentialManager	1.0
>KernelRelayHost	1
|IOUSBHost!F	1.2
>!UHostMergeProperties	1.2
>usb.!UCommon	1.0
>!ABusPower!C	1.0
>!ASEPManager	1.0.1
>IOSlaveProcessor	1
>!AACPIPlatform	6.1
>!ASMC	3.1.9
|IOPCI!F	2.9
|IOACPI!F	1.4
>watchdog	1
@kec.pthread	1
@kec.Libm	1
@kec.corecrypto	12.0

from entr.

eradman avatar eradman commented on June 30, 2024

I don't see how entr relates to to this panic, but perhaps somebody will spot a pattern.

It's also not clear to me weather this is the result of faulty hardware or an instability in MacOS...normally user-space programs cannot crash the OS!

from entr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.