Message-ID: <24457.110.197351.912336@rob.eddelbuettel.com>
Date: 2020-10-16T02:07:42Z
From: Dirk Eddelbuettel
Subject: [R-pkg-devel] Tracking down cause of UBSAN error
In-Reply-To: <CAJmOi+P+x9=1TS-STHccdO7Mibbt0ftNvDLwrz5fKt-=7i3aZA@mail.gmail.com>
Hugh,
The different SAN/ASAB/UBSAN/... analysers depend critically on _exactly how_
the instrumentation is setup. That make the whole setup analysis a little
brittle, and it is a real shame that neither CRAN nor some of the entities
supposedly here in order to support R users and developers have managed to
produced _standardized_ environments (using, say, Docker) to make this
genuinely reproducible. So we all waste time chasing things over and over.
Five or so years ago I wrote a first container for this; I believe the RHub
one is a descendant of it. But I found reproducing errors so tricky that I
set up an entire package just to provide 'true positives' for such tests of
the testing framework: http://cloud.r-project.org/package=sanitizers
It helps validate that the setup (container, say) catches what it is supposed
to catch--as this is (too) easy to get wrong.
These days I think the contains within the (very well done and complete)
"collection" of containers maintained by Winston might be your best bet:
https://github.com/wch/r-debug
This is what I used last time I needed something like it.
Hth, Dirk
--
https://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org