Re: [Rcpp-devel] segfault for simple Rcpp module

2012-05-05 Thread Dirk Eddelbuettel
Hi Jiqiang, Thanks for the very detailed report. I can confirm the seg.fault using R 2.15.0 and our current Rcpp snapshot: R> library(Rcpp) R> library(rcppapp1) R> m1 <- Module('yada', 'rcppapp1') R> m1$hello() *** caught segfault *** address 0x90, cause 'memory not mapped' Traceback: 1: .C

[Rcpp-devel] segfault for simple Rcpp module

2012-05-04 Thread Jiqiang Guo
I was learning Rcpp and got the following problem in a basic example. I have searched online and knew someone have the same problem before, but did not find a good answer for this. Simply put, I am running the following script: rm -rf rcppapp1 R -q -e "library(Rcpp); Rcpp.package.skeleton(name =