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

[RFC] Add tsan build mode #19971

Merged
merged 3 commits into from
Nov 3, 2021
Merged

[RFC] Add tsan build mode #19971

merged 3 commits into from
Nov 3, 2021

Conversation

ericl
Copy link
Contributor

@ericl ericl commented Nov 2, 2021

Why are these changes needed?

This allows you to build Ray with tsan via RAY_DEBUG_BUILD=tsan pip install -e . --verbose.

After building, you can LD_PRELOAD=/lib/x86_64-linux-gnu/libtsan.so.0 python to run Ray with tsan enabled. Here's an example tsan log of a simple ray task execution (seems we have some non-thread safe stats usage): https://gist.github.com/ericl/f062fc614731b2b2ccb15189db73aeb0

@scv119 scv119 added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Nov 2, 2021
@ericl
Copy link
Contributor Author

ericl commented Nov 3, 2021

@edoakes @richardliaw can you approve?

@ericl ericl added tests-ok The tagger certifies test failures are unrelated and assumes personal liability. and removed @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. labels Nov 3, 2021
@ericl ericl merged commit 9e448db into ray-project:master Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests-ok The tagger certifies test failures are unrelated and assumes personal liability.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants