==2376733== Memcheck, a memory error detector ==2376733== Copyright (C) 2002-2026, and GNU GPL'd, by Julian Seward et al. ==2376733== Using Valgrind-3.27.1 and LibVEX; rerun with -h for copyright info ==2376733== Command: /data/localhost/ripley/R/R-devel-vg/bin/exec/R -f testthat.R --restore --save --no-readline --vanilla ==2376733== R Under development (unstable) (2026-09-11 r90525) -- "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(kde1d) > > test_check("kde1d") ==2376733== realloc() with size 0 ==2376733== at 0x4849835: realloc (/builddir/build/BUILD/valgrind-3.27.1-build/valgrind-3.27.1/coregrind/m_replacemalloc/vg_replace_malloc.c:1741) ==2376733== by 0x15835970: aligned_realloc (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/util/Memory.h:221) ==2376733== by 0x15835970: conditional_aligned_realloc (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/util/Memory.h:270) ==2376733== by 0x15835970: conditional_aligned_realloc_new_auto (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/util/Memory.h:426) ==2376733== by 0x15835970: conservativeResize (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/DenseStorage.h:630) ==2376733== by 0x15835970: run (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:1081) ==2376733== by 0x15835970: conservativeResize (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:426) ==2376733== by 0x15835970: kde1d::tools::remove_nans(Eigen::Matrix&, Eigen::Matrix&) (/data/localhost/ripley/R/packages/tests-vg/kde1d/src/../inst/include/kde1d-cpp/include/kde1d/tools.hpp:85) ==2376733== by 0x15852A6A: kde1d::Kde1d::fit(Eigen::Matrix const&, Eigen::Matrix const&) (/data/localhost/ripley/R/packages/tests-vg/kde1d/src/../inst/include/kde1d-cpp/include/kde1d/kde1d.hpp:588) ==2376733== by 0x158345EE: fit_kde1d_cpp(Eigen::Matrix const&, double, double, std::__cxx11::basic_string, std::allocator >, double, double, unsigned long, Eigen::Matrix const&, bool) (/data/localhost/ripley/R/packages/tests-vg/kde1d/src/kde1d-interface.cpp:38) ==2376733== by 0x1582BDBF: _kde1d_fit_kde1d_cpp (/data/localhost/ripley/R/packages/tests-vg/kde1d/src/RcppExports.cpp:29) ==2376733== by 0x496D5D: R_doDotCall (/data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:790) ==2376733== by 0x4973C3: do_dotcall (/data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:1437) ==2376733== by 0x4D8FBD: bcEval_loop (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8150) ==2376733== by 0x4E4141: bcEval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7533) ==2376733== by 0x4E4141: bcEval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7518) ==2376733== by 0x4E450A: Rf_eval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167) ==2376733== by 0x4E63A6: R_execClosure (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2398) ==2376733== by 0x4E713F: applyClosure_core (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2314) ==2376733== Address 0x1520bea0 is 0 bytes inside a block of size 160 alloc'd ==2376733== at 0x4849835: realloc (/builddir/build/BUILD/valgrind-3.27.1-build/valgrind-3.27.1/coregrind/m_replacemalloc/vg_replace_malloc.c:1741) ==2376733== by 0x15835970: aligned_realloc (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/util/Memory.h:221) ==2376733== by 0x15835970: conditional_aligned_realloc (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/util/Memory.h:270) ==2376733== by 0x15835970: conditional_aligned_realloc_new_auto (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/util/Memory.h:426) ==2376733== by 0x15835970: conservativeResize (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/DenseStorage.h:630) ==2376733== by 0x15835970: run (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:1081) ==2376733== by 0x15835970: conservativeResize (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:426) ==2376733== by 0x15835970: kde1d::tools::remove_nans(Eigen::Matrix&, Eigen::Matrix&) (/data/localhost/ripley/R/packages/tests-vg/kde1d/src/../inst/include/kde1d-cpp/include/kde1d/tools.hpp:85) ==2376733== by 0x158513AE: kde1d::Kde1d::fit(Eigen::Matrix const&, Eigen::Matrix const&) (/data/localhost/ripley/R/packages/tests-vg/kde1d/src/../inst/include/kde1d-cpp/include/kde1d/kde1d.hpp:567) ==2376733== by 0x158345EE: fit_kde1d_cpp(Eigen::Matrix const&, double, double, std::__cxx11::basic_string, std::allocator >, double, double, unsigned long, Eigen::Matrix const&, bool) (/data/localhost/ripley/R/packages/tests-vg/kde1d/src/kde1d-interface.cpp:38) ==2376733== by 0x1582BDBF: _kde1d_fit_kde1d_cpp (/data/localhost/ripley/R/packages/tests-vg/kde1d/src/RcppExports.cpp:29) ==2376733== by 0x496D5D: R_doDotCall (/data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:790) ==2376733== by 0x4973C3: do_dotcall (/data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:1437) ==2376733== by 0x4D8FBD: bcEval_loop (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8150) ==2376733== by 0x4E4141: bcEval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7533) ==2376733== by 0x4E4141: bcEval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7518) ==2376733== by 0x4E450A: Rf_eval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167) ==2376733== by 0x4E63A6: R_execClosure (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2398) ==2376733== by 0x4E713F: applyClosure_core (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2314) ==2376733== ==2376733== realloc() with size 0 ==2376733== at 0x4849835: realloc (/builddir/build/BUILD/valgrind-3.27.1-build/valgrind-3.27.1/coregrind/m_replacemalloc/vg_replace_malloc.c:1741) ==2376733== by 0x158359E1: aligned_realloc (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/util/Memory.h:221) ==2376733== by 0x158359E1: conditional_aligned_realloc (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/util/Memory.h:270) ==2376733== by 0x158359E1: conditional_aligned_realloc_new_auto (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/util/Memory.h:426) ==2376733== by 0x158359E1: conservativeResize (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/DenseStorage.h:630) ==2376733== by 0x158359E1: run (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:1081) ==2376733== by 0x158359E1: conservativeResize (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:426) ==2376733== by 0x158359E1: kde1d::tools::remove_nans(Eigen::Matrix&, Eigen::Matrix&) (/data/localhost/ripley/R/packages/tests-vg/kde1d/src/../inst/include/kde1d-cpp/include/kde1d/tools.hpp:87) ==2376733== by 0x15852A6A: kde1d::Kde1d::fit(Eigen::Matrix const&, Eigen::Matrix const&) (/data/localhost/ripley/R/packages/tests-vg/kde1d/src/../inst/include/kde1d-cpp/include/kde1d/kde1d.hpp:588) ==2376733== by 0x158345EE: fit_kde1d_cpp(Eigen::Matrix const&, double, double, std::__cxx11::basic_string, std::allocator >, double, double, unsigned long, Eigen::Matrix const&, bool) (/data/localhost/ripley/R/packages/tests-vg/kde1d/src/kde1d-interface.cpp:38) ==2376733== by 0x1582BDBF: _kde1d_fit_kde1d_cpp (/data/localhost/ripley/R/packages/tests-vg/kde1d/src/RcppExports.cpp:29) ==2376733== by 0x496D5D: R_doDotCall (/data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:790) ==2376733== by 0x4973C3: do_dotcall (/data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:1437) ==2376733== by 0x4D8FBD: bcEval_loop (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8150) ==2376733== by 0x4E4141: bcEval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7533) ==2376733== by 0x4E4141: bcEval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7518) ==2376733== by 0x4E450A: Rf_eval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167) ==2376733== by 0x4E63A6: R_execClosure (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2398) ==2376733== by 0x4E713F: applyClosure_core (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2314) ==2376733== Address 0x117e2220 is 0 bytes inside a block of size 160 alloc'd ==2376733== at 0x4841AE6: malloc (/builddir/build/BUILD/valgrind-3.27.1-build/valgrind-3.27.1/coregrind/m_replacemalloc/vg_replace_malloc.c:447) ==2376733== by 0x1583370D: aligned_malloc (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/util/Memory.h:182) ==2376733== by 0x1583370D: conditional_aligned_malloc (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/util/Memory.h:241) ==2376733== by 0x1583370D: conditional_aligned_new_auto (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/util/Memory.h:404) ==2376733== by 0x1583370D: resize (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/DenseStorage.h:639) ==2376733== by 0x1583370D: resize (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:285) ==2376733== by 0x1583370D: resize_if_allowed, Eigen::CwiseNullaryOp, Eigen::Matrix >, double, double> (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:764) ==2376733== by 0x1583370D: void Eigen::internal::call_dense_assignment_loop >(Eigen::Matrix&, Eigen::CwiseNullaryOp::Scalar>, Eigen::Matrix > const&, Eigen::internal::assign_op::Scalar, Eigen::Matrix::Scalar> const&) [clone .isra.0] (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:793) ==2376733== by 0x15852C8B: run (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:954) ==2376733== by 0x15852C8B: call_assignment_no_alias, Eigen::CwiseNullaryOp, Eigen::Matrix >, Eigen::internal::assign_op > (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:890) ==2376733== by 0x15852C8B: call_assignment, Eigen::CwiseNullaryOp, Eigen::Matrix >, Eigen::internal::assign_op > (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:858) ==2376733== by 0x15852C8B: call_assignment, Eigen::CwiseNullaryOp, Eigen::Matrix > > (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:836) ==2376733== by 0x15852C8B: _set, Eigen::Matrix > > (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/PlainObjectBase.h:779) ==2376733== by 0x15852C8B: operator=, Eigen::Matrix > > (/data/localhost/ripley/R/test-dev/RcppEigen/include/Eigen/src/Core/Matrix.h:225) ==2376733== by 0x15852C8B: kde1d::Kde1d::fit(Eigen::Matrix const&, Eigen::Matrix const&) (/data/localhost/ripley/R/packages/tests-vg/kde1d/src/../inst/include/kde1d-cpp/include/kde1d/kde1d.hpp:583) ==2376733== by 0x158345EE: fit_kde1d_cpp(Eigen::Matrix const&, double, double, std::__cxx11::basic_string, std::allocator >, double, double, unsigned long, Eigen::Matrix const&, bool) (/data/localhost/ripley/R/packages/tests-vg/kde1d/src/kde1d-interface.cpp:38) ==2376733== by 0x1582BDBF: _kde1d_fit_kde1d_cpp (/data/localhost/ripley/R/packages/tests-vg/kde1d/src/RcppExports.cpp:29) ==2376733== by 0x496D5D: R_doDotCall (/data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:790) ==2376733== by 0x4973C3: do_dotcall (/data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:1437) ==2376733== by 0x4D8FBD: bcEval_loop (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8150) ==2376733== by 0x4E4141: bcEval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7533) ==2376733== by 0x4E4141: bcEval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7518) ==2376733== by 0x4E450A: Rf_eval (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167) ==2376733== by 0x4E63A6: R_execClosure (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2398) ==2376733== by 0x4E713F: applyClosure_core (/data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2314) ==2376733== [ FAIL 0 | WARN 0 | SKIP 0 | PASS 501 ] > > proc.time() user system elapsed 142.513 4.112 307.654 ==2376733== ==2376733== HEAP SUMMARY: ==2376733== in use at exit: 112,237,369 bytes in 27,388 blocks ==2376733== total heap usage: 457,383 allocs, 429,995 frees, 670,265,483 bytes allocated ==2376733== ==2376733== LEAK SUMMARY: ==2376733== definitely lost: 0 bytes in 0 blocks ==2376733== indirectly lost: 0 bytes in 0 blocks ==2376733== possibly lost: 0 bytes in 0 blocks ==2376733== still reachable: 112,237,369 bytes in 27,388 blocks ==2376733== suppressed: 0 bytes in 0 blocks ==2376733== Reachable blocks (those to which a pointer was found) are not shown. ==2376733== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==2376733== ==2376733== For lists of detected and suppressed errors, rerun with: -s ==2376733== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)