Re: [Rcpp-devel] Irregular crash with rcpp and inline

2012-04-15 Thread Dirk Eddelbuettel
Hi David, On 15 April 2012 at 11:20, Silkworth,David J. wrote: | While I really appreciated this exchange as informative in tutorial | sense, | I am still trying to figure out the cause of Marie's seg-fault. | | Holding Dirk's first fix up to the light with Marie's code all I really | see is rem

Re: [Rcpp-devel] Irregular crash with rcpp and inline

2012-04-13 Thread Dirk Eddelbuettel
As a second follow-up: if you a) use RcppArmadillo, b) you also define PKG_CPPFLAGS= -UNDEBUG somewhere (I use ~/.R/Makevars) to suppress R's new -DNDEBUG which otherwise turns debugging asserts off then you get bounds checking from Armadillo on the normal (eg

Re: [Rcpp-devel] Irregular crash with rcpp and inline

2012-04-13 Thread Dirk Eddelbuettel
Hi Marie, Thanks for posting here. On 13 April 2012 at 11:31, Marie Auger-Methe wrote: | I am new to Rcpp, c++, and inline. I have created a simple test function | which works some of the times but not all the times. It generally Sign of a memory error writing past bounds... | crashes when I