==1321372== Memcheck, a memory error detector ==1321372== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==1321372== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==1321372== Command: /data/blackswan/ripley/R/R-devel-vg/bin/exec/R -f testthat.R --restore --save --no-readline --vanilla ==1321372== R Under development (unstable) (2022-08-09 r82699) -- "Unsuffered Consequences" Copyright (C) 2022 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) 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. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(blockcpd) > > test_check("blockcpd") ==1321372== Invalid read of size 4 ==1321372== at 0x188A37DC: Dynseg::fit_dynseg() (packages/tests-vg/blockcpd/src/Dynseg.cpp:23) ==1321372== by 0x188AC6D2: compute_dynseg_cpp(Rcpp::Vector<19, Rcpp::PreserveStorage> const&, Rcpp::String const&, int const&, int const&, int, Rcpp::Function_Impl const&) (packages/tests-vg/blockcpd/src/compute_dynseg.cpp:19) ==1321372== by 0x188A82A6: _blockcpd_compute_dynseg_cpp (packages/tests-vg/blockcpd/src/RcppExports.cpp:26) ==1321372== by 0x49E363: R_doDotCall (svn/R-devel/src/main/dotcode.c:617) ==1321372== by 0x4DBCF9: bcEval (svn/R-devel/src/main/eval.c:7682) ==1321372== by 0x4EF58F: Rf_eval (svn/R-devel/src/main/eval.c:748) ==1321372== by 0x4F0EED: R_execClosure (svn/R-devel/src/main/eval.c:1918) ==1321372== by 0x4F1C42: Rf_applyClosure (svn/R-devel/src/main/eval.c:1844) ==1321372== by 0x4E07FD: bcEval (svn/R-devel/src/main/eval.c:7094) ==1321372== by 0x4EF58F: Rf_eval (svn/R-devel/src/main/eval.c:748) ==1321372== by 0x4F0EED: R_execClosure (svn/R-devel/src/main/eval.c:1918) ==1321372== by 0x4F1C42: Rf_applyClosure (svn/R-devel/src/main/eval.c:1844) ==1321372== Address 0x141306a8 is 0 bytes after a block of size 8 alloc'd ==1321372== at 0x4840FF5: operator new(unsigned long) (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:422) ==1321372== by 0x188A3A9A: allocate (/usr/include/c++/11/ext/new_allocator.h:127) ==1321372== by 0x188A3A9A: allocate (/usr/include/c++/11/bits/alloc_traits.h:464) ==1321372== by 0x188A3A9A: _M_allocate (/usr/include/c++/11/bits/stl_vector.h:346) ==1321372== by 0x188A3A9A: void std::vector >::_M_realloc_insert(__gnu_cxx::__normal_iterator > >, int const&) (/usr/include/c++/11/bits/vector.tcc:440) ==1321372== by 0x188A359B: insert (/usr/include/c++/11/bits/vector.tcc:161) ==1321372== by 0x188A359B: Dynseg::fit_cp_set() (packages/tests-vg/blockcpd/src/Dynseg.cpp:104) ==1321372== by 0x188A35DD: Dynseg::fit_dynseg() (packages/tests-vg/blockcpd/src/Dynseg.cpp:13) ==1321372== by 0x188AC6D2: compute_dynseg_cpp(Rcpp::Vector<19, Rcpp::PreserveStorage> const&, Rcpp::String const&, int const&, int const&, int, Rcpp::Function_Impl const&) (packages/tests-vg/blockcpd/src/compute_dynseg.cpp:19) ==1321372== by 0x188A82A6: _blockcpd_compute_dynseg_cpp (packages/tests-vg/blockcpd/src/RcppExports.cpp:26) ==1321372== by 0x49E363: R_doDotCall (svn/R-devel/src/main/dotcode.c:617) ==1321372== by 0x4DBCF9: bcEval (svn/R-devel/src/main/eval.c:7682) ==1321372== by 0x4EF58F: Rf_eval (svn/R-devel/src/main/eval.c:748) ==1321372== by 0x4F0EED: R_execClosure (svn/R-devel/src/main/eval.c:1918) ==1321372== by 0x4F1C42: Rf_applyClosure (svn/R-devel/src/main/eval.c:1844) ==1321372== by 0x4E07FD: bcEval (svn/R-devel/src/main/eval.c:7094) ==1321372== [ FAIL 0 | WARN 0 | SKIP 0 | PASS 40 ] > > proc.time() user system elapsed 82.559 0.951 82.511 ==1321372== ==1321372== HEAP SUMMARY: ==1321372== in use at exit: 97,424,046 bytes in 19,471 blocks ==1321372== total heap usage: 105,387 allocs, 85,916 frees, 213,621,790 bytes allocated ==1321372== ==1321372== 352 bytes in 1 blocks are possibly lost in loss record 132 of 2,070 ==1321372== at 0x4845464: calloc (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:1328) ==1321372== by 0x401364B: UnknownInlinedFun (/usr/src/debug/glibc-2.33-21.fc34.x86_64/elf/../include/rtld-malloc.h:44) ==1321372== by 0x401364B: allocate_dtv (/usr/src/debug/glibc-2.33-21.fc34.x86_64/elf/../elf/dl-tls.c:366) ==1321372== by 0x401364B: _dl_allocate_tls (/usr/src/debug/glibc-2.33-21.fc34.x86_64/elf/../elf/dl-tls.c:612) ==1321372== by 0x53C8008: pthread_create@@GLIBC_2.2.5 (in /usr/lib64/libpthread-2.33.so) ==1321372== by 0x16F702D6: cli__start_thread (/tmp/RtmpUOLJc7/R.INSTALL179033215ef183/cli/src/thread.c:51) ==1321372== by 0x16F7031A: clic_start_thread (/tmp/RtmpUOLJc7/R.INSTALL179033215ef183/cli/src/thread.c:74) ==1321372== by 0x49E3BF: R_doDotCall (svn/R-devel/src/main/dotcode.c:607) ==1321372== by 0x4DBCF9: bcEval (svn/R-devel/src/main/eval.c:7682) ==1321372== by 0x4EF58F: Rf_eval (svn/R-devel/src/main/eval.c:748) ==1321372== by 0x4F0EED: R_execClosure (svn/R-devel/src/main/eval.c:1918) ==1321372== by 0x4F1C42: Rf_applyClosure (svn/R-devel/src/main/eval.c:1844) ==1321372== by 0x4E07FD: bcEval (svn/R-devel/src/main/eval.c:7094) ==1321372== by 0x4EF58F: Rf_eval (svn/R-devel/src/main/eval.c:748) ==1321372== ==1321372== LEAK SUMMARY: ==1321372== definitely lost: 0 bytes in 0 blocks ==1321372== indirectly lost: 0 bytes in 0 blocks ==1321372== possibly lost: 352 bytes in 1 blocks ==1321372== still reachable: 97,423,694 bytes in 19,470 blocks ==1321372== suppressed: 0 bytes in 0 blocks ==1321372== Reachable blocks (those to which a pointer was found) are not shown. ==1321372== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==1321372== ==1321372== For lists of detected and suppressed errors, rerun with: -s ==1321372== ERROR SUMMARY: 5 errors from 2 contexts (suppressed: 0 from 0)