-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Suppress UBSAN false positives? #832
Comments
I like your thinking here but would explicitly disabling not clearly run afoul of the somewhat recently added CRAN policy insisting that nobody messes with compiler diagnostics? |
Which coincidentally is the same point Joe made in the r-lib ticket. |
Good point. Perhaps nothing to do here then but at least we have this documented in case anyone else brings up these UBSAN warnings. |
@kevinushey Just in time ;-) |
For a dplyr run, I was able to mute these false positives by creating a file
and invoking R with
. Other packages will need other suppressions, but the first two seem to be of generic use. Reference: https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#id11 |
Very interesting. But we do not control how Brian Ripley invokes his tests so we cannot whitelist at CRAN, which is how this started. |
CRAN reports some UBSAN warnings while building Rcpp (https://www.stats.ox.ac.uk/pub/bdr/memtests/clang-UBSAN/Rcpp/build_vignettes.log):
This has come up on mailing lists a couple times, e.g.
http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2017-July/009656.html
This appears to be a false positive from UBSAN:
google/sanitizers#911
We might be able to work around this by explicitly disabling the function sanitizer for these functions, as per https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html:
We might also want to let CRAN know that the UBSAN
function
sanitizer is buggy. (Maybe they already know and would rather live with false positives if it means capturing some true bugs, though?)The text was updated successfully, but these errors were encountered: