<div dir="ltr"><div>Hey folks,</div><div><br></div><div>I've been developing an Rcpp package on my Mac and testing on Mac and Windows. I also have been testing on linux-latest with the standard Github action which runs the CMD check. These passed without any problem until I implemented a test suite (testthat) and increased the test coverage to include additional calls. It turns out that the two main functions (and maybe others) that I wrote cause a segfault on Ubuntu builds. Several versions on Linux are tested and all fail.</div><div><br></div><div>It appears to be related to Rcpp so I'm wondering if you've encountered this before and how I might go about finding a solution. I can reproduce the error on a local docker image consistently, but... I don't have the debugging tools I"m used to on MacOS via VS Code to help me step through when the error occurs. And I suspect it has to do with a mismatched library version because the tests pass fine on Windows and MacOS. So not sure if debugging would help much.</div><div><br></div><div>Is there a known configuration/compiling issue/fix that I could try? Apart from installing a full fledged instance of Ubuntu with VS Code and debugger, is there a way I can get closer to finding out what the issue is?</div><div><br></div><div>Clip from the failed R error messages when I call  shg$runSimFromFixedValues(N, 0, 0, 1940):</div><div><br></div><div> *** caught segfault ***<br>address (nil), cause 'memory not mapped'<br><br>Traceback:<br> 1: .External(list(name = "CppMethod__invoke_notvoid", address = <pointer: 0x55efab6ef710>,     dll = list(name = "Rcpp", path = "/usr/local/lib/R/site-library/Rcpp/libs/Rcpp.so",         dynamicLookup = TRUE, handle = <pointer: 0x55efa9b64b30>,         info = <pointer: 0x55efaa89aaa0>, forceSymbols = FALSE),     numParameters = -1L), <pointer: 0x55efae9ae1f0>, <pointer: 0x55efaf2399d0>,     .pointer, ...)<br> 2: shg$runSimFromFixedValues(N, 0, 0, 1940)</div><div><br></div><div>Thanks,</div><div><br></div><div>-John</div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="color:rgb(136,136,136)">John Clarke | Senior Technical Advisor | </span><div style="color:rgb(136,136,136)">Cornerstone Systems Northwest | <a href="mailto:john.clarke@cornerstonenw.com" target="_blank">john.clarke@cornerstonenw.com</a></div></div></div></div></div>