Observed process crash in SMAppService:registerAndReturnError on macOS Ventura 13.6.7

When register launch daemons and launch agents in the application, intermittently observing a Segmentation Fault crash (11), with the below stack trace.

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0 libsystem_platform.dylib 0x7ff8026b8f12 _platform_strlen + 18
1 ServiceManagement 0x7ff80d993e66 copy_secstaticcode_for_path + 34
2 ServiceManagement 0x7ff80d993fae _load_plist_from_bundle + 68
3 ServiceManagement 0x7ff80d99742b -[SMAppService loadPlistData:] + 124
4 ServiceManagement 0x7ff80d997624 -[SMAppService registerAndReturnError:] + 99

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [2915]

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000


OS Version:            macOS 13.6.7 (22G720)


There are checks added to confirm that the 'service' object was valid before attempting any calls on the said object.


Is it a bug on the ServiceManagement framework?

Can someone let me know if anybody else has seen this error? Also any further steps to debug and fix this from the application side would be helpful.


Thanks!

Posted on Aug 9, 2024 7:38 AM

Reply

Similar questions

There are no replies.

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.

Observed process crash in SMAppService:registerAndReturnError on macOS Ventura 13.6.7

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