On Nov 27, 2013, at 12:36 PM, wokai <wolfgang.kaisers at gmail.com> wrote:
> I was recently challenged to correct my package source (rbamtools) because
> there were issues reported by address sanitizer.
> Therefore the problem of installing and running instrumented (R +) package
> code arises.
>
> Regrettably up to now, I found no way to use the address sanitizer, neither
> for a small C-example nor for a new compiled version of R.
> I get missing `__asan_report_store4' or `__asan_report_load4'
messages.
>
> I'm working on Ubuntu 13.10 and tried gcc (4.8.1) and clang
(3.2-7ubuntu1,
> based on LLVM 3.2).
>
> Does anyone have experiance with address sanitizer (especially with a self
> compiled R-version which is not in the standard location on the system)?
>
You have to compile *both* R and the package using AS flags. In fact, if you
setup SA for R it will automatically work for packages. The above seems like
you're trying to use AS just for the package, but that cannot work, because
it's missing all the AS runtime libraries which must be in the main
executable -- i.e. R.
Cheers,
Simon
> Thanks in advance
> Wolfgang
>
>
>
> --
> View this message in context:
http://r.789695.n4.nabble.com/Checking-packages-with-address-sanitizer-tp4681279.html
> Sent from the R devel mailing list archive at Nabble.com.
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>