I got some warnings on CRAN with UBSAN relating to my use of user supplied C++ 
function using Xptr: 
https://www.stats.ox.ac.uk/pub/bdr/memtests/clang-UBSAN/bssm/build_vignettes.log

I can't see anything wrong in my codes, although I have just tried to mimic 
some Dirk's Xptr examples without fully understanding what is going on, so 
maybe I actually do something silly. But I then noticed that Rcpp also has 
similar kind of warnings 
(https://www.stats.ox.ac.uk/pub/bdr/memtests/clang-UBSAN/Rcpp/build_vignettes.log),
 so I wonder if these are anything to worry about? I tested my package on GCC 
based address sanitizer using docker, and did not get any warnings with that 
setup, which makes me think that maybe it's just some clang issue? Some 
googling seems to support this theory: 
https://stackoverflow.com/questions/43220926/call-to-function-unknown-through-pointer-to-incorrect-function-type

Best,

Jouni



_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to