Skip to content

[R-pkg-devel] State of the art for UBSAN testing

3 messages · Ralf Stubner, Gábor Csárdi

#
Dear all,

I have been asked to fix a UBSAN error in my dqrng package. The error
itself and the necessary fix are quite straight forward. However, I
want to make 100% sure that I am really fixing the error. In the past
I had used rhub for tasks like that. But it seems like the new rhub v2
offers only ASAN testing. I have also tried various docker images
(wch1/r-debug, old rhub images, rocker), but with none of them I was
able to reproduce the error seen on CRAN. What would you consider as
"state of the art" for reproducing UBSAN errors?

Thanks
Ralf
#
R-hub v2 has UBSAN testing, the clang-asan image also has UBSAN. [1]

With the glitch that UBSAN errors do not fail the build because of a bug [2],
so you'll need to look at the results even if the build has passed.

Gabor

[1] https://r-hub.github.io/containers/
[2] https://github.com/r-hub/actions/issues/16
On Thu, May 16, 2024 at 10:27?PM Ralf Stubner <ralf.stubner at gmail.com> wrote:
#
Thanks G?bor! If one checks the output, one can indeed find the UBSAN
error. Problem solved!

Ralf
On Thu, May 16, 2024 at 8:40?PM G?bor Cs?rdi <csardi.gabor at gmail.com> wrote: