Re: [R-pkg-devel] Segfaults on R-devel

2024-07-08 Thread Ben Bolker
I'm pretty sure this is from this R-devel commit: https://github.com/r-devel/r-svn/commit/92c1d5de23c93576f55062e26d446feface07250 This turns on stricter boundary checking, specifically see https://github.com/lme4/lme4/issues/794#issuecomment-2154948145 Arguably, accessing an element of

[R-pkg-devel] Segfaults on R-devel

2024-07-08 Thread Claborne, Daniel via R-package-devel
Seemingly starting with the most recent builds of R-devel, I�ve been getting segfaults related to a piece of cpp code that indexes a zero-size NumericVector. Essentially the same as this dummy example: ``` library(Rcpp) sourceCpp( code = ' #include using namespace Rcpp; // [[Rcpp::exp