Re: [R-pkg-devel] how to change from -fsanitize=undefined to -fsanitize=address

2019-11-29 Thread Youyi Fong
Hi Dirk, Thanks very much. Following your suggestion, I tried r-debug, following the readme on https://github.com/wch/r-debug. After starting docker as recommended, docker run --rm -ti --security-opt seccomp=unconfined wch1/r-debug I was able to call RD. But calling RDsan or RDcsan resulted in

Re: [R-pkg-devel] how to change from -fsanitize=undefined to -fsanitize=address

2019-11-29 Thread Dirk Eddelbuettel
Youyi, It looks like you are trying to debug a _current_ SAN / ASAN / UBSAN error against your package by leaning on documentation I wrote five years ago specifically for another package (called "sanitizers") used to validate the initial Docker container builds I made (and to ensure the error

Re: [R-pkg-devel] how to change from -fsanitize=undefined to -fsanitize=address

2019-11-29 Thread Youyi Fong
Thanks. I was wondering how to do that within the context of docker containers. In the tutorial http://dirk.eddelbuettel.com/code/sanitizers.html, one calls the prebuilt Rdevel: # Rdevel CMD INSTALL sanitizers_0.1.0.tar.gz and get * installing to library '/usr/local/lib/R/site-library' *

Re: [R-pkg-devel] how to change from -fsanitize=undefined to -fsanitize=address

2019-11-29 Thread Uwe Ligges
See section 4.3.3 "Using the Address Sanitizer" in Writing R Extensions. Best, Uwe Ligges On 29.11.2019 17:58, Youyi Fong wrote: Hello, I would like to reproduce this error locally: https://www.stats.ox.ac.uk/pub/bdr/memtests/clang-ASAN/chngpt/00check.log I followed the tutorial at

[R-pkg-devel] how to change from -fsanitize=undefined to -fsanitize=address

2019-11-29 Thread Youyi Fong
Hello, I would like to reproduce this error locally: https://www.stats.ox.ac.uk/pub/bdr/memtests/clang-ASAN/chngpt/00check.log I followed the tutorial at http://dirk.eddelbuettel.com/code/sanitizers.html, but what happened to me was not g++-4.9 -fsanitize=address -I/usr/local/lib/R/include

Re: [R-pkg-devel] Updating package with a dependency (rJava) that doesn't build on all flavours

2019-11-29 Thread Tomáš Kliegr
Hi, Just a brief update: It seems that this problem still persists and indeed prevents updates of multiple packages in CRAN. I, therefore, setup a GitHub issue for it here: https://github.com/s-u/rJava/issues/203#issuecomment-557927860 Tomas Od: