[R-pkg-devel] Reproducing the clang-UBSAN test environment in rhub or somewhere else?
Ivan Krylov
|kry|ov @end|ng |rom d|@root@org
Mon Nov 3 18:46:14 CET 2025
В Mon, 3 Nov 2025 10:18:11 -0600
Peter Carbonetto <peter.carbonetto using gmail.com> пишет:
> However, I could not reproduce this error using rhub (platform =
> "gcc-ubsan"), which makes it difficult to troubleshoot (and eventually
> correct) this error.
The UBSan warnings are reported not directly in your package, but in
.../src/tbbmalloc/backref.cpp (RcppParallel) and some paths in
RcppArmadillo. I think the reason why you cannot reproduce the problem
on R-hub is because R-hub containers install dependencies pre-built,
without instrumentation: the check for the problem in your package
needs to happen inside a different package. This usually saves a lot of
CPU-hours running CI for people whose problems are easier to reproduce,
but didn't help this time.
While I was writing this, Dirk has already confirmed that the Rocker
container image is sufficient to reproduce the problem, so hopefully
there's now enough information now to solve it.
--
Best regards,
Ivan
More information about the R-package-devel
mailing list