* using log directory ‘/Users/ripley/R/packages/tests-SAN/dgtf.Rcheck’ * using R Under development (unstable) (2026-10-26 r90764) * using platform: aarch64-apple-darwin27.2.0 * R was compiled by Apple clang version 21.0.0 (clang-2100.3.34.1) GNU Fortran (GCC) 14.2.0 * running under: macOS Golden Gate 27.2 * using session charset: UTF-8 * current time: 2026-10-28 14:56:42 UTC * using option ‘--no-stop-on-test-error’ * checking for file ‘dgtf/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘dgtf’ version ‘0.1.0’ * 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 ‘dgtf’ can be installed ... [36s/36s] OK * used C++ compiler: ‘Apple clang version 21.0.0 (clang-2100.3.34.1)’ * used SDK: ‘MacOSX27.2.sdk’ * checking C++ specification ... INFO specified C++17 * checking package directory ... OK * checking whether the package can be loaded ... 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 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 ... [45s/45s] OK * checking tests ... ERROR Running ‘testthat.R’ Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(dgtf) > > test_check("dgtf") ================================================================= ==63385==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60e000005860 at pc 0x00010ffc0400 bp 0x00016b3f06b0 sp 0x00016b3f06a8 READ of size 8 at 0x60e000005860 thread T0 #0 0x00010ffc03fc in void arma::glue_quantile::worker(double*, arma::Col&, arma::Mat const&) glue_quantile_meat.hpp:72 #1 0x00010ffbed6c in void arma::glue_quantile::apply_noalias(arma::Mat&, arma::Mat const&, arma::Mat const&, unsigned int) glue_quantile_meat.hpp:155 #2 0x000110110214 in void arma::glue_quantile::apply, arma::Mat>(arma::Mat_noalias::elem_type>&, arma::mtGlue::elem_type, arma::Mat, arma::Mat, arma::glue_quantile> const&) glue_quantile_meat.hpp:215 #3 0x000110110214 in arma::Mat::Mat, arma::Mat, arma::glue_quantile>(arma::mtGlue, arma::Mat, arma::glue_quantile> const&) Mat_meat.hpp:6704 #4 0x00010fee1648 in arma::Mat::Mat, arma::Mat, arma::glue_quantile>(arma::mtGlue, arma::Mat, arma::glue_quantile> const&) Mat_meat.hpp:6701 #5 0x00010fee1648 in dgtf_posterior_predictive(Rcpp::Vector<19, Rcpp::PreserveStorage> const&, Rcpp::Vector<19, Rcpp::PreserveStorage> const&, arma::Col const&, unsigned int const&, Rcpp::Nullable> const&, double const&, bool const&) export.cpp:576 #6 0x00010fe88d70 in _dgtf_dgtf_posterior_predictive RcppExports.cpp:150 #7 0x0001060193e4 in R_doDotCall dotcode.c:775 #8 0x000106267fc8 in bcEval_loop eval.c:8704 #9 0x000106210268 in bcEval eval.c:7533 #10 0x00010620e300 in Rf_eval eval.c:1167 #11 0x0001062188ac in R_execClosure eval.c:2398 #12 0x000106213eac in applyClosure_core eval.c:2314 #13 0x000106212014 in Rf_applyClosure eval.c:2333 #14 0x0001063f4d10 in dispatchMethod objects.c:473 #15 0x0001063f2ab4 in Rf_usemethod objects.c:513 #16 0x0001063f5f9c in do_usemethod objects.c:579 #17 0x000106252d74 in bcEval_loop eval.c:8170 #18 0x000106210268 in bcEval eval.c:7533 #19 0x00010620e300 in Rf_eval eval.c:1167 #20 0x0001062188ac in R_execClosure eval.c:2398 #21 0x000106213eac in applyClosure_core eval.c:2314 #22 0x000106212014 in Rf_applyClosure eval.c:2333 #23 0x00010620ed28 in Rf_eval eval.c:1278 #24 0x000106223130 in do_begin eval.c:3001 #25 0x00010620e75c in Rf_eval eval.c:1230 #26 0x0001062106b8 in forcePromise eval.c:976 #27 0x00010620e380 in Rf_eval eval.c:1191 #28 0x0001062648ac in bcEval_loop eval.c:8150 #29 0x000106210268 in bcEval eval.c:7533 #30 0x00010620e300 in Rf_eval eval.c:1167 #31 0x0001062106b8 in forcePromise eval.c:976 #32 0x00010620ec2c in Rf_eval eval.c:1185 #33 0x00010622eea4 in do_withVisible eval.c:4018 #34 0x0001063eaf78 in do_internal names.c:1425 #35 0x000106252d74 in bcEval_loop eval.c:8170 #36 0x000106210268 in bcEval eval.c:7533 #37 0x00010620e300 in Rf_eval eval.c:1167 #38 0x0001062188ac in R_execClosure eval.c:2398 #39 0x000106213eac in applyClosure_core eval.c:2314 #40 0x000106212014 in Rf_applyClosure eval.c:2333 #41 0x00010620ed28 in Rf_eval eval.c:1278 #42 0x000106227324 in do_set eval.c:3585 #43 0x00010620e75c in Rf_eval eval.c:1230 #44 0x0001062106b8 in forcePromise eval.c:976 #45 0x00010620e380 in Rf_eval eval.c:1191 #46 0x0001062648ac in bcEval_loop eval.c:8150 #47 0x000106210268 in bcEval eval.c:7533 #48 0x00010620e300 in Rf_eval eval.c:1167 #49 0x0001062106b8 in forcePromise eval.c:976 #50 0x00010620ec2c in Rf_eval eval.c:1185 #51 0x00010622eea4 in do_withVisible eval.c:4018 #52 0x0001063eaf78 in do_internal names.c:1425 #53 0x000106252d74 in bcEval_loop eval.c:8170 #54 0x000106210268 in bcEval eval.c:7533 #55 0x00010620e300 in Rf_eval eval.c:1167 #56 0x0001062188ac in R_execClosure eval.c:2398 #57 0x000106213eac in applyClosure_core eval.c:2314 #58 0x000106212014 in Rf_applyClosure eval.c:2333 #59 0x00010620ed28 in Rf_eval eval.c:1278 #60 0x000106227324 in do_set eval.c:3585 #61 0x00010620e75c in Rf_eval eval.c:1230 #62 0x000106223130 in do_begin eval.c:3001 #63 0x00010620e75c in Rf_eval eval.c:1230 #64 0x0001062188ac in R_execClosure eval.c:2398 #65 0x000106213eac in applyClosure_core eval.c:2314 #66 0x000106212014 in Rf_applyClosure eval.c:2333 #67 0x00010620ed28 in Rf_eval eval.c:1278 #68 0x00010600b45c in do_External dotcode.c:573 #69 0x0001062648ac in bcEval_loop eval.c:8150 #70 0x000106210268 in bcEval eval.c:7533 #71 0x00010620e300 in Rf_eval eval.c:1167 #72 0x0001062188ac in R_execClosure eval.c:2398 #73 0x000106213eac in applyClosure_core eval.c:2314 #74 0x000106212014 in Rf_applyClosure eval.c:2333 #75 0x00010620ed28 in Rf_eval eval.c:1278 #76 0x000106223130 in do_begin eval.c:3001 #77 0x00010620e75c in Rf_eval eval.c:1230 #78 0x00010622d4b4 in do_eval eval.c:3975 #79 0x0001062648ac in bcEval_loop eval.c:8150 #80 0x000106210268 in bcEval eval.c:7533 #81 0x00010620e300 in Rf_eval eval.c:1167 #82 0x0001062188ac in R_execClosure eval.c:2398 #83 0x000106213eac in applyClosure_core eval.c:2314 #84 0x000106212014 in Rf_applyClosure eval.c:2333 #85 0x00010620ed28 in Rf_eval eval.c:1278 #86 0x00010622d980 in do_eval eval.c:3993 #87 0x0001062648ac in bcEval_loop eval.c:8150 #88 0x000106210268 in bcEval eval.c:7533 #89 0x00010620e300 in Rf_eval eval.c:1167 #90 0x0001062188ac in R_execClosure eval.c:2398 #91 0x000106213eac in applyClosure_core eval.c:2314 #92 0x000106215ca0 in Rf_applyClosure eval.c:2333 #93 0x000106215ca0 in R_forceAndCall eval.c:2465 #94 0x000105e21fa8 in do_lapply apply.c:75 #95 0x0001063eaf78 in do_internal names.c:1425 #96 0x000106252d74 in bcEval_loop eval.c:8170 #97 0x000106210268 in bcEval eval.c:7533 #98 0x00010620e300 in Rf_eval eval.c:1167 #99 0x0001062188ac in R_execClosure eval.c:2398 #100 0x000106213eac in applyClosure_core eval.c:2314 #101 0x000106212014 in Rf_applyClosure eval.c:2333 #102 0x00010620ed28 in Rf_eval eval.c:1278 #103 0x00010636e62c in Rf_ReplIteration main.c:264 #104 0x00010637293c in R_ReplConsole main.c:319 #105 0x000106372750 in run_Rmainloop main.c:1239 #106 0x000106372a38 in Rf_mainloop main.c:1246 #107 0x0001049ed5f0 in main Rmain.c:29 #108 0x000194a90d78 in start+0x19f8 (dyld:arm64e+0x31d78) 0x60e000005860 is located 0 bytes after 160-byte region [0x60e0000057c0,0x60e000005860) allocated by thread T0 here: #0 0x0001071bd274 in malloc+0x78 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x41274) #1 0x00010fe9dab0 in double* arma::memory::acquire(unsigned int) memory.hpp:91 #2 0x00010fe9dab0 in arma::Mat::init_cold() Mat_meat.hpp:331 #3 0x00010ffbeac0 in arma::Mat::Mat(arma::arma_vec_indicator const&, unsigned int, unsigned int, unsigned short) Mat_meat.hpp:279 #4 0x00010ffbeac0 in arma::Col::Col(unsigned int, arma::arma_initmode_indicator const&) Col_meat.hpp:98 #5 0x00010ffbeac0 in arma::Col::Col(unsigned int, arma::arma_initmode_indicator const&) Col_meat.hpp:99 #6 0x00010ffbeac0 in void arma::glue_quantile::apply_noalias(arma::Mat&, arma::Mat const&, arma::Mat const&, unsigned int) glue_quantile_meat.hpp:135 #7 0x000110110214 in void arma::glue_quantile::apply, arma::Mat>(arma::Mat_noalias::elem_type>&, arma::mtGlue::elem_type, arma::Mat, arma::Mat, arma::glue_quantile> const&) glue_quantile_meat.hpp:215 #8 0x000110110214 in arma::Mat::Mat, arma::Mat, arma::glue_quantile>(arma::mtGlue, arma::Mat, arma::glue_quantile> const&) Mat_meat.hpp:6704 #9 0x00010fee1648 in arma::Mat::Mat, arma::Mat, arma::glue_quantile>(arma::mtGlue, arma::Mat, arma::glue_quantile> const&) Mat_meat.hpp:6701 #10 0x00010fee1648 in dgtf_posterior_predictive(Rcpp::Vector<19, Rcpp::PreserveStorage> const&, Rcpp::Vector<19, Rcpp::PreserveStorage> const&, arma::Col const&, unsigned int const&, Rcpp::Nullable> const&, double const&, bool const&) export.cpp:576 #11 0x00010fe88d70 in _dgtf_dgtf_posterior_predictive RcppExports.cpp:150 #12 0x0001060193e4 in R_doDotCall dotcode.c:775 #13 0x000106267fc8 in bcEval_loop eval.c:8704 #14 0x000106210268 in bcEval eval.c:7533 #15 0x00010620e300 in Rf_eval eval.c:1167 #16 0x0001062188ac in R_execClosure eval.c:2398 #17 0x000106213eac in applyClosure_core eval.c:2314 #18 0x000106212014 in Rf_applyClosure eval.c:2333 #19 0x0001063f4d10 in dispatchMethod objects.c:473 #20 0x0001063f2ab4 in Rf_usemethod objects.c:513 #21 0x0001063f5f9c in do_usemethod objects.c:579 #22 0x000106252d74 in bcEval_loop eval.c:8170 #23 0x000106210268 in bcEval eval.c:7533 #24 0x00010620e300 in Rf_eval eval.c:1167 #25 0x0001062188ac in R_execClosure eval.c:2398 #26 0x000106213eac in applyClosure_core eval.c:2314 #27 0x000106212014 in Rf_applyClosure eval.c:2333 #28 0x00010620ed28 in Rf_eval eval.c:1278 #29 0x000106223130 in do_begin eval.c:3001 #30 0x00010620e75c in Rf_eval eval.c:1230 #31 0x0001062106b8 in forcePromise eval.c:976 #32 0x00010620e380 in Rf_eval eval.c:1191 #33 0x0001062648ac in bcEval_loop eval.c:8150 #34 0x000106210268 in bcEval eval.c:7533 #35 0x00010620e300 in Rf_eval eval.c:1167 SUMMARY: AddressSanitizer: heap-buffer-overflow glue_quantile_meat.hpp:72 in void arma::glue_quantile::worker(double*, arma::Col&, arma::Mat const&) Shadow bytes around the buggy address: 0x60e000005580: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x60e000005600: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x60e000005680: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x60e000005700: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x60e000005780: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00 =>0x60e000005800: 00 00 00 00 00 00 00 00 00 00 00 00[fa]fa fa fa 0x60e000005880: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd 0x60e000005900: fd fd fd fd fd fd fd fd fa fa fa fa fa fa fa fa 0x60e000005980: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x60e000005a00: fd fd fd fd fa fa fa fa fa fa fa fa fd fd fd fd 0x60e000005a80: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 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 ==63385==ABORTING * checking package vignettes ... OK * checking re-building of vignette outputs ... [14s/14s] OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR