Re: [R-pkg-devel] Segmentation Fault cause 'memory not mapped' on Debian only

2023-04-22 Thread Dirk Eddelbuettel
On 22 April 2023 at 14:43, D Z wrote: | Thank you Dirk and Joshua, | Using Valgrind, I have found several memory leaks in the program that required | some smaller rewrites. | Valgrind (with Makevars flags -O0 and --ggdb) now reports no "definitely" and | no "indirectly" lost bytes so that's a sma

Re: [R-pkg-devel] Segmentation Fault cause 'memory not mapped' on Debian only

2023-04-22 Thread D Z
sed: 0 from 0) From: Joshua Ulrich Sent: Friday, April 21, 2023 7:48 PM To: Dirk Eddelbuettel Cc: D Z ; r-package-devel@r-project.org Subject: Re: [R-pkg-devel] Segmentation Fault cause 'memory not mapped' on Debian only Hi David, In addition to runnin

Re: [R-pkg-devel] Segmentation Fault cause 'memory not mapped' on Debian only

2023-04-21 Thread Joshua Ulrich
Hi David, In addition to running under valgrind as Dirk suggests below, you should also run under UBSAN and ASAN. You can do all 3 (and more) using Winston Cheng's docker images: https://github.com/wch/r-debug/ That should help you narrow down the problematic code. Best, Josh On Fri, Apr 21,

Re: [R-pkg-devel] Segmentation Fault cause 'memory not mapped' on Debian only

2023-04-21 Thread Dirk Eddelbuettel
Hi David, On 21 April 2023 at 19:17, D Z wrote: | Hi all, | I wanted to publish my RITCH package (https://github.com/DavZim/RITCH) to CRAN, which has Rcpp code. That would be great! | It has, in it�s CICD Pipeline, Tests for Macos, Windows, and Ubuntu (devel, release,, and oldrel-1), which al

[R-pkg-devel] Segmentation Fault cause 'memory not mapped' on Debian only

2023-04-21 Thread D Z
Hi all, I wanted to publish my RITCH package (https://github.com/DavZim/RITCH) to CRAN, which has Rcpp code. It has, in it�s CICD Pipeline, Tests for Macos, Windows, and Ubuntu (devel, release,, and oldrel-1), which all succeed on Github Actions. When I submitted the package to CRAN, I was notifi