[R-pkg-devel] CRAN valgrind reports with zero leaks - actionable?

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Thu Aug 25 01:58:42 CEST 2022


As a follow-up:

1. The valgrind summary states 'zero leaks' (see my Subject) but hints at
   'errors' even when none are in the output. It suggests `valgrind -s` but
   when we run `R CMD check --use-valgrind` there is no means for setting
   such options. 

2. I once attempted what _Writing R Extensions_ suggests and created a file
   ~/.valgrindrc which contained `-s` but to no avail.

3. But _Writing R Extensions_ has another (newer ?) hint and using the
   command-line invocation of
     VALGRIND_OPTS="-s" R CMD check --use-valgrind package_verion.tar.gz
   did the trick. The resulting report is clear, the errors all come from
   a third-party system library I have no zero control over.

4. I will look into amending the nightly valgrind at GitHub Actions run to
   set this option to collect some more data.

5. The lack of any response from CRAN is very frustrating. 

Dirk

-- 
dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org



More information about the R-package-devel mailing list