I first started observing this behaviour through the crash logs of one of my App Store apps which are downloaded by Xcode. Then 3 days ago the same crash happened when launching one of my other apps on my own Mac. On the next try, the app launched correctly.
The crash logs don't show any of my app's symbols, only a single thread that does something with libsecinit.
I have no idea what the problem is, and since these crashes are also downloaded by Xcode, one would get the impression it’s a fault in my programming… but without any hint as to what I’m doing wrong, I have no chance to fix it, and so I get the feeling that it’s actually a macOS bug.
I created FB22712334.
I discuss the most common causes of problems like this in Resolving App Sandbox Inheritance Problems. However, those are all 100% reproducible. A given executable will either crash on launch or not. An intermittent problem like this is much less common.
The crash report you posted has this:
The code signature is not valid: Impossibile completare l’operazione. (Errore OSStatus -67034).
where error -67034 is errSecCSStaticCodeChanged. That suggests that you’re hitting the issue described in Updating Mac Software, or something like it.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"