Skip to content
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

Add fix for tests on MacOS 12 with -race flag for go17 #351

Merged
merged 1 commit into from
Jan 6, 2022

Conversation

Strech
Copy link
Contributor

@Strech Strech commented Jan 5, 2022

On macOS 12 a new malloc implementation (nano) is used by default, and apparently it reserves address range 0x600000000000-0x600020000000, which conflicts with the address range that TSAN uses for Go
golang/go#49138

The fix is already merged in upstream, but yet not released. Change will perform OS and Golang version check and add MallocNanoZone=0 on MacOS with go17 <= 1.17.5 (I hope that 1.17.6 will include upstream fix)

Question: Do we want to include other Go versions? Or we consider 1.17 as the main one on MacOS?

@Strech Strech requested a review from miry January 5, 2022 18:05
Copy link
Contributor

@miry miry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to update Changelog also - and ❤️

@miry miry added the Toxiproxy label Jan 5, 2022
@miry miry added this to the 2.4.0 milestone Jan 5, 2022
@miry miry merged commit 40f6327 into master Jan 6, 2022
@miry miry deleted the fix-malloc-nano-zone-issue branch January 6, 2022 10:53
@miry miry mentioned this pull request Jan 7, 2022
8 tasks
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.

2 participants