[Rcpp-devel] [Segfault Reason] Beginner Question: Same code *sometimes* fails due to segfault sometimes

2011-05-20 Thread Sunny Srivastava
Hi Rcpp-users: I am a very happy user of Rcpp. I am a statistician who can code a bit. Recently, I have been working on making my cross validation code run faster using Rcpp. I have a question and wanted to check if others have faced similar problems. My code sometimes fails with a segmentation

Re: [Rcpp-devel] [Segfault Reason] Beginner Question: Same code *sometimes* fails due to segfault sometimes

2011-05-20 Thread romain
Hello, Thanks for your interest in Rcpp and your kind words. Please send some reproducible example. Without this, there is not much we can do to help. Romain Le 20 mai 2011 à 09:59, Sunny Srivastava a écrit : > Hi Rcpp-users: > > I am a very happy user of Rcpp. I am a statistician who ca

[Rcpp-devel] R CMD BATCH - segfault (was: Create and access several instances of a C++ class from R)

2011-05-20 Thread soeren . vogel
On 18.05.2011, at 15:17, Douglas Bates wrote: > On May 18, 2011 2:53 AM, wrote: > >> [...] >> >> When librarying the class, assigning an object, do some calculations, >> whatever -- everything goes fine. Yet, when using R CMD BATCH on a file >> listing the same commands as by hand, R produces s

Re: [Rcpp-devel] R CMD BATCH - segfault (was: Create and access several instances of a C++ class from R)

2011-05-20 Thread romain
Le 20 mai 2011 à 12:01, soeren.vo...@uzh.ch a écrit : > On 18.05.2011, at 15:17, Douglas Bates wrote: > >> On May 18, 2011 2:53 AM, wrote: >> >>> [...] >>> >>> When librarying the class, assigning an object, do some calculations, >>> whatever -- everything goes fine. Yet, when using R CMD

Re: [Rcpp-devel] R CMD BATCH - segfault (was: Create and access several instances of a C++ class from R)

2011-05-20 Thread Douglas Bates
On Fri, May 20, 2011 at 5:01 AM, wrote: > On 18.05.2011, at 15:17, Douglas Bates wrote: > >> On May 18, 2011 2:53 AM, wrote: >> >>> [...] >>> >>> When librarying the class, assigning an object, do some calculations, >>> whatever -- everything goes fine. Yet, when using R CMD BATCH on a file >>>

Re: [Rcpp-devel] [Segfault Reason] Beginner Question: Same code *sometimes* fails due to segfault sometimes

2011-05-20 Thread Davor Cubranic
On 2011-05-20, at 12:59 AM, Sunny Srivastava wrote: > My code sometimes fails with a segmentation fault error, however this > behavior cannot be replicated. That is, most of the times it runs fine and > gives appropriate results, but once in a while it will fail due to > segmentation fault and