[R-pkg-devel] R CMD check crash for Ubuntu 14.04 R-3.2.1 only

Dirk Eddelbuettel edd at debian.org
Sat Jul 4 17:48:06 CEST 2015


Agreed on divide-and-conquer. There is no other way. Valgridn et al may move
some code to registers for subtle changes.

On 4 July 2015 at 10:20, Charles Geyer wrote:
| I should add a more direct question.  When a crash occurs ONLY when running R
| CMD check, how does one debug that?  Usually one would say that R CMD check
| --use-valgrind
| is the answer.  But it only segfaults when --use-vagrind is not used.  So
| somehow we have to debug R CMD check itself.  How?

By "mocking" the exact same (compile and run-time) options used by R CMD
check. You can trace that down.  Things depend a little on whether you do or
do not use user-library-paths for .libPaths() or not, whether you use
per-user compile flags etc pp.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



More information about the R-package-devel mailing list