Re: [Rcpp-devel] Segfault when attributes are not used

2014-08-10 Thread Matteo Fasiolo
Thanks for your reply. Ok so this is the bug I remembered, in fact it happens all the time under gctorture(TRUE), while inverting the order of: RNGScope scope; and NumericMatrix out(10, 10); makes it disappear. At the moment all my packages use the form: RcppExport SEXP myFun(){ RNGScope sco

[Rcpp-devel] Segfault when attributes are not used

2014-08-10 Thread Matteo Fasiolo
Dear Rcpp developer, I have experienced intermittent crashes of some of my Rcpp function and I managed to reduce it to the following. I build a package using Rcpp.package.skeleton(), I delete all the files in the R and src folder, and I include in the src folder 2 files: ### exper.cpp #inc