[Rcpp-devel] (Very) rare segfault

Romain François romain at r-enthusiasts.com
Wed Aug 20 19:41:19 CEST 2014


This would be typical gc problems. Could be anywhere. 
Even if you run it through gdb, the problem will incubate for some time before showing symptoms. We’ve been lucky sometimes to fix some of these by accident, but it is otherwise pretty hard. 

Romain

Le 20 août 2014 à 19:38, Gregor Kastner <gregor.kastner at wu.ac.at> a écrit :

> Dear all,
> 
> during a large simulation study on around 300 cores, I have just noticed
> "strange" behavior of my package depending on Rcpp. "Strange" in the sense
> that on very rare occasions (around 1 in 100000 function calls
> through .Call), a NumericMatrix object created at C level and returned back
> to R as part of a list isn't available there, causing a "memory not mapped"
> segfault when trying to access it from R. The issue is not deterministically
> reproducible and, as mentioned, very rare. This makes narrowing down the bug
> a pain. I do know however that this problem does not appear in Rcpp 0.10.5
> but does appear in Rcpp 0.11.0. Maybe there is anyone out there who has
> experienced something similar or otherwise has a hunch where I should dig
> further.
> 
> Thanks a ton in advance,
> Gregor
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel



More information about the Rcpp-devel mailing list