* using log directory ‘/data/gannet/ripley/R/packages/tests-gcc-SAN/SmokingHistoryGenerator.Rcheck’ * using R Under development (unstable) (2026-06-12 r90141) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7) GNU Fortran (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7) * running under: Fedora Linux 42 (Workstation Edition) * using session charset: UTF-8 * current time: 2026-06-13 06:12:22 UTC * using option ‘--no-stop-on-test-error’ * checking for file ‘SmokingHistoryGenerator/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘SmokingHistoryGenerator’ version ‘6.5.3-1.0.1’ * package encoding: UTF-8 * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package ‘SmokingHistoryGenerator’ can be installed ... [4m/12m] WARNING Found the following significant warnings: wrapper.cpp:72:14: warning: ‘fast_itoa’ violates the C++ One Definition Rule [-Wodr] See ‘/data/gannet/ripley/R/packages/tests-gcc-SAN/SmokingHistoryGenerator.Rcheck/00install.out’ for details. * used C++ compiler: ‘g++ (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7)’ * checking C++ specification ... INFO specified C++17 * checking package directory ... OK * checking whether the package can be loaded ... [6s/65s] OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking compiled code ... OK * checking examples ... [7s/10s] ERROR Running examples in ‘SmokingHistoryGenerator-Ex.R’ failed The error most likely occurred in: > ### Name: getReproConfig > ### Title: Get Reproducibility Configuration > ### Aliases: getReproConfig > > ### ** Examples > > shg <- new(SHGInterface) > shg$input_data_folder <- system.file("extdata", "2018", package = "SmokingHistoryGenerator") > shg$runSimFromFixedValues(500, 0, 0, 1950) [INFO] Auto-calculated number_of_segments=1 (cores=24, repeat=500) [INFO] For exact reproduction, set: shg$number_of_segments <- 1 *** caught segfault *** address 0x2, cause 'memory not mapped' Traceback: 1: .External(list(name = "CppMethod__invoke_notvoid", address = , dll = list(name = "Rcpp", path = "/data/gannet/ripley/R/test-dev/Rcpp/libs/Rcpp.so", dynamicLookup = TRUE, handle = , info = , forceSymbols = FALSE), numParameters = -1L), , , .pointer, ...) 2: shg$runSimFromFixedValues(500, 0, 0, 1950) An irrecoverable exception occurred. R is aborting now ... * checking tests ... [13s/231s] ERROR Running ‘testthat.R’ [11s/228s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # > # Debugging failed checks: > # - Full failure output: inspect .../SmokingHistoryGenerator.Rcheck/tests/testthat.Rout.fail > # (upload that folder as a CI artifact; R CMD check only prints the last ~13 lines to the log). > # - Local: pkgbuild::build(); rcmdcheck::rcmdcheck() or R CMD check ... > # - Richer diffs: SHG_TEST_VERBOSE=1 R CMD check ... (see tests/testthat/setup.R) > # > # Learn more: https://r-pkgs.org/testing-design.html > > library(testthat) > library(SmokingHistoryGenerator) > > test_check("SmokingHistoryGenerator") Current working directory: "/data/gannet/ripley/R/packages/tests-gcc-SAN/SmokingHistoryGenerator.Rcheck/tests/testthat" Note: the input_data_folder is ignored with LegacyRunWebVersion because it relies on the paths in the config file. ================================================================= ==396384==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new [] vs free) on 0x7b469183e290 #0 0x7f26964e5beb in free.part.0 (/lib64/libasan.so.8+0xe5beb) (BuildId: d3cb6206dff19da52969c009f4cd93611901c478) #1 0x7b26800857cb in RunWebVersion(char const*) /data/gannet/ripley/R/packages/tests-gcc-SAN/SmokingHistoryGenerator/src/main.cpp:2178 #2 0x7b26801188e4 in SHGInterface::LegacyRunWebVersion(char const*) /data/gannet/ripley/R/packages/tests-gcc-SAN/SmokingHistoryGenerator/src/wrapper.cpp:1355 #3 0x7b26801b14d7 in Rcpp::CppMethodImplN::operator()(SHGInterface*, SEXPREC**)::{lambda(char const*)#1}::operator()(char const*) const /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/Module.h:385 #4 0x7b26801b14d7 in SEXPREC* Rcpp::internal::call_impl::operator()(SHGInterface*, SEXPREC**)::{lambda(char const*)#1}, void, char const*, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SHGInterface*, SEXPREC**)::{lambda(char const*)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/internal/call.h:31 #5 0x7b26801b14d7 in SEXPREC* Rcpp::call::operator()(SHGInterface*, SEXPREC**)::{lambda(char const*)#1}, void, char const*>(Rcpp::CppMethodImplN::operator()(SHGInterface*, SEXPREC**)::{lambda(char const*)#1} const&, SEXPREC**) /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/internal/call.h:47 #6 0x7b26801b14d7 in Rcpp::CppMethodImplN::operator()(SHGInterface*, SEXPREC**) /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/Module.h:387 #7 0x7b26801eaec4 in Rcpp::class_::invoke_void(SEXPREC*, SEXPREC*, SEXPREC**, int) /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/module/class.h:219 #8 0x7b2680ce643f in CppMethod__invoke_void(SEXPREC*) /tmp/RtmpaTaNpQ/R.INSTALL26ade9739e7af7/Rcpp/src/module.cpp:200 #9 0x00000073b20b in do_External /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:576 #10 0x000000863dff in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1258 #11 0x00000087721b in do_begin /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3001 #12 0x000000863446 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1230 #13 0x00000087acaa in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2398 #14 0x00000087ec5d in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2314 #15 0x000000863018 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2333 #16 0x000000863018 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1278 #17 0x00000087721b in do_begin /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3001 #18 0x000000863446 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1230 #19 0x00000087acaa in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2398 #20 0x00000087ec5d in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2314 #21 0x000000863018 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2333 #22 0x000000863018 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1278 #23 0x0000008949ae in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3585 #24 0x000000863446 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1230 #25 0x00000089d613 in do_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3993 #26 0x0000008d6c82 in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8150 #27 0x0000008c3ee3 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7533 #28 0x00000086296a in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167 #29 0x00000087acaa in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2398 #30 0x00000087ec5d in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2314 #31 0x00000088089a in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2333 #32 0x00000088089a in R_forceAndCall /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2465 #33 0x000000499fd6 in do_lapply /data/gannet/ripley/R/svn/R-devel/src/main/apply.c:75 #34 0x000000a9e3b6 in do_internal /data/gannet/ripley/R/svn/R-devel/src/main/names.c:1424 #35 0x0000008e3e91 in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8170 #36 0x0000008c3ee3 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7533 #37 0x00000086296a in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167 #38 0x00000087acaa in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2398 #39 0x00000087ec5d in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2314 #40 0x000000863018 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2333 #41 0x000000863018 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1278 #42 0x000000a0b608 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264 #43 0x000000a0b608 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:317 #44 0x000000a1a8fa in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1235 #45 0x000000a1a992 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1242 #46 0x00000041306f in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29 #47 0x7f2694e12574 in __libc_start_call_main (/lib64/libc.so.6+0x3574) (BuildId: 92b5376d35bb29c098175948cf3e7cbcae3aeae1) #48 0x7f2694e12627 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x3627) (BuildId: 92b5376d35bb29c098175948cf3e7cbcae3aeae1) #49 0x000000413a14 in _start (/data/gannet/ripley/R/gcc-SAN3/bin/exec/R+0x413a14) (BuildId: a29b81d1b8ecdf2ca81073ff1e17ba29a3402139) 0x7b469183e290 is located 0 bytes inside of 11-byte region [0x7b469183e290,0x7b469183e29b) allocated by thread T0 here: #0 0x7f26964e7bab in operator new[](unsigned long) (/lib64/libasan.so.8+0xe7bab) (BuildId: d3cb6206dff19da52969c009f4cd93611901c478) #1 0x7b26800844d6 in RunWebVersion(char const*) /data/gannet/ripley/R/packages/tests-gcc-SAN/SmokingHistoryGenerator/src/main.cpp:1093 #2 0x7b26801188e4 in SHGInterface::LegacyRunWebVersion(char const*) /data/gannet/ripley/R/packages/tests-gcc-SAN/SmokingHistoryGenerator/src/wrapper.cpp:1355 #3 0x7b26801b14d7 in Rcpp::CppMethodImplN::operator()(SHGInterface*, SEXPREC**)::{lambda(char const*)#1}::operator()(char const*) const /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/Module.h:385 #4 0x7b26801b14d7 in SEXPREC* Rcpp::internal::call_impl::operator()(SHGInterface*, SEXPREC**)::{lambda(char const*)#1}, void, char const*, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SHGInterface*, SEXPREC**)::{lambda(char const*)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/internal/call.h:31 #5 0x7b26801b14d7 in SEXPREC* Rcpp::call::operator()(SHGInterface*, SEXPREC**)::{lambda(char const*)#1}, void, char const*>(Rcpp::CppMethodImplN::operator()(SHGInterface*, SEXPREC**)::{lambda(char const*)#1} const&, SEXPREC**) /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/internal/call.h:47 #6 0x7b26801b14d7 in Rcpp::CppMethodImplN::operator()(SHGInterface*, SEXPREC**) /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/Module.h:387 #7 0x7b26801eaec4 in Rcpp::class_::invoke_void(SEXPREC*, SEXPREC*, SEXPREC**, int) /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/module/class.h:219 #8 0x7b2680ce643f in CppMethod__invoke_void(SEXPREC*) /tmp/RtmpaTaNpQ/R.INSTALL26ade9739e7af7/Rcpp/src/module.cpp:200 SUMMARY: AddressSanitizer: alloc-dealloc-mismatch /data/gannet/ripley/R/packages/tests-gcc-SAN/SmokingHistoryGenerator/src/main.cpp:2178 in RunWebVersion(char const*) ==396384==HINT: if you don't care about these errors you may set ASAN_OPTIONS=alloc_dealloc_mismatch=0 ==396384==ABORTING * DONE Status: 2 ERRORs, 1 WARNING