Skip to content

Fix: Delay critical section cleanup to prevent static destructor crashes - #134

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-critical-section-cleanup
Open

Fix: Delay critical section cleanup to prevent static destructor crashes#134
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-critical-section-cleanup

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-VA. The issue was that: AsciiString destructor attempts to acquire a lock on TheAsciiStringCriticalSection, which was prematurely set to NULL during WinMain shutdown, causing an access violation.

TheAsciiStringCriticalSection, TheUnicodeStringCriticalSection, TheDmaCriticalSection and TheMemoryPoolCriticalSection were being set to NULL before static destructors ran, causing crashes. This change delays the cleanup of these critical sections until after the static destructors have run.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 2712011

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

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.

0 participants