Skip to content

When ASAN is visible, do not use page-aligned requests #75454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

tbkka
Copy link
Contributor

@tbkka tbkka commented Jul 24, 2024

#75415 upsets ASAN. That PR sped up the RemoteMirror tests by having the target program return "pages" of memory data to the inspection test host. But that means we're reading blocks of memory that span allocated and de-allocated regions which ASAN finds problematic.

So this test just disables that optimization when building for ASAN. Instead, the test host only requests specific small amounts of memory that it needs to analyze specific types and/or values. These requests should never touch deallocated areas of memory so should never upset ASAN.

Resolves rdar://132424309

@tbkka tbkka requested a review from gottesmm July 24, 2024 21:59
@tbkka tbkka requested a review from slavapestov as a code owner July 24, 2024 21:59
@tbkka
Copy link
Contributor Author

tbkka commented Jul 24, 2024

@swift-ci Please test

1 similar comment
@tbkka
Copy link
Contributor Author

tbkka commented Jul 25, 2024

@swift-ci Please test

@tbkka tbkka merged commit 6fd0ddc into swiftlang:main Jul 25, 2024
5 checks passed
@tbkka
Copy link
Contributor Author

tbkka commented Jul 26, 2024

Phooey. This didn't work. I presume that means that ASAN testing only uses ASAN with the actual tests per se, not with the test support libraries. I'll just disable these tests...

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.

2 participants