Skip to content

Deflake ReallocUseAfterFree test.#331

Draft
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_944768039
Draft

Deflake ReallocUseAfterFree test.#331
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_944768039

Conversation

@copybara-service

Copy link
Copy Markdown

Deflake ReallocUseAfterFree test.

If another thread reuses our slot before we intentionally trigger the UB we want to detect, we may find dealloc_count reset so we do not hit the UseAfterFree case above. We don't synchronize allocators with signal handlers, so mprotect-then-reset may still end up racing if the segfaulting thread is arbitrarily delayed.

If another thread reuses our slot before we intentionally trigger the UB we want to detect, we may find dealloc_count reset so we do not hit the UseAfterFree case above.  We don't synchronize allocators with signal handlers, so mprotect-then-reset may still end up racing if the segfaulting thread is arbitrarily delayed.

PiperOrigin-RevId: 944768039
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