-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Clang sanitizer error with tbb #2428
Comments
If this is a dependency issue then maybe we shouldn't run the sanitizer with tests that need to use STAN_THREADS |
Also ugh looking at this it looks one oneTBB uses cmake now so if updating tbb is the answer to this we have a whole swarm of stuff to do |
Like all future TBBs are cmake? Like the next time we upgrade we gotta deal with this somehow? |
If onetbb is where we get new versions from then I think so :-/ |
We should probably not upgrade for a while given that RcppParallel is using an outdated version... unless you move the PR you started. Is that PR dead by now or what is missing there? Updating the TBB is not so urgent, but it would be good. As a compromise @adamhaber made our sources compatible with an external TBB. |
I dont think we will require cmake, I recently tried 2011.1.1 on Linux and worked fine without requiring any additional steps.
That was @hsbadr :) |
But I agree, we should not upgrade until Rcppparallel upgrades. |
@hsbadr sorry for confusing credits here. Thanks @rok-cesnovar for correcting. |
The development version of |
^^I think those are relevant. imo I think we can update to 2021.3 and keep backwards compatibility with the version on RcppParallel. |
I think this should be fine with the tbb version bump |
Description
Adding the following to CXXFLAGS in make/local and running the profiling test (though I'm pretty sure this would fail with any test related to the tbb) gives an undefined behavior warning from the sanitizer
Full err output here with the big bits being
and
This looks like it might be a tbb or sanitizer issue?
uxlfoundation/oneTBB#140
RcppCore/RcppParallel#36 (comment)
Expected Output
No UB or leaks
Current Version:
v4.0.1
The text was updated successfully, but these errors were encountered: