* using log directory ‘/home/hornik/tmp/CRAN_special_clang-san/RSTr.Rcheck’ * using R Under development (unstable) (2026-01-22 r89323) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 21.1.8 (1) Debian flang version 21.1.8 (1) * running under: Debian GNU/Linux forky/sid * using session charset: UTF-8 * checking for file ‘RSTr/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘RSTr’ version ‘1.1.2’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘RSTr’ can be installed ... [113s/114s] OK * used C++ compiler: ‘Debian clang version 21.1.8 (1+b1)’ * checking package directory ... OK * checking for future file timestamps ... OK * checking ‘build’ directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [1s/1s] OK * checking whether the package can be loaded with stated dependencies ... [1s/1s] OK * checking whether the package can be unloaded cleanly ... [1s/1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK * checking whether the namespace can be unloaded cleanly ... [1s/1s] OK * checking loading without being on the library search path ... [1s/1s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [21s/22s] OK * checking Rd files ... [1s/1s] OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... [1s/1s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... [33s/34s] ERROR Running examples in ‘RSTr-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: get_estimates > ### Title: Extract estimates from RSTr model object > ### Aliases: get_estimates > > ### ** Examples > > std_pop <- c(113154, 100640, 95799) > data_min <- lapply(miheart, \(x) x[1:2, 1:3, 1:3]) > adj_min <- list(2, 1) > on.exit(unlink(file.path(tempdir(), "test"), recursive = TRUE), add = TRUE) > mod_mst <- mstcar("test", data_min, adj_min, tempdir(), show_plots = FALSE, verbose = FALSE) ================================================================= ==2950781==ERROR: AddressSanitizer: heap-use-after-free on address 0x7ca8810fd870 at pc 0x7ba86a5531b2 bp 0x7ffe223e78f0 sp 0x7ffe223e78e8 READ of size 8 at 0x7ca8810fd870 thread T0 #0 0x7ba86a5531b1 in update_lambda(Rcpp::Vector<19, Rcpp::PreserveStorage>&) /home/hornik/tmp/CRAN_special_clang-san/RSTr.Rcheck/00_pkg_src/RSTr/src/update_lambda.cpp:64:28 #1 0x7ba86a4d1c2e in _RSTr_update_lambda /home/hornik/tmp/CRAN_special_clang-san/RSTr.Rcheck/00_pkg_src/RSTr/src/RcppExports.cpp:100:5 #2 0x7fa884f484fa in R_doDotCall /home/hornik/src/R/src/main/dotcode.c:754:11 #3 0x7fa8850ed782 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8682:21 #4 0x7fa88509ba34 in bcEval /home/hornik/src/R/src/main/eval.c:7515:16 #5 0x7fa88509a16f in Rf_eval /home/hornik/src/R/src/main/eval.c:1167:8 #6 0x7fa8850a499b in R_execClosure /home/hornik/src/R/src/main/eval.c:2389:22 #7 0x7fa8850a0293 in applyClosure_core /home/hornik/src/R/src/main/eval.c:2302:16 #8 0x7fa88509e510 in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2324:16 #9 0x7fa885239569 in dispatchMethod /home/hornik/src/R/src/main/objects.c:473:16 #10 0x7fa885237873 in Rf_usemethod /home/hornik/src/R/src/main/objects.c:513:10 #11 0x7fa88523a645 in do_usemethod /home/hornik/src/R/src/main/objects.c:579:9 #12 0x7fa8850d88c1 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8152:15 #13 0x7fa88509ba34 in bcEval /home/hornik/src/R/src/main/eval.c:7515:16 #14 0x7fa88509a16f in Rf_eval /home/hornik/src/R/src/main/eval.c:1167:8 #15 0x7fa8850a499b in R_execClosure /home/hornik/src/R/src/main/eval.c:2389:22 #16 0x7fa8850a0293 in applyClosure_core /home/hornik/src/R/src/main/eval.c:2302:16 #17 0x7fa88509aaef in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2324:16 #18 0x7fa88509aaef in Rf_eval /home/hornik/src/R/src/main/eval.c:1280:12 #19 0x7fa8850b33f5 in do_set /home/hornik/src/R/src/main/eval.c:3581:8 #20 0x7fa88509a53b in Rf_eval /home/hornik/src/R/src/main/eval.c:1232:12 #21 0x7fa8851df3f5 in Rf_ReplIteration /home/hornik/src/R/src/main/main.c:264:15 #22 0x7fa8851e2550 in R_ReplConsole /home/hornik/src/R/src/main/main.c:317:11 #23 0x7fa8851e2364 in run_Rmainloop /home/hornik/src/R/src/main/main.c:1235:5 #24 0x7fa8851e264a in Rf_mainloop /home/hornik/src/R/src/main/main.c:1242:5 #25 0x55d102cc0004 in main /home/hornik/src/R/src/main/Rmain.c:29:5 #26 0x7fa88433df74 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 #27 0x7fa88433e026 in __libc_start_main csu/../csu/libc-start.c:360:3 #28 0x55d102bd5380 in _start (/home/hornik/tmp/R-d-clang-xtra/bin/exec/R+0x2c380) (BuildId: bc88c46ef9240773c07d57c927010d00876dfe01) 0x7ca8810fd870 is located 48 bytes inside of 192-byte region [0x7ca8810fd840,0x7ca8810fd900) freed by thread T0 here: #0 0x55d102c7a68a in free (/home/hornik/tmp/R-d-clang-xtra/bin/exec/R+0xd168a) (BuildId: bc88c46ef9240773c07d57c927010d00876dfe01) #1 0x7fa88522309e in ReleaseLargeFreeVectors /home/hornik/src/R/src/main/memory.c:1167:7 #2 0x7fa88522309e in RunGenCollect /home/hornik/src/R/src/main/memory.c:1951:5 #3 0x7fa8851f6b1e in R_gc_internal /home/hornik/src/R/src/main/memory.c:3237:19 #4 0x7fa8851f8071 in Rf_cons /home/hornik/src/R/src/main/memory.c:2488:2 #5 0x7ba86f9fb78c in Rcpp::Rcpp_precious_preserve(SEXPREC*) /home/hornik/tmp/scratch/RtmpjY9Px3/R.INSTALL2b81d73cc11f49/Rcpp/src/barrier.cpp:115:17 #6 0x7ba86a4d9c25 in Rcpp::Rcpp_precious_preserve(SEXPREC*) /home/hornik/tmp/CRAN_special_clang-san/Library/Rcpp/include/Rcpp/routines.h:155:16 #7 0x7ba86a4d9c25 in Rcpp::Rcpp_PreciousPreserve(SEXPREC*) /home/hornik/tmp/CRAN_special_clang-san/Library/Rcpp/include/RcppCommon.h:119:16 #8 0x7ba86a4d9c25 in Rcpp::PreserveStorage>::set__(SEXPREC*) /home/hornik/tmp/CRAN_special_clang-san/Library/Rcpp/include/Rcpp/storage/PreserveStorage.h:43:25 #9 0x7ba86a4f6fd1 in Rcpp::Vector<19, Rcpp::PreserveStorage>& Rcpp::PreserveStorage>::copy__>(Rcpp::Vector<19, Rcpp::PreserveStorage> const&) /home/hornik/tmp/CRAN_special_clang-san/Library/Rcpp/include/Rcpp/storage/PreserveStorage.h:66:17 #10 0x7ba86a4f6fd1 in Rcpp::Vector<19, Rcpp::PreserveStorage>::Vector(Rcpp::Vector<19, Rcpp::PreserveStorage> const&) /home/hornik/tmp/CRAN_special_clang-san/Library/Rcpp/include/Rcpp/vector/Vector.h:64:18 #11 0x7ba86a4f6fd1 in Rcpp::traits::Exporter>::get() /home/hornik/tmp/CRAN_special_clang-san/Library/Rcpp/include/Rcpp/internal/Exporter.h:32:30 #12 0x7ba86a4f6fd1 in Rcpp::Vector<19, Rcpp::PreserveStorage> Rcpp::internal::as>(SEXPREC*, Rcpp::traits::r_type_generic_tag) /home/hornik/tmp/CRAN_special_clang-san/Library/Rcpp/include/Rcpp/as.h:88:29 #13 0x7ba86a4f6fd1 in Rcpp::Vector<19, Rcpp::PreserveStorage> Rcpp::as>(SEXPREC*) /home/hornik/tmp/CRAN_special_clang-san/Library/Rcpp/include/Rcpp/as.h:151:16 #14 0x7ba86a4f6fd1 in Rcpp::internal::generic_name_proxy<19, Rcpp::PreserveStorage>::operator Rcpp::Vector<19, Rcpp::PreserveStorage>>() const /home/hornik/tmp/CRAN_special_clang-san/Library/Rcpp/include/Rcpp/vector/proxy.h:173:11 #15 0x7ba86a551966 in update_lambda(Rcpp::Vector<19, Rcpp::PreserveStorage>&) /home/hornik/tmp/CRAN_special_clang-san/RSTr.Rcheck/00_pkg_src/RSTr/src/update_lambda.cpp:50:24 #16 0x7ba86a4d1c2e in _RSTr_update_lambda /home/hornik/tmp/CRAN_special_clang-san/RSTr.Rcheck/00_pkg_src/RSTr/src/RcppExports.cpp:100:5 #17 0x7fa884f484fa in R_doDotCall /home/hornik/src/R/src/main/dotcode.c:754:11 #18 0x7fa8850ed782 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8682:21 #19 0x7fa88509ba34 in bcEval /home/hornik/src/R/src/main/eval.c:7515:16 #20 0x7fa88509a16f in Rf_eval /home/hornik/src/R/src/main/eval.c:1167:8 #21 0x7fa8850a499b in R_execClosure /home/hornik/src/R/src/main/eval.c:2389:22 #22 0x7fa8850a0293 in applyClosure_core /home/hornik/src/R/src/main/eval.c:2302:16 #23 0x7fa88509e510 in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2324:16 #24 0x7fa885239569 in dispatchMethod /home/hornik/src/R/src/main/objects.c:473:16 #25 0x7fa885237873 in Rf_usemethod /home/hornik/src/R/src/main/objects.c:513:10 #26 0x7fa88523a645 in do_usemethod /home/hornik/src/R/src/main/objects.c:579:9 #27 0x7fa8850d88c1 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8152:15 #28 0x7fa88509ba34 in bcEval /home/hornik/src/R/src/main/eval.c:7515:16 #29 0x7fa88509a16f in Rf_eval /home/hornik/src/R/src/main/eval.c:1167:8 #30 0x7fa8850a499b in R_execClosure /home/hornik/src/R/src/main/eval.c:2389:22 #31 0x7fa8850a0293 in applyClosure_core /home/hornik/src/R/src/main/eval.c:2302:16 #32 0x7fa88509aaef in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2324:16 #33 0x7fa88509aaef in Rf_eval /home/hornik/src/R/src/main/eval.c:1280:12 #34 0x7fa8850b33f5 in do_set /home/hornik/src/R/src/main/eval.c:3581:8 #35 0x7fa88509a53b in Rf_eval /home/hornik/src/R/src/main/eval.c:1232:12 #36 0x7fa8851df3f5 in Rf_ReplIteration /home/hornik/src/R/src/main/main.c:264:15 #37 0x7fa8851e2550 in R_ReplConsole /home/hornik/src/R/src/main/main.c:317:11 #38 0x7fa8851e2364 in run_Rmainloop /home/hornik/src/R/src/main/main.c:1235:5 previously allocated by thread T0 here: #0 0x55d102c7a928 in malloc (/home/hornik/tmp/R-d-clang-xtra/bin/exec/R+0xd1928) (BuildId: bc88c46ef9240773c07d57c927010d00876dfe01) #1 0x7fa8851fc752 in Rf_allocVector3 /home/hornik/src/R/src/main/memory.c:2894:7 #2 0x7fa884e41eb5 in Rf_allocVector /home/hornik/src/R/src/include/Rinlinedfuns.h:609:12 #3 0x7fa884e41eb5 in coerceToReal /home/hornik/src/R/src/main/coerce.c:564:5 #4 0x7fa884e3b4bc in Rf_coerceVector /home/hornik/src/R/src/main/coerce.c:1289:12 #5 0x7ba86a4feaee in SEXPREC* Rcpp::internal::basic_cast<14>(SEXPREC*) /home/hornik/tmp/CRAN_special_clang-san/Library/Rcpp/include/Rcpp/r_cast.h:66:24 #6 0x7ba86a4ff897 in SEXPREC* Rcpp::internal::r_true_cast<14>(SEXPREC*) /home/hornik/tmp/CRAN_special_clang-san/Library/Rcpp/include/Rcpp/r_cast.h:90:20 #7 0x7ba86a4ff897 in SEXPREC* Rcpp::r_cast<14>(SEXPREC*) /home/hornik/tmp/CRAN_special_clang-san/Library/Rcpp/include/Rcpp/r_cast.h:170:20 #8 0x7ba86a4ff897 in Rcpp::Vector<14, Rcpp::PreserveStorage>::Vector(SEXPREC*) /home/hornik/tmp/CRAN_special_clang-san/Library/Rcpp/include/Rcpp/vector/Vector.h:73:25 #9 0x7ba86a550e20 in Rcpp::traits::Exporter>::Exporter(SEXPREC*) /home/hornik/tmp/CRAN_special_clang-san/Library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloAs.h:465:28 #10 0x7ba86a550e20 in arma::Cube Rcpp::internal::as>(SEXPREC*, Rcpp::traits::r_type_generic_tag) /home/hornik/tmp/CRAN_special_clang-san/Library/Rcpp/include/Rcpp/as.h:86:41 #11 0x7ba86a550e20 in arma::Cube Rcpp::as>(SEXPREC*) /home/hornik/tmp/CRAN_special_clang-san/Library/Rcpp/include/Rcpp/as.h:151:16 #12 0x7ba86a550e20 in update_lambda(Rcpp::Vector<19, Rcpp::PreserveStorage>&) /home/hornik/tmp/CRAN_special_clang-san/RSTr.Rcheck/00_pkg_src/RSTr/src/update_lambda.cpp:43:18 #13 0x7ba86a4d1c2e in _RSTr_update_lambda /home/hornik/tmp/CRAN_special_clang-san/RSTr.Rcheck/00_pkg_src/RSTr/src/RcppExports.cpp:100:5 #14 0x7fa884f484fa in R_doDotCall /home/hornik/src/R/src/main/dotcode.c:754:11 #15 0x7fa8850ed782 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8682:21 #16 0x7fa88509ba34 in bcEval /home/hornik/src/R/src/main/eval.c:7515:16 #17 0x7fa88509a16f in Rf_eval /home/hornik/src/R/src/main/eval.c:1167:8 #18 0x7fa8850a499b in R_execClosure /home/hornik/src/R/src/main/eval.c:2389:22 #19 0x7fa8850a0293 in applyClosure_core /home/hornik/src/R/src/main/eval.c:2302:16 #20 0x7fa88509e510 in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2324:16 #21 0x7fa885239569 in dispatchMethod /home/hornik/src/R/src/main/objects.c:473:16 #22 0x7fa885237873 in Rf_usemethod /home/hornik/src/R/src/main/objects.c:513:10 #23 0x7fa88523a645 in do_usemethod /home/hornik/src/R/src/main/objects.c:579:9 #24 0x7fa8850d88c1 in bcEval_loop /home/hornik/src/R/src/main/eval.c:8152:15 #25 0x7fa88509ba34 in bcEval /home/hornik/src/R/src/main/eval.c:7515:16 #26 0x7fa88509a16f in Rf_eval /home/hornik/src/R/src/main/eval.c:1167:8 #27 0x7fa8850a499b in R_execClosure /home/hornik/src/R/src/main/eval.c:2389:22 #28 0x7fa8850a0293 in applyClosure_core /home/hornik/src/R/src/main/eval.c:2302:16 #29 0x7fa88509aaef in Rf_applyClosure /home/hornik/src/R/src/main/eval.c:2324:16 #30 0x7fa88509aaef in Rf_eval /home/hornik/src/R/src/main/eval.c:1280:12 #31 0x7fa8850b33f5 in do_set /home/hornik/src/R/src/main/eval.c:3581:8 #32 0x7fa88509a53b in Rf_eval /home/hornik/src/R/src/main/eval.c:1232:12 #33 0x7fa8851df3f5 in Rf_ReplIteration /home/hornik/src/R/src/main/main.c:264:15 #34 0x7fa8851e2550 in R_ReplConsole /home/hornik/src/R/src/main/main.c:317:11 #35 0x7fa8851e2364 in run_Rmainloop /home/hornik/src/R/src/main/main.c:1235:5 #36 0x7fa8851e264a in Rf_mainloop /home/hornik/src/R/src/main/main.c:1242:5 SUMMARY: AddressSanitizer: heap-use-after-free /home/hornik/tmp/CRAN_special_clang-san/RSTr.Rcheck/00_pkg_src/RSTr/src/update_lambda.cpp:64:28 in update_lambda(Rcpp::Vector<19, Rcpp::PreserveStorage>&) Shadow bytes around the buggy address: 0x7ca8810fd580: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7ca8810fd600: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7ca8810fd680: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7ca8810fd700: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x7ca8810fd780: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd =>0x7ca8810fd800: fa fa fa fa fa fa fa fa fd fd fd fd fd fd[fd]fd 0x7ca8810fd880: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7ca8810fd900: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00 0x7ca8810fd980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7ca8810fda00: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00 0x7ca8810fda80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==2950781==ABORTING Examples with CPU (user + system) or elapsed time > 5s user system elapsed age_standardize 11.539 0.319 12.161 car 11.256 0.168 11.429 * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [31s/31s] OK Running ‘testthat.R’ [30s/30s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [36s/36s] OK * checking PDF version of manual ... [3s/3s] OK * checking HTML version of manual ... [3s/3s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR