Skip to content

gh-159497: Skip test_read1_error_does_not_cause_reentrant_failure under ASan - #159506

Open
lazerg wants to merge 1 commit into
python:mainfrom
lazerg:fix-issue-159497
Open

lazerg wants to merge 1 commit into
python:mainfrom
lazerg:fix-issue-159497

Conversation

@lazerg

@lazerg lazerg commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

The test asks for a sys.maxsize // 2 + 1 byte buffer to force a MemoryError. Under AddressSanitizer that size is over the allocator limit, so ASan aborts the process instead of returning NULL, unless allocator_may_return_null=1 is set. The test was already skipped under TSan for the same reason, so this skips it under ASan too, whatever ASAN_OPTIONS says, like the TSan skip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant