-
Notifications
You must be signed in to change notification settings - Fork 468
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
needs CI test for memory leaks and race conditions #154
Comments
I definitely want this! We should ask other maintainers, but I am 100% for for CI testing. Can it be run in Travis CI for free? I am just worried that we need sudo permission here. |
This is great! Do you get any false positives with sanitizers? When I last tried them, many were firing within Rust's runtime, usually coming up when using
Yeah, Travis is free for open source projects. Regarding the environment, you can choose between running your script in a sudo-less container or within a sudo-enabled VM. The machine has 2 physical cores and (I believe) dozens of logical cores. |
Yeah, tsan will false positive on memory fences, and I think it's false positiving on |
FYI I'm starting to peek at the complexity of adding LLVM's |
setting this environment variable allows suppression of specific known-safe code: So, this should provide us with the best of both worlds I think. |
#142 could have been caught before release by having travis run tests with lsan. here's how I've solved this for my lock-free tree:
https://github.com/spacejam/rsdb/blob/5aec53905ef58bad8650697b4550d6d47836832f/.travis.yml#L27
https://github.com/spacejam/rsdb/blob/master/hack/leak_detector
I have the rust version pinned (there are currently issues with some sanitizers post nightly-07.06) and I run it with sudo so the sanitizer can run.
Let me know if you'd like me to adapt a similar approach for this project!
The text was updated successfully, but these errors were encountered: