==1089377== Memcheck, a memory error detector ==1089377== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al. ==1089377== Using Valgrind-3.24.0 and LibVEX; rerun with -h for copyright info ==1089377== Command: /data/blackswan/ripley/R/R-devel-vg/bin/exec/R -f testthat.R --restore --save --no-readline --vanilla ==1089377== R Under development (unstable) (2026-04-01 r89777) -- "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. > # 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/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(n1qn1) > > test_check("n1qn1") ==1089377== Mismatched new/delete size value: 16 ==1089377== at 0x4847B51: operator delete(void*, unsigned long) (/builddir/build/BUILD/valgrind-3.24.0/coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1089377== by 0x1BB085CC: n1qn1_wrap (packages/tests-vg/n1qn1/src/RcppExpMod.cpp:58) ==1089377== by 0x4A8E79: R_doDotCall (svn/R-devel/src/main/dotcode.c:813) ==1089377== by 0x4E3E43: bcEval_loop (svn/R-devel/src/main/eval.c:8682) ==1089377== by 0x4F3F97: bcEval (svn/R-devel/src/main/eval.c:7515) ==1089377== by 0x4F3F97: bcEval (svn/R-devel/src/main/eval.c:7500) ==1089377== by 0x4F42CA: Rf_eval (svn/R-devel/src/main/eval.c:1167) ==1089377== by 0x4F604D: R_execClosure (svn/R-devel/src/main/eval.c:2389) ==1089377== by 0x4F6D06: applyClosure_core (svn/R-devel/src/main/eval.c:2302) ==1089377== by 0x4F43D5: Rf_applyClosure (svn/R-devel/src/main/eval.c:2324) ==1089377== by 0x4F43D5: Rf_eval (svn/R-devel/src/main/eval.c:1280) ==1089377== by 0x4F909C: do_set (svn/R-devel/src/main/eval.c:3581) ==1089377== by 0x4F4632: Rf_eval (svn/R-devel/src/main/eval.c:1232) ==1089377== by 0x4F7AC4: do_begin (svn/R-devel/src/main/eval.c:2992) ==1089377== Address 0x14c142a0 is 0 bytes inside a block of size 32 alloc'd ==1089377== at 0x4843FEC: operator new(unsigned long) (/builddir/build/BUILD/valgrind-3.24.0/coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1089377== by 0x1BB085EB: n1qn1_wrap (packages/tests-vg/n1qn1/src/RcppExpMod.cpp:62) ==1089377== by 0x4A8E79: R_doDotCall (svn/R-devel/src/main/dotcode.c:813) ==1089377== by 0x4E3E43: bcEval_loop (svn/R-devel/src/main/eval.c:8682) ==1089377== by 0x4F3F97: bcEval (svn/R-devel/src/main/eval.c:7515) ==1089377== by 0x4F3F97: bcEval (svn/R-devel/src/main/eval.c:7500) ==1089377== by 0x4F42CA: Rf_eval (svn/R-devel/src/main/eval.c:1167) ==1089377== by 0x4F604D: R_execClosure (svn/R-devel/src/main/eval.c:2389) ==1089377== by 0x4F6D06: applyClosure_core (svn/R-devel/src/main/eval.c:2302) ==1089377== by 0x4F43D5: Rf_applyClosure (svn/R-devel/src/main/eval.c:2324) ==1089377== by 0x4F43D5: Rf_eval (svn/R-devel/src/main/eval.c:1280) ==1089377== by 0x4F909C: do_set (svn/R-devel/src/main/eval.c:3581) ==1089377== by 0x4F4632: Rf_eval (svn/R-devel/src/main/eval.c:1232) ==1089377== by 0x4F7AC4: do_begin (svn/R-devel/src/main/eval.c:2992) ==1089377== ==1089377== Mismatched new/delete size value: 16 ==1089377== at 0x4847B51: operator delete(void*, unsigned long) (/builddir/build/BUILD/valgrind-3.24.0/coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1089377== by 0x1BB0864F: n1qn1_wrap (packages/tests-vg/n1qn1/src/RcppExpMod.cpp:64) ==1089377== by 0x4A8E79: R_doDotCall (svn/R-devel/src/main/dotcode.c:813) ==1089377== by 0x4E3E43: bcEval_loop (svn/R-devel/src/main/eval.c:8682) ==1089377== by 0x4F3F97: bcEval (svn/R-devel/src/main/eval.c:7515) ==1089377== by 0x4F3F97: bcEval (svn/R-devel/src/main/eval.c:7500) ==1089377== by 0x4F42CA: Rf_eval (svn/R-devel/src/main/eval.c:1167) ==1089377== by 0x4F604D: R_execClosure (svn/R-devel/src/main/eval.c:2389) ==1089377== by 0x4F6D06: applyClosure_core (svn/R-devel/src/main/eval.c:2302) ==1089377== by 0x4F43D5: Rf_applyClosure (svn/R-devel/src/main/eval.c:2324) ==1089377== by 0x4F43D5: Rf_eval (svn/R-devel/src/main/eval.c:1280) ==1089377== by 0x4F909C: do_set (svn/R-devel/src/main/eval.c:3581) ==1089377== by 0x4F4632: Rf_eval (svn/R-devel/src/main/eval.c:1232) ==1089377== by 0x4F7AC4: do_begin (svn/R-devel/src/main/eval.c:2992) ==1089377== Address 0x14c14300 is 0 bytes inside a block of size 32 alloc'd ==1089377== at 0x4843FEC: operator new(unsigned long) (/builddir/build/BUILD/valgrind-3.24.0/coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1089377== by 0x1BB0866A: n1qn1_wrap (packages/tests-vg/n1qn1/src/RcppExpMod.cpp:68) ==1089377== by 0x4A8E79: R_doDotCall (svn/R-devel/src/main/dotcode.c:813) ==1089377== by 0x4E3E43: bcEval_loop (svn/R-devel/src/main/eval.c:8682) ==1089377== by 0x4F3F97: bcEval (svn/R-devel/src/main/eval.c:7515) ==1089377== by 0x4F3F97: bcEval (svn/R-devel/src/main/eval.c:7500) ==1089377== by 0x4F42CA: Rf_eval (svn/R-devel/src/main/eval.c:1167) ==1089377== by 0x4F604D: R_execClosure (svn/R-devel/src/main/eval.c:2389) ==1089377== by 0x4F6D06: applyClosure_core (svn/R-devel/src/main/eval.c:2302) ==1089377== by 0x4F43D5: Rf_applyClosure (svn/R-devel/src/main/eval.c:2324) ==1089377== by 0x4F43D5: Rf_eval (svn/R-devel/src/main/eval.c:1280) ==1089377== by 0x4F909C: do_set (svn/R-devel/src/main/eval.c:3581) ==1089377== by 0x4F4632: Rf_eval (svn/R-devel/src/main/eval.c:1232) ==1089377== by 0x4F7AC4: do_begin (svn/R-devel/src/main/eval.c:2992) ==1089377== [ FAIL 0 | WARN 1 | SKIP 1 | PASS 8 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • Confirmed segfault (exit 139): n=46341 overflows nd in n1qn1_all.c:144, then accesses zm[] out-of-bounds (1): 'test-memory-safety.R:32:3' [ FAIL 0 | WARN 1 | SKIP 1 | PASS 8 ] > > proc.time() user system elapsed 67.824 1.411 66.567 ==1089377== ==1089377== HEAP SUMMARY: ==1089377== in use at exit: 105,448,753 bytes in 21,066 blocks ==1089377== total heap usage: 83,974 allocs, 62,908 frees, 194,185,087 bytes allocated ==1089377== ==1089377== LEAK SUMMARY: ==1089377== definitely lost: 0 bytes in 0 blocks ==1089377== indirectly lost: 0 bytes in 0 blocks ==1089377== possibly lost: 0 bytes in 0 blocks ==1089377== still reachable: 105,448,573 bytes in 21,064 blocks ==1089377== suppressed: 180 bytes in 2 blocks ==1089377== Reachable blocks (those to which a pointer was found) are not shown. ==1089377== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==1089377== ==1089377== For lists of detected and suppressed errors, rerun with: -s ==1089377== ERROR SUMMARY: 4 errors from 2 contexts (suppressed: 0 from 0)