-
Notifications
You must be signed in to change notification settings - Fork 17.3k
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
misc/cgo/testsanitizers: fails on Ubuntu 16.10 #15887
Comments
@dvyukov Does TSAN work with PIE? |
TSAN works with -pie, but not on newer linux kernels -- they constantly shuffle process address space, we can't keep up. We have the same issue for C/C++ (google/sanitizers#503). This won't happen for 1.7, I have no idea how to fix it. |
golang.org/issue/15443 complained that a race-enabled PIE binary crashed at startup, but other ways of linking in tsan (or other sanitizers) such as #cgo CFLAGS: -fsanitize=thread #cgo LDFLAGS: -fsanitize=thread have the same problem. Pass -no-pie to the host linker (if supported) if any -fsanitizer=foo cgo LDFLAG is seen when linking. Fixes golang#15887 Change-Id: Id799770f8d045f6f40fa8c463563937a5748d1a8
That suggests something like https://go-review.googlesource.com/#/c/23535/ then (which does fix this issue). |
CL https://golang.org/cl/23535 mentions this issue. |
I assume this is our usual friend, PIE-by-default:
The text was updated successfully, but these errors were encountered: