Skip to content
Prev 5773 / 10988 Next

[Rcpp-devel] Segfault error during simulation in Rcpp

On 6 May 2013 at 08:34, Douglas Bates wrote:
| The segfaults seem to be related to PutRNGstate and I don't see that you have
| declared an instance of the class that causes the RNGstate to be accessed and
| restored (I have forgotten the name of the class but it should be fairly easy
| to find in the examples). ?When you use random number generators from within
| Rcpp you either need to call getRNGstate/putRNGstate yourself or to simply
| declare an instance of this class.

Very good point.  

By using sourceCpp(), I got that added automagically thanks to JJ and hence
never saw the error.

Dirk

Thread (27 messages)

Matteo Fasiolo Segfault error during simulation in Rcpp May 6 Douglas Bates Segfault error during simulation in Rcpp May 6 Dirk Eddelbuettel Segfault error during simulation in Rcpp May 6 Dirk Eddelbuettel Segfault error during simulation in Rcpp May 6 Matteo Fasiolo Segfault error during simulation in Rcpp May 6 Dirk Eddelbuettel Segfault error during simulation in Rcpp May 6 Matteo Fasiolo Segfault error during simulation in Rcpp May 6 Jared Murray Segfault error during simulation in Rcpp May 9 Matteo Fasiolo Segfault error during simulation in Rcpp May 16 Dirk Eddelbuettel Segfault error during simulation in Rcpp May 16 Matteo Fasiolo Segfault error during simulation in Rcpp May 16 Kevin Ushey Segfault error during simulation in Rcpp May 16 Jonathan Olmsted Segfault error during simulation in Rcpp May 16 Xiao He Segfault error during simulation in Rcpp May 16 Matteo Fasiolo Segfault error during simulation in Rcpp May 16 Dirk Eddelbuettel Segfault error during simulation in Rcpp May 16 Xiao He Segfault error during simulation in Rcpp May 16 Jonathan Olmsted Segfault error during simulation in Rcpp May 16 Dirk Eddelbuettel Segfault error during simulation in Rcpp May 16 Matteo Fasiolo Segfault error during simulation in Rcpp May 16 Dirk Eddelbuettel Segfault error during simulation in Rcpp May 16 Jonathan Olmsted Segfault error during simulation in Rcpp May 16 Dirk Eddelbuettel Segfault error during simulation in Rcpp May 16 Ivan Popivanov Segfault error during simulation in Rcpp May 16 Ivan Popivanov Segfault error during simulation in Rcpp May 16 Matteo Fasiolo Segfault error during simulation in Rcpp May 17 Matteo Fasiolo Segfault error during simulation in Rcpp May 17