==4070026== Memcheck, a memory error detector ==4070026== Copyright (C) 2002-2026, and GNU GPL'd, by Julian Seward et al. ==4070026== Using Valgrind-3.27.1 and LibVEX; rerun with -h for copyright info ==4070026== Command: /data/localhost/ripley/R/R-devel-vg/bin/exec/R -f testthat.R --restore --save --no-readline --vanilla ==4070026== R Under development (unstable) (2026-10-28 r90776) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(dgtf) > > test_check("dgtf") ==4070026== Invalid read of size 8 ==4070026== at 0x157C9E98: void arma::glue_quantile::worker(double*, arma::Col&, arma::Mat const&) [clone .isra.0] (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/glue_quantile_meat.hpp:72) ==4070026== by 0x157CA397: void arma::glue_quantile::apply_noalias(arma::Mat&, arma::Mat const&, arma::Mat const&, unsigned int) (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/glue_quantile_meat.hpp:155) ==4070026== by 0x1575B10F: apply, arma::Mat > (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/glue_quantile_meat.hpp:215) ==4070026== by 0x1575B10F: Mat, arma::Mat, arma::glue_quantile> (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp:6704) ==4070026== by 0x1575B10F: 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&) (/data/localhost/ripley/R/packages/tests-vg/dgtf/src/export.cpp:576) ==4070026== by 0x1573DD4E: _dgtf_dgtf_posterior_predictive (/data/localhost/ripley/R/packages/tests-vg/dgtf/src/RcppExports.cpp:150) ==4070026== by 0x4972E7: R_doDotCall (/data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:780) ==4070026== by 0x4D545A: bcEval_loop (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8704) ==4070026== by 0x4E4901: bcEval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7533) ==4070026== by 0x4E4901: bcEval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7518) ==4070026== by 0x4E4CCA: Rf_eval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167) ==4070026== by 0x4E6B66: R_execClosure (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2398) ==4070026== by 0x4E78FF: applyClosure_core (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2314) ==4070026== by 0x4E83F1: Rf_applyClosure (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2333) ==4070026== by 0x53272C: dispatchMethod (/data/localhost/ripley/R/svn/R-devel/src/main/objects.c:473) ==4070026== Address 0x16892490 is 0 bytes after a block of size 160 alloc'd ==4070026== at 0x484A3E0: posix_memalign (/builddir/build/BUILD/valgrind-3.27.1-build/valgrind-3.27.1/coregrind/m_replacemalloc/vg_replace_malloc.c:2166) ==4070026== by 0x15769764: acquire (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/memory.hpp:72) ==4070026== by 0x15769764: arma::Mat::init_cold() (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp:331) ==4070026== by 0x157CA219: Mat (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp:279) ==4070026== by 0x157CA219: Col (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/Col_meat.hpp:98) ==4070026== by 0x157CA219: void arma::glue_quantile::apply_noalias(arma::Mat&, arma::Mat const&, arma::Mat const&, unsigned int) (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/glue_quantile_meat.hpp:135) ==4070026== by 0x1575B10F: apply, arma::Mat > (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/glue_quantile_meat.hpp:215) ==4070026== by 0x1575B10F: Mat, arma::Mat, arma::glue_quantile> (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp:6704) ==4070026== by 0x1575B10F: 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&) (/data/localhost/ripley/R/packages/tests-vg/dgtf/src/export.cpp:576) ==4070026== by 0x1573DD4E: _dgtf_dgtf_posterior_predictive (/data/localhost/ripley/R/packages/tests-vg/dgtf/src/RcppExports.cpp:150) ==4070026== by 0x4972E7: R_doDotCall (/data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:780) ==4070026== by 0x4D545A: bcEval_loop (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8704) ==4070026== by 0x4E4901: bcEval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7533) ==4070026== by 0x4E4901: bcEval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7518) ==4070026== by 0x4E4CCA: Rf_eval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167) ==4070026== by 0x4E6B66: R_execClosure (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2398) ==4070026== by 0x4E78FF: applyClosure_core (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2314) ==4070026== by 0x4E83F1: Rf_applyClosure (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2333) ==4070026== ==4070026== Invalid read of size 8 ==4070026== at 0x157C9E98: void arma::glue_quantile::worker(double*, arma::Col&, arma::Mat const&) [clone .isra.0] (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/glue_quantile_meat.hpp:72) ==4070026== by 0x157CA397: void arma::glue_quantile::apply_noalias(arma::Mat&, arma::Mat const&, arma::Mat const&, unsigned int) (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/glue_quantile_meat.hpp:155) ==4070026== by 0x1575FD0E: apply, arma::Mat > (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/glue_quantile_meat.hpp:215) ==4070026== by 0x1575FD0E: Mat, arma::Mat, arma::glue_quantile> (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp:6704) ==4070026== by 0x1575FD0E: dgtf_forecast(Rcpp::Vector<19, Rcpp::PreserveStorage> const&, Rcpp::Vector<19, Rcpp::PreserveStorage> const&, arma::Col const&, unsigned int, unsigned int const&, Rcpp::Nullable > const&, bool const&, bool const&, bool const&) (/data/localhost/ripley/R/packages/tests-vg/dgtf/src/export.cpp:945) ==4070026== by 0x1573E603: _dgtf_dgtf_forecast (/data/localhost/ripley/R/packages/tests-vg/dgtf/src/RcppExports.cpp:169) ==4070026== by 0x49729D: R_doDotCall (/data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:790) ==4070026== by 0x4D545A: bcEval_loop (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8704) ==4070026== by 0x4E4901: bcEval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7533) ==4070026== by 0x4E4901: bcEval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7518) ==4070026== by 0x4E4CCA: Rf_eval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167) ==4070026== by 0x4E6B66: R_execClosure (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2398) ==4070026== by 0x4E78FF: applyClosure_core (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2314) ==4070026== by 0x4E4ED8: Rf_applyClosure (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2333) ==4070026== by 0x4E4ED8: Rf_eval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1278) ==4070026== by 0x4E87B3: do_begin (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:3001) ==4070026== Address 0xe5e7dc0 is 0 bytes after a block of size 160 alloc'd ==4070026== at 0x484A3E0: posix_memalign (/builddir/build/BUILD/valgrind-3.27.1-build/valgrind-3.27.1/coregrind/m_replacemalloc/vg_replace_malloc.c:2166) ==4070026== by 0x15769764: acquire (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/memory.hpp:72) ==4070026== by 0x15769764: arma::Mat::init_cold() (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp:331) ==4070026== by 0x157CA219: Mat (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp:279) ==4070026== by 0x157CA219: Col (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/Col_meat.hpp:98) ==4070026== by 0x157CA219: void arma::glue_quantile::apply_noalias(arma::Mat&, arma::Mat const&, arma::Mat const&, unsigned int) (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/glue_quantile_meat.hpp:135) ==4070026== by 0x1575FD0E: apply, arma::Mat > (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/glue_quantile_meat.hpp:215) ==4070026== by 0x1575FD0E: Mat, arma::Mat, arma::glue_quantile> (/data/localhost/ripley/R/test-dev/RcppArmadillo/include/armadillo_bits/Mat_meat.hpp:6704) ==4070026== by 0x1575FD0E: dgtf_forecast(Rcpp::Vector<19, Rcpp::PreserveStorage> const&, Rcpp::Vector<19, Rcpp::PreserveStorage> const&, arma::Col const&, unsigned int, unsigned int const&, Rcpp::Nullable > const&, bool const&, bool const&, bool const&) (/data/localhost/ripley/R/packages/tests-vg/dgtf/src/export.cpp:945) ==4070026== by 0x1573E603: _dgtf_dgtf_forecast (/data/localhost/ripley/R/packages/tests-vg/dgtf/src/RcppExports.cpp:169) ==4070026== by 0x49729D: R_doDotCall (/data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:790) ==4070026== by 0x4D545A: bcEval_loop (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8704) ==4070026== by 0x4E4901: bcEval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7533) ==4070026== by 0x4E4901: bcEval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7518) ==4070026== by 0x4E4CCA: Rf_eval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167) ==4070026== by 0x4E6B66: R_execClosure (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2398) ==4070026== by 0x4E78FF: applyClosure_core (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2314) ==4070026== by 0x4E4ED8: Rf_applyClosure (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2333) ==4070026== by 0x4E4ED8: Rf_eval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1278) ==4070026== [ FAIL 0 | WARN 0 | SKIP 4 | PASS 159 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • On CRAN (4): 'test-fitted-predict.R:152:5', 'test-sys-nbinom-hva.R:2:5', 'test-sys-nbinom-hva.R:48:5', 'test-sys-nbinom-hva.R:98:5' [ FAIL 0 | WARN 0 | SKIP 4 | PASS 159 ] > > proc.time() user system elapsed 168.469 1.939 167.731 ==4070026== ==4070026== HEAP SUMMARY: ==4070026== in use at exit: 184,351,710 bytes in 36,115 blocks ==4070026== total heap usage: 3,266,414 allocs, 3,230,299 frees, 704,024,338 bytes allocated ==4070026== ==4070026== LEAK SUMMARY: ==4070026== definitely lost: 0 bytes in 0 blocks ==4070026== indirectly lost: 0 bytes in 0 blocks ==4070026== possibly lost: 0 bytes in 0 blocks ==4070026== still reachable: 184,351,710 bytes in 36,115 blocks ==4070026== suppressed: 0 bytes in 0 blocks ==4070026== Reachable blocks (those to which a pointer was found) are not shown. ==4070026== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==4070026== ==4070026== For lists of detected and suppressed errors, rerun with: -s ==4070026== ERROR SUMMARY: 56 errors from 2 contexts (suppressed: 0 from 0)