Skip to content

EE - Fix deadlock on thread suspension by GC collection (#115794) #115892

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cymulateagentteam
Copy link

Fixed by mitigating the circularity formed in a singly linked list, which is iterated by the EE for suspension when GC is triggered

The issue causes the application to deadlock indefinitely, this PR releases the deadlock

Fix #115794

@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label May 22, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label May 22, 2025
@filipnavara filipnavara added area-GC-coreclr and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels May 22, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/gc
See info in area-owners.md if you want to be subscribed.

// To mitigate this issue, when the next link points to itself, de-reference the next link
// TODO : find which code is responsible for allowing the situation to happen
if ( psb->m_Link.m_pNext == pLink->m_pNext)
pLink->m_pNext = NULL;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try to investigate the root cause instead of taking this fix as-is since there could be other issues/AVs related to the mangling of the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-GC-coreclr community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GC hangs indefinitely on LongRunning
3 participants