cron stopped running jobs, dyld_process_snapshot_get_shared_cache failed

Hi, I set up a cron job 2months ago, and it has been running successfully everyday until recently. Now it seems cron doesn't run any job at all. And when I run this in Terminal:

/usr/sbin/cron start 


I get

zsh: killed     /usr/sbin/cron start



At the same time, I get the following from Console -> Crash Reports:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Incident Identifier: D7A302D1-0881-4D46-A44F-7560A9E2BBEF
CrashReporter Key:   1973C67A-AF0E-6A9A-DC8C-B88F481FEFE3
Hardware Model:      Mac14,9
Process:             cron [12861]
Path:                /usr/sbin/cron
Identifier:          cron
Version:             ???
Code Type:           ARM-64 (Native)
Role:                Unspecified
Parent Process:      zsh [785]
Coalition:           com.apple.Terminal [1042]
Responsible Process: Terminal [781]

Date/Time:           2025-05-16 15:50:53.5738 +0800
Launch Time:         2025-05-16 15:50:53.5675 +0800
OS Version:          macOS 15.4.1 (24E263)
Release Type:        User
Report Version:      104

Exception Type:  EXC_CRASH (SIGKILL (Code Signature Invalid))
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: CODESIGNING 4 Launch Constraint Violation

Triggered by Thread:  0

Thread 0 Crashed:
0   dyld_path_missing             	       0x1051d47c0 _dyld_start + 0


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x0000000000000000   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x0000000000000000   x9: 0x0000000000000000  x10: 0x0000000000000000  x11: 0x0000000000000000
   x12: 0x0000000000000000  x13: 0x0000000000000000  x14: 0x0000000000000000  x15: 0x0000000000000000
   x16: 0x0000000000000000  x17: 0x0000000000000000  x18: 0x0000000000000000  x19: 0x0000000000000000
   x20: 0x0000000000000000  x21: 0x0000000000000000  x22: 0x0000000000000000  x23: 0x0000000000000000
   x24: 0x0000000000000000  x25: 0x0000000000000000  x26: 0x0000000000000000  x27: 0x0000000000000000
   x28: 0x0000000000000000   fp: 0x0000000000000000   lr: 0x0000000000000000
    sp: 0x000000016afb7760   pc: 0x00000001051d47c0 cpsr: 0x00001000
   far: 0x0000000000000000  esr: 0x00000000  Address size fault

Binary Images:
       0x1051d0000 -        0x10526bfff dyld_path_missing (*) <aca43a8d-6369-3a2c-af92-3d4c458523d6> /dyld_path_missing
       0x104e48000 -        0x104e4ffff main_executable_path_missing (*) <c2a991a1-6d90-317e-b5d1-2127f69cb08c> /main_executable_path_missing
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed

EOF



I tried to search everywhere for solution but didn't see anything similar to what I'm encountering. I'm using Sequoia 15.4.1 and Xcode 16.3.

MacBook Pro 14″

Posted on May 16, 2025 1:12 AM

Reply
Question marked as Top-ranking reply

Posted on May 17, 2025 8:31 AM

I have the same issue on 15.4.1 with the tool '/usr/sbin/avbdeviced' on an M1 based system but I also tried running '/usr/sbin/cron' with the same issue.


I tried my work machine, also on Apple Silicon at 15.4.1 and saw the same issue.


Of course the cron utility is launched by launchd(8), not by humans on the shell, so it makes sense that it would crash if launched the wrong way, so I'd say in both cases things may be working as indented.


Using launchd more directly would make sense on macOS.


A crontab is still supposed to work with launchd calling the legacy cron daemon.

This is configured in /System/Library/LaunchDaemons/com.vix.cron.plist

It has a condition that /etc/crontab must exist to keep cron alive.


You can see the status and PID with

launchctl print system/com.vix.cron


And then us PS to see /usr/sbin/cron running


tl;dr a human running

/usr/sbin/cron start 

is not correct and the cron binary would not be meeting its launch constraints and be terminated.

10 replies
Question marked as Top-ranking reply

May 17, 2025 8:31 AM in response to ronepin

I have the same issue on 15.4.1 with the tool '/usr/sbin/avbdeviced' on an M1 based system but I also tried running '/usr/sbin/cron' with the same issue.


I tried my work machine, also on Apple Silicon at 15.4.1 and saw the same issue.


Of course the cron utility is launched by launchd(8), not by humans on the shell, so it makes sense that it would crash if launched the wrong way, so I'd say in both cases things may be working as indented.


Using launchd more directly would make sense on macOS.


A crontab is still supposed to work with launchd calling the legacy cron daemon.

This is configured in /System/Library/LaunchDaemons/com.vix.cron.plist

It has a condition that /etc/crontab must exist to keep cron alive.


You can see the status and PID with

launchctl print system/com.vix.cron


And then us PS to see /usr/sbin/cron running


tl;dr a human running

/usr/sbin/cron start 

is not correct and the cron binary would not be meeting its launch constraints and be terminated.

May 16, 2025 7:18 PM in response to ronepin

from crash log:

Termination Reason: CODESIGNING 4 Launch Constraint Violation

This is probably why, but I don't know enough developing apps on macOS. I've only dealt with simple shell scripts & Python scripts and an occasional AppleScript.


Binary Images:
0x1051d0000 - 0x10526bfff dyld_path_missing (*) <aca43a8d-6369-3a2c-af92-3d4c458523d6> /dyld_path_missing
0x104e48000 - 0x104e4ffff main_executable_path_missing (*) <c2a991a1-6d90-317e-b5d1-2127f69cb08c> /main_executable_path_missing
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

Seems like a possible PATH issue.


Perhaps a Zsh configuration profile issue?


Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed

I'm also a bit concerned about the last two lines there as it may indicate a file system issue, or perhaps an issue with some third party app that is interfering with the normal operation of macOS.


May 19, 2025 5:42 AM in response to ronepin

So I'd just assume that cron itself is running fine. 'ps' is just the command line equivalent of a snaphot dump of some of what Activity Monitor shows, so you've already seen cron is running.


The process in your crontab may be failing to launch perhaps if they used to work but don't now. There may be detail in the console app to see, now just ignoring/deleting the crash reports from attempting to manually run the cron daemon.


It will probably be something simple that you've overlooked because the red herring crash reports misdirected you.


As an alternative, if you want to bypass cron and configure jobs for launchd directly then Launch Control from Soma Zone will create the plist files and let you stop/start jobs to see if they work etc.

May 18, 2025 11:32 PM in response to johnno_uk

Thanks a lot for your reply. I think you came the closest to the problem, however I'm still not seeing any of my cron jobs being run:


launchctl print system/com.vix.cron

works just like you said. I found the PID, and using this PID I found cron running in Activity Monitor (It also says the "Parent Process" of cron is launchd, just like you said).


Not exactly sure what you meant by "And then us PS to see /usr/sbin/cron running", if you could elaborate I would really appreciate it.


So cron seems to be running in the background. I also checked /System/Library/LaunchDaemons/com.vix.cron.plist, it looks normal to me. Attaching a screenshot just in case:

I'm quite new to using cron to run scheduled jobs, so in case I'm making some trivial mistakes, attaching a screenshot of how I set up my cron job.



May 16, 2025 7:34 PM in response to ronepin

  • .All system apps and executable binaries in Ventura and later are subject to launch constraints, limiting the circumstances in which they can be launched.
  • Among other things, launch constraints can prevent the user from running copies of bundled apps, and certain command tools (Mach-O binaries).
  • If the user attempts an operation that’s not permitted by launch constraints, that app or executable will be terminated, with a crash report and log entries recording a Launch Constraint Violation.
  • There’s no way to look up what launch constraints apply to any component in the system.
  • The only way to disable launch constraints is to disable SIP.
  • In Sonoma, these will be extended to environment constraints covering third-party code.


https://eclecticlight.co/2023/06/13/why-wont-a-system-app-or-command-tool-run-launch-constraints-and-trust-caches/

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

cron stopped running jobs, dyld_process_snapshot_get_shared_cache failed

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.