Skip to content
Prev 5752 / 12125 Next

[R-pkg-devel] Valgrind warning on saveRDS, about object in external pointer

Thanks a lot for the answer!

I unfortunately wasn?t able to reproduce it with the same OS + compiler
+ valgrind settings, but from what I see in the message, turns out in
the end it might indeed be due to Cereal copying raw bytes into an R
vector and Valgrind complaining about the copied bytes rather than the
original object.

And it also looks like it could be issue with default initializations.
With this I?ve now learned that ?Struct() {}? and ?Struct()=default?
are not the same thing.

Still, oddly enough that the complaint happens only at ?saveRDS? when
tested on the CRAN servers.

Thanks again for your help!

Best regards,
David Cortes
On Wed, 2020-07-15 at 16:51 +0300, Ivan Krylov wrote: