-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Linux 4.1: FATAL: ThreadSanitizer: unexpected memory mapping #503
Comments
Reported by |
Reported by |
Reported by |
Latest tsan runtime supports non-pie binaries. Non-pie tsan binaries should work with 4.1, right? |
Yes they do (tested with gcc 5.2 and Linux 4.2). So I guess this bug is now just about the documentation. |
Hey all, Qt builds all its code in PIE/PIC mode. Thus this bug prevents it from being used on all of the Qt ecosystem. I don't think it's just about fixing the documentation, I hope you guys can find a way to make the sanitizers work with PIE/PIC binaries. If anyone has a patch for me to try out, I'd gladly do that. Thanks for the Sanitizers! |
FWIW this does not prevent tsan to be used with tsan. Qt does not build its code with -fsanitize-thread either. Whoever does a separate tsan build can also remove -pie. |
Why is this issue closed? As far as I understand, the current status is that TSAN doesn't need But that doesn't solve the Linux 4.1 + TSAN + Did I get it right? |
@gpakosz This is issue is not closed. |
Damn you're so right. I'm sorry I mixed up statuses |
This error usually appears when people forget to export
Hope this helps. |
Travis upgraded the trusty image that tests use and it broke our TSAN tests. TSAN does not work for pie binaries on the upgraded OS. See google/sanitizers#503 The fix is to use gcc-5 and non-pie binaries. Change-Id: I9b972f1c08fb7408d5bcc54b403660c1255a11d5
@lilianmoraru You don't need to LD_PRELOAD tsan runtime. That's wrong and is not guaranteed to work. |
Fixed upstream by http://llvm.org/viewvc/llvm-project?rev=282152&view=rev |
Summary: Fixing the following issues when building with gcc5.x: - TSAN: no longer requires to be built with -pie. Based on google/sanitizers#503 - UBSAN: gcc5 introduced a new vptr santizer in UBSAN, which will generate some false alarms about "undefined reference" during linking. Suppressing vptr sanitizer. - Valgrind: Added new suppression rules - ASAN: (suppression added in tools) Reviewed By: gunnarku Differential Revision: D5039367 fbshipit-source-id: 00ab2ca
Summary: Fixing the following issues when building with gcc5.x: - TSAN: no longer requires to be built with -pie. Based on google/sanitizers#503 - UBSAN: gcc5 introduced a new vptr santizer in UBSAN, which will generate some false alarms about "undefined reference" during linking. Suppressing vptr sanitizer. - Valgrind: Added new suppression rules - ASAN: (suppression added in tools) Test Plan: manual build and sandcastle Reviewers: gunnarku Reviewed By: gunnarku Subscribers: webscalesql-eng@fb.com Differential Revision: https://phabricator.intern.facebook.com/D5039367 Tasks: 18077031, 17217920, 18077885, 17553023 Signature: t1:5039367:1494528829:2a650d7e39032bf3ce5cb4180617fdbc90adf359
Originally reported on Google Code with ID 96
Reported by
jrobert.pro
on 2015-08-21 12:33:55The text was updated successfully, but these errors were encountered: