Skip to content

Conversation

@vtjnash
Copy link
Member

@vtjnash vtjnash commented Sep 17, 2025

There was an unintended yield point inside OncePerThread which could lead to not getting the state for that thread, and might lead to deadlock. Convert that into a spin-wait on the status variable. This is inefficient, but of course per-thread state is bad.

Fixes #59538

There was an unintended yield point inside OncePerThread which could
lead to not getting the state for that thread, and might lead to
deadlock. Convert that into a spin-wait on the status variable. This is
inefficient, but of course per-thread state is bad.
@vtjnash vtjnash added the backport 1.12 Change should be backported to release-1.12 label Sep 17, 2025
@giordano
Copy link
Member

If this was meant to fix #59538, and #59546 was supposed to be a duplicate of #59538, this PR didn't really fix #59546: https://buildkite.com/julialang/julia-master/builds/50621#01995907-515c-4fb4-a4b9-3b667cbf941a/1139-1580

@vtjnash
Copy link
Member Author

vtjnash commented Sep 17, 2025

ah well, too bad we don't have any core dumps then

@giordano
Copy link
Member

How do we get one?

@vtjnash
Copy link
Member Author

vtjnash commented Sep 17, 2025

Most test runners have it enabled in our buildkite config. Maybe not that one?

@KristofferC KristofferC merged commit 61fdcea into master Sep 24, 2025
10 checks passed
@KristofferC KristofferC deleted the jn/59538 branch September 24, 2025 07:20
KristofferC pushed a commit that referenced this pull request Sep 24, 2025
@KristofferC KristofferC mentioned this pull request Sep 24, 2025
24 tasks
KristofferC pushed a commit that referenced this pull request Sep 24, 2025
@KristofferC KristofferC mentioned this pull request Sep 30, 2025
47 tasks
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Sep 30, 2025
xal-0 pushed a commit to xal-0/julia that referenced this pull request Sep 30, 2025
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.

accidental startup deadlock caught in gdb

4 participants