[R-pkg-devel] help with ASAN

Steven Scott @teve@the@b@ye@|@n @end|ng |rom gm@||@com
Thu Mar 26 01:31:32 CET 2020


Oohhh I didn't realize there was an RD.  That simplifies things a lot!
And for the record, I'm not surprised that my setup suggests that I don't
know what I'm doing viz-a-viz docker.  Everything was assembled by Google
search and spaghetti flinging, so I'm pleased to get some expert advice.

A grateful cheers and thank you for the help!

On Wed, Mar 25, 2020 at 5:21 PM Dirk Eddelbuettel <edd using debian.org> wrote:

>
> 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
>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list