R Under development (unstable) (2025-11-06 r88990) -- "Unsuffered Consequences" Copyright (C) 2025 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(trtswitch) > > test_check("trtswitch") Attaching package: 'tidyr' The following object is masked from 'package:testthat': matches The milestone is larger than the largest observed time Additional warning messages are suppressed ================================================================= ==3274524==ERROR: AddressSanitizer: stack-use-after-return on address 0x7b218362dcc0 at pc 0x7b2172566d21 bp 0x7ffd9288c580 sp 0x7ffd9288c578 READ of size 8 at 0x7b218362dcc0 thread T0 #0 0x7b2172566d20 in Rcpp::PreserveStorage >::get__() const /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/storage/PreserveStorage.h:52 #1 0x7b2172566d20 in Rcpp::Vector<14, Rcpp::PreserveStorage>::size() const /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/vector/Vector.h:274 #2 0x7b2172566d20 in Rcpp::sugar::Vectorized<&log, true, Rcpp::Vector<14, Rcpp::PreserveStorage> >::size() const /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/sugar/block/Vectorized_Math.h:40 #3 0x7b2172566d20 in Rcpp::VectorBase<14, true, Rcpp::sugar::Vectorized<&log, true, Rcpp::Vector<14, Rcpp::PreserveStorage> > >::size() const /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/vector/VectorBase.h:49 #4 0x7b2172566d20 in void Rcpp::Vector<14, Rcpp::PreserveStorage>::import_sugar_expression > >(Rcpp::VectorBase<14, true, Rcpp::sugar::Vectorized<&log, true, Rcpp::Vector<14, Rcpp::PreserveStorage> > > const&, Rcpp::traits::integral_constant) /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/vector/Vector.h:1066 #5 0x7b2172566d20 in Rcpp::Vector<14, Rcpp::PreserveStorage>::Vector > >(Rcpp::VectorBase<14, true, Rcpp::sugar::Vectorized<&log, true, Rcpp::Vector<14, Rcpp::PreserveStorage> > > const&) /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/vector/Vector.h:164 #6 0x7b2172a5f997 in tsesimpcpp(Rcpp::DataFrame_Impl, std::__cxx11::basic_string, std::allocator >, Rcpp::Vector<16, Rcpp::PreserveStorage> const&, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, Rcpp::Vector<16, Rcpp::PreserveStorage> const&, Rcpp::Vector<16, Rcpp::PreserveStorage> const&, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, double, std::__cxx11::basic_string, std::allocator >, double, bool, int, int) /data/gannet/ripley/R/packages/tests-gcc-SAN/trtswitch/src/tsesimp.cpp:1060 #7 0x7b21724dc948 in _trtswitch_tsesimpcpp /data/gannet/ripley/R/packages/tests-gcc-SAN/trtswitch/src/RcppExports.cpp:617 #8 0x00000074a4f7 in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:884 #9 0x00000075106a in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1437 #10 0x0000008ccbf2 in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8114 #11 0x0000008b9e3b in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7497 #12 0x00000085a1b2 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167 #13 0x00000086fefa in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2389 #14 0x000000873fba in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2302 #15 0x00000085a853 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2324 #16 0x00000085a853 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1280 #17 0x000000888c4e in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3563 #18 0x00000085ac76 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1232 #19 0x00000086e6fb in do_begin /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2992 #20 0x00000085ac76 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1232 #21 0x0000008901f1 in do_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3937 #22 0x0000008ccbf2 in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8114 #23 0x0000008b9e3b in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7497 #24 0x00000085a1b2 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167 #25 0x00000086fefa in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2389 #26 0x000000873fba in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2302 #27 0x00000085a853 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2324 #28 0x00000085a853 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1280 #29 0x0000008912e3 in do_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3955 #30 0x0000008ccbf2 in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8114 #31 0x0000008b9e3b in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7497 #32 0x00000085a1b2 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167 #33 0x00000086fefa in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2389 #34 0x000000873fba in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2302 #35 0x0000008758d7 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2324 #36 0x0000008758d7 in R_forceAndCall /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2456 #37 0x00000049a4d6 in do_lapply /data/gannet/ripley/R/svn/R-devel/src/main/apply.c:75 #38 0x000000a91eb6 in do_internal /data/gannet/ripley/R/svn/R-devel/src/main/names.c:1411 #39 0x0000008d9e01 in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8134 #40 0x0000008b9e3b in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7497 #41 0x00000085a1b2 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167 #42 0x00000086fefa in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2389 #43 0x000000873fba in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2302 #44 0x00000085a853 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2324 #45 0x00000085a853 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1280 #46 0x000000a00488 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264 #47 0x000000a00488 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:317 #48 0x000000a058ba in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1235 #49 0x000000a0fad2 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1242 #50 0x0000004131bf in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29 #51 0x7f21880115f4 in __libc_start_call_main (/lib64/libc.so.6+0x35f4) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #52 0x7f21880116a7 in __libc_start_main@@GLIBC_2.34 (/lib64/libc.so.6+0x36a7) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #53 0x000000413b84 in _start (/data/gannet/ripley/R/gcc-SAN3/bin/exec/R+0x413b84) (BuildId: f8d8f2d1dbe5baae8efd01693b5908b1bb0df7da) Address 0x7b218362dcc0 is located in stack of thread T0 at offset 64 in frame #0 0x7b21724f4e6f in Rcpp::log(SEXPREC*) /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/sugar/functions/math.h:34 This frame has 2 object(s): [32, 40) '' [64, 96) '' <== Memory access at offset 64 is inside this variable HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork (longjmp and C++ exceptions *are* supported) SUMMARY: AddressSanitizer: stack-use-after-return /data/gannet/ripley/R/test-dev/Rcpp/include/Rcpp/storage/PreserveStorage.h:52 in Rcpp::PreserveStorage >::get__() const Shadow bytes around the buggy address: 0x7b218362da00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 0x7b218362da80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 0x7b218362db00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 00 00 00 00 0x7b218362db80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 00 00 00 00 0x7b218362dc00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 00 00 00 00 =>0x7b218362dc80: f5 f5 f5 f5 f5 f5 f5 f5[f5]f5 f5 f5 f5 f5 f5 f5 0x7b218362dd00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 00 00 00 00 0x7b218362dd80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 0x7b218362de00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 0x7b218362de80: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 0x7b218362df00: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 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 ==3274524==ABORTING