[Rcpp-devel] Debug RInside crash

Jose jc.fernandez.navarro at gmail.com
Wed Dec 13 14:51:38 CET 2017


Hello,

I am invoking some R code using RInside from a
C++ tool. Every time I invoke the code it crashes
randomly. Sometimes even with the same data. It never
crashes when I use R directly.

I am invoking this function DESeq2::DESeq(data) which runs
a set of statistical operaions. It always crashes (when it does)
at this point "mean-dispersion relationship" and the system's log
shows that it always crashes at the same point:

Thread 3 Crashed:: Thread (pooled)
0   locfit.so                      0x00000001229b4b34 atree_grow + 20
(ev_atree.c:92)
1   locfit.so                      0x00000001229b4d06 atree_grow + 486
(ev_atree.c:124)
2   locfit.so                      0x00000001229b4d06 atree_grow + 486
(ev_atree.c:124)
3   locfit.so                      0x00000001229b4d06 atree_grow + 486
(ev_atree.c:124)
4   locfit.so                      0x00000001229b5259 atree_start + 1033
(ev_atree.c:167)
5   locfit.so                      0x00000001229e384d startlf + 1053
(startlf.c:160)
6   locfit.so                      0x00000001229a7147 slocfit + 1335
(S_enter.c:301)
7   libR.dylib                    0x000000010d0ebcd5 do_dotCode + 5973
8   libR.dylib                    0x000000010d1183d9 Rf_eval + 1657
(eval.c:728)

locfit seems to be the R library for local regression fit.

Is there something that I can do to overcome this issue? Why would this
happen
if it never happens when I invoke DESeq from R directly?.

Thanks for the help.

Best,
Jose
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20171213/c3e2677a/attachment.html>


More information about the Rcpp-devel mailing list