Skip to content

[3.13] gh-154175: Fetch _PY_GIL_DROP_REQUEST_BIT under GIL - #157013

Open
cmaloney wants to merge 1 commit into
python:3.13from
cmaloney:gh154175_test_io_uaf
Open

[3.13] gh-154175: Fetch _PY_GIL_DROP_REQUEST_BIT under GIL#157013
cmaloney wants to merge 1 commit into
python:3.13from
cmaloney:gh154175_test_io_uaf

Conversation

@cmaloney

@cmaloney cmaloney commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Once the GIL is released tstate may be freed which shows up as ASAN and TSAN failures in test_io with daemon threads. Check the bit before dropping the GIL so the tstate is guaranteed to still be allocated.

Remove the TSAN suppressions which were added for 3.13 as this should fix this case.

cc: @colesbury , @gpshead from main branch fix gh-124878

Once the GIL is released the tstate may be freed which shows up as ASAN
and TSAN failures in test_io with daemon threads. Check the bit before
dropping the GIL so the tstate is guaranteed to still be allocated.

Remove the TSAN suppressions which were added for 3.13 as this should
fix this case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant