On 11/3/25 17:18, Peter Carbonetto wrote:
Hi All,
A recent update to my package has generated an unexpected error in the
clang-UBSAN test environment (as well as gcc-UBSAN):
https://cran.r-project.org/web/checks/check_results_fastTopics.html
However, I could not reproduce this error using rhub (platform =
"gcc-ubsan"), which makes it difficult to troubleshoot (and eventually
correct) this error.
Does anyone have suggestions for how I could reproduce the error (rhub or
otherwise), or is there more detailed documentation somewhere on the
clang-UBSAN environment? I'm at a bit of a loss for how to proceed.
https://www.stats.ox.ac.uk/pub/bdr/memtests/README.txt
Though, my recommendation would be first to try to figure out the
problem from the check output - the big advantage of sanitizer checks is
that one gets a stack trace. And if that doesn't help, add some
additional runtime (bounds) checks to the code, perhaps the lowest frame
(last frame) from your package that is included in the stack trace. Once
that detects the error, then fix it, try again with the added check
still enabled, and eventually remove (or disable) the check.
Best
Tomas
Thank you,
Peter Carbonetto
Research Assistant Professor
Dept. of Human Genetics
University of Chicago
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel