[R-pkg-devel] help with ASAN

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Thu Mar 26 01:21:37 CET 2020


Steve,

On 25 March 2020 at 16:48, Dirk Eddelbuettel wrote:
| For ASAN/UBSAN to work you should use the same setting as the compiled
| 'host'. As you benefit from a pre-made Docker container, its settings are
| 
|   CC="clang -fsanitize=address,undefined -fno-sanitize=float-divide-by-zero -fno-omit-frame-pointer -fsanitize-address-use-after-scope" \
|   CXX="clang++ -stdlib=libc++ -fsanitize=address,undefined -fno-sanitize=float-divide-by-zero -fno-omit-frame-pointer -fsanitize-address-use-after-scope" \

Addendum / correction: Because R-devel in this container as been built with
these settings, your package does NOT need to repeat them in its src/Makevars.

Just invoke it via RD as in RD CMD INSTALL ... or RD CMD check ...

Hth, Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org



More information about the R-package-devel mailing list