Skip to content

Conversation

@vtjnash
Copy link
Member

@vtjnash vtjnash commented May 17, 2025

The rd/wr lock distinction here was supposed to help prevent deadlocks by allowing recursion (even over signals), but did not account for crashes causing recursion while holding the wr lock. Make these lock acquires fail-able if they would cause deadlock.

The rd/wr lock distinction here was supposed to help prevent deadlocks
by allowing recursion (even over signals), but did not account for
crashes causing recursion while holding the wr lock. Make these lock
acquires fail-able if they would cause deadlock.
@vtjnash vtjnash added error handling Handling of exceptions by Julia or the user backport 1.12 Change should be backported to release-1.12 labels May 17, 2025
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label May 19, 2025
@vtjnash vtjnash merged commit 2e2fac5 into master May 19, 2025
7 of 8 checks passed
@vtjnash vtjnash deleted the jn/profile-wr-deadlock branch May 19, 2025 20:49
@oscardssmith oscardssmith removed the merge me PR is reviewed. Merge when all tests are passing label May 19, 2025
KristofferC pushed a commit that referenced this pull request May 20, 2025
The rd/wr lock distinction here was supposed to help prevent deadlocks
by allowing recursion (even over signals), but did not account for
crashes causing recursion while holding the wr lock. Make these lock
acquires fail-able if they would cause deadlock.

(cherry picked from commit 2e2fac5)
@KristofferC KristofferC mentioned this pull request May 20, 2025
58 tasks
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

error handling Handling of exceptions by Julia or the user

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants