[Rcpp-devel] problems while upgrading to Rcpp 0.11.2

Dirk Eddelbuettel edd at debian.org
Thu Sep 4 15:46:18 CEST 2014

On 4 September 2014 at 12:57, Pratibha Rana wrote:
| I tried with the create() as well and I had the same issue, so I just
| tried to simplify the code as much as possible to get down to the root.
| It was not just the dataframe, function execution was also causing
| problem. Here is another snippet which was causing the segfault. Again
| just adding the -O2 flag resolved the issue. It doesn't make any sense
| but seems to resolve the issue.
| bool exist(const string lstname, RInside &R)
| {
|     Function exists = R.parseEval("exists");
|     LogicalVector result = exists(lstname);  <<------This line was causing the segfault, if I changed this to "LogicalVector result= R.parseEval("exists(lstname")); " it worked fine.
|     return result[0];
| }

<shrugs> So maybe there is a race condition somewhere. </shrugs>

Now you are the guys with commercial resources, and taking advantage of a
free (as in GPL'ed) contribution -- so maybe you would want to lobby for
debugging effort on your end.  

I won't have time for that in the foreseeable future.


http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org

More information about the Rcpp-devel mailing list