Skip to content

Prevent race conditions in exception handler's thread list#324

Merged
x64-dev merged 1 commit intomainfrom
seer/bugfix/except-threadlist-races
Feb 6, 2026
Merged

Prevent race conditions in exception handler's thread list#324
x64-dev merged 1 commit intomainfrom
seer/bugfix/except-threadlist-races

Conversation

@seer-by-sentry
Copy link

@seer-by-sentry seer-by-sentry bot commented Feb 6, 2026

Fixes CLIENT-38C. The issue was that: Race condition in Unregister_Thread_ID accessing global ThreadList after concurrent deallocation by another thread, causing NULL pointer dereference.

  • Introduced a CriticalSectionClass to protect the global ThreadList from concurrent access.
  • Applied locking mechanisms to functions that modify or iterate the ThreadList, including Add_Thread_Info_To_Report, Register_Thread_ID, Unregister_Thread_ID, and Get_Main_Thread_ID.
  • Ensures thread-safe operations when registering, unregistering, or accessing thread information within the exception handling system.
  • Mitigates potential race conditions that could occur during concurrent thread operations, especially during exception handling or shutdown.

This fix was generated by Seer in Sentry, triggered by x64-dev. 👁️ Run ID: 9514279

Not quite right? Click here to continue debugging with Seer.

@seer-by-sentry seer-by-sentry bot requested a review from x64-dev February 6, 2026 23:37
@x64-dev x64-dev marked this pull request as ready for review February 6, 2026 23:39
@x64-dev x64-dev merged commit d3523c4 into main Feb 6, 2026
5 checks passed
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.

1 participant