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

2019-12-01 Thread Youyi Fong
Good to know. I will pass it on to Dan. He said a few times that he wasn't an expert on this :). Thanks! Youyi On Sun, Dec 1, 2019 at 6:01 AM Dirk Eddelbuettel wrote: > > On 30 November 2019 at 23:24, Youyi Fong wrote: > | Here is a solution worked out by the wonderful

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

2019-11-30 Thread Youyi Fong
debug might also work on that machine. It sort of did as it returned a memory-related error when I tried RDsan CMD INSTALL mypkg But it is not as helpful as the behavior by dtenenba/r-devel-san-clang. On Fri, Nov 29, 2019 at 1:48 PM Youyi Fong wrote: > Hi Dirk, > > Thanks very much.

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 e

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

2019-11-29 Thread Youyi Fong
> 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/memtest

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

2019-11-29 Thread Youyi Fong
, chngpt, I was not able to reproduce the error on CRAN. I am guessing that if change the compiler option from -fsanitize=undefined to -fsanitize=address, I might be able to reproduce the error. My question is how. Thanks! Youyi Fong -- Fred