You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attached here is the full sample for the above process deadlock.txt
How often does it reproduce? Is there a required condition?
The above script seems to reliably reproduce for me. This may be specific to apple silicon, I'm not sure!
What is the expected behavior? Why is that the expected behavior?
I would expect the above script to run infinitely, and print incrementing values of 1000.
What do you see instead?
The above script freezes after 6-10,000 iterations of the main process. All threads end up deadlocked somehow.
Additional information
This is happening in a production application for us that only has 2 worker threads, it takes as little as 20 minutes, so I'm not sure how it's actually happening to us, but the above script forces the problem. Nobody would create this many secure contexts in practice, probably.
The text was updated successfully, but these errors were encountered:
Looking at the codebase, all those locks are managed by OpenSSL; do you think you could create a repro case using OpenSSL stand-alone? If the issue persists; this is probably an OpenSSL issue instead
Version
Platform
Darwin IRONCLADHQ-NMXQRHY6C 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:55:06 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6020 arm64
Subsystem
crypto?
What steps will reproduce the bug?
I believe the following script reproduces the deadlock:
Here is what I get when running the script:
Here is what the Mac OS process sample shows:
Attached here is the full sample for the above process
deadlock.txt
How often does it reproduce? Is there a required condition?
The above script seems to reliably reproduce for me. This may be specific to apple silicon, I'm not sure!
What is the expected behavior? Why is that the expected behavior?
I would expect the above script to run infinitely, and print incrementing values of 1000.
What do you see instead?
The above script freezes after 6-10,000 iterations of the main process. All threads end up deadlocked somehow.
Additional information
This is happening in a production application for us that only has 2 worker threads, it takes as little as 20 minutes, so I'm not sure how it's actually happening to us, but the above script forces the problem. Nobody would create this many secure contexts in practice, probably.
The text was updated successfully, but these errors were encountered: