Skip to content

Conversation

@fabianmuecke
Copy link

@fabianmuecke fabianmuecke commented Jul 14, 2025

This PR fixes #347 by adding a missing dispatch_sync when reading the cache on the main dispatch queue to write it to the file system. This should be safe, as the only dispatch_barrier_sync call does not access the main queue, so cannot cause a deadlock.

I tried to find a test that would replicate the issue and found one, that will randomly (maybe once out of 1000 runs) achieve that. All attempts to improve the reliability of the test were futile. I added it the the PR anyway. Feel free to remove, if you think it's useless.

@mat1th
Copy link

mat1th commented Oct 17, 2025

I do see the same issue in my project. What holds this pr back from merging?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash: EXC_BAD_ACCESS KERN_INVALID_ADDRESS in [TSKSPKIHashCache hashSubjectPublicKeyInfoFromCertificate:] line 253

2 participants