Hi Rcpp-users:<div><br></div><div>I am a very happy user of Rcpp. I am a statistician who can code a bit. Recently, I have been working on making my cross validation code run faster using Rcpp.</div><div><br></div><div>I have a question and wanted to check if others have faced similar problems.</div>
<div><br></div><div>My code sometimes fails with a segmentation fault error, however this behavior cannot be replicated. That is, most of the times it runs fine and gives appropriate results, but once in a while it will fail due to segmentation fault and gives error like -- </div>
<div><br></div><div> *** caught segfault ***</div><div>address 0x18, cause &#39;memory not mapped&#39;</div><div><br></div><div>I don&#39;t think this is normal, but how can it give correct answers when it runs correctly. Any ideas?</div>
<div><br></div><div>I would be happy to share code, but I wanted to see if I am missing something here. (I have limited experience as a C++ programmer.) </div><div><br></div><div>Thanks in advance for your help.</div><div>
<br></div><div>Best Regards,<br>S.</div>