[Rcpp-devel] why segmentation fault happens when I was trying to run complied examples in RInside "standard" folder
edd at debian.org
Tue Dec 4 13:49:06 CET 2012
On 4 December 2012 at 06:12, Dirk Eddelbuettel wrote:
| On 4 December 2012 at 19:15, Cong Li wrote:
| | Hi guys
| | I am a novice to RInside, and I met a problem when trying to run RInside
| | example in "standard" folder.
| | It is that a segmentation fault error happened every time when I was trying to
| | execute the compiled example program in the "standard" folder. My OS is ubuntu
| | 12.04, and I am using R 2.15.2 and g++ 4.6.3.
| | It seems that the executions of the examples were fine, but somehow errors
| | happened when then main function was trying to return.
| | Can someone help me with this issue.
| It is a change in R 2.15.2 which requires a change in RInside which I have
| yet to release (as another, unrelated, error) is holding this back. If you
| use R 2.15.1 it all works too.
| Sorry for this, and the new RInside should be there "soon", or I should at
| least commit my fixes to SVN.
Actually, sorry, what I was talking about is a fix needed for the
multithreaded examples. It is coming "soon", there is just other (unrelated)
thing I need to take care of.
The segfault you see is an Rcpp issue we have fixed in SVN. It was simply
trying to delete something twice, hence the alarming-looking but ultimately
harmless, segfault notice. It will go away from you use the Rcpp from SVN, or
an older one.
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel