<div dir="ltr">The general prescription is:<div><br></div><div>1. Try running the code with `gctortue(TRUE)` on,</div><div>2. Try running with a debugger (gdb, lldb, valgrind),</div><div>3. Try running with sanitizers (see e.g. Dirk's docker containers: <a href="https://github.com/eddelbuettel/docker-ubuntu-r" target="_blank">https://github.com/eddelbuettel/docker-ubuntu-r</a>)<br>

<br>This should help provide you (and/or us) enough information to diagnose the problem.</div><div><br></div><div>Cheers,</div><div>Kevin</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 20, 2014 at 10:38 AM, Gregor Kastner <span dir="ltr"><<a href="mailto:gregor.kastner@wu.ac.at" target="_blank">gregor.kastner@wu.ac.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
<br>
during a large simulation study on around 300 cores, I have just noticed<br>
"strange" behavior of my package depending on Rcpp. "Strange" in the sense<br>
that on very rare occasions (around 1 in 100000 function calls<br>
through .Call), a NumericMatrix object created at C level and returned back<br>
to R as part of a list isn't available there, causing a "memory not mapped"<br>
segfault when trying to access it from R. The issue is not deterministically<br>
reproducible and, as mentioned, very rare. This makes narrowing down the bug<br>
a pain. I do know however that this problem does not appear in Rcpp 0.10.5<br>
but does appear in Rcpp 0.11.0. Maybe there is anyone out there who has<br>
experienced something similar or otherwise has a hunch where I should dig<br>
further.<br>
<br>
Thanks a ton in advance,<br>
Gregor<br>
_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
</blockquote></div><br></div>