<div dir="ltr">Hello,<br><br>I am integrating RcppParallel into my R package and I'm running into strange problems with segmentation faults, but only during the continuous integration checks. I have essentially variations of the following (I hope GitHub gist links are ok):<br><br><a href="https://gist.github.com/asardaes/7d78af394f848a967997ff23e433c9cf">https://gist.github.com/asardaes/7d78af394f848a967997ff23e433c9cf</a><br><br>On TravisCI, my Linux builds simply freeze, and the OSX builds show messages like:<br><br>*** caught segfault ***<br>address 0x100000001, cause 'memory not mapped'<br><br>I would assume that my distance functions are trying to access memory they shouldn't, but during interactive use everything works flawlessly, and I've tested all of the following with no problems (which also test correctness, i.e. numeric consistency with respect to past results):<br><br>- Local Linux R CMD check<br>- Local Windows R CMD check<br>- CRAN's WinBuilder check<br>- AppVeyor (x32 and x64 Windows)<br>- Docker R CMD check using rocker's r-devel-san<br>- Local Linux R CMD check with valgrind (no leaks)<br><div><br></div><div>It is worth mentioning that some of the examples ran during the OSX build show incorrect results long before the segfault occurs: some results are zero when they shouldn't be. I don't have access to a machine with OSX, but the Linux builds in TravisCI also show problems (no segfaults explicitly, just hangs).</div><div><br></div><div>I am at my wit's end. Any input would be appreciated.</div><div><br></div><div>Regards,</div><div>Alexis.</div><div><br></div></div>