Re: [Rcpp-devel] UBSAN warning

2018-07-02 Thread Jan van der Laan
Judging from the name of the object in which the error occurs, I suspect it is in a line in which you compare a R-vector with a single (double) value. The error is in the function inline int rhs_is_not_na(int i) const { STORAGE x = lhs[i] ; return Rcp

[Rcpp-devel] UBSAN warning

2018-06-30 Thread Timothy
Hi, I maintain a package on CRAN. Recently I posted an update and was asked about UBSAN warning produced during checks of the previous version: https://www.stats.ox.ac.uk/pub/bdr/memtests/clang-UBSAN/kernelboot/tests/testthat.Rout It is not clear for me where does the warning come from, could you