Charles, I took a look based on your tar ball. When I use the normal 'loud' setting I default to for g++ (ie -pedantic -Wall) or clang++ I get more than a page full of errors. I just tried it using the UBSAN-via-clang instrumented R I provide via a docker container (and for which I showed usage during the 'rocker: Docker on R' tutorial preceding useR! -- slides now on my presentation page). It also does not segfault, but it shows a test difference:
Running ‘bar.R’ Comparing ‘bar.Rout’ to ‘bar.Rout.save’ ...8d7 < 51,54c50,53 < [1,] 0 1 0 1 0 0 < [2,] 0 1 1 0 0 0 < [3,] 0 1 0 0 1 0 < [4,] 0 1 0 0 0 1 --- > [1,] 0 1 0 0 0 1 > [2,] 0 1 0 0 1 0 > [3,] 0 1 0 1 0 0 > [4,] 0 1 1 0 0 0 Running ‘bug2.R’ Comparing ‘bug2.Rout’ to ‘bug2.Rout.save’ ...8d7 < (You also seem to consistently differ in one newline which is just a nuisance and not an error,) So no free lunch yet. I fear you may have to minimize the package somewhat to hopefully arrive at minimally reproducible example. So far you seem to have a Heisenbug (https://en.wikipedia.org/wiki/Heisenbug) Sorry I cannot offer more help. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel