R Under development (unstable) (2026-02-27 r89490) -- "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(fastkmedoids) > > test_check("fastkmedoids") pam.cpp:625:51: runtime error: left shift of negative value -1 #0 0x7fb4e6944322 in FastPAM::assignToNearestCluster(std::vector>&) /data/gannet/ripley/R/packages/tests-clang-UBSAN/fastkmedoids/src/pam.cpp:625:51 #1 0x7fb4e69411f4 in FastPAM::run(std::vector>&, int) /data/gannet/ripley/R/packages/tests-clang-UBSAN/fastkmedoids/src/pam.cpp:445:17 #2 0x7fb4e69401d4 in PAM::run() /data/gannet/ripley/R/packages/tests-clang-UBSAN/fastkmedoids/src/pam.cpp:285:19 #3 0x7fb4e6953bf3 in FastPAM::run() /data/gannet/ripley/R/packages/tests-clang-UBSAN/fastkmedoids/src/./pam.h:296:40 #4 0x7fb4e6953bf3 in fastpam(Rcpp::Vector<14, Rcpp::PreserveStorage>, int, int, int, std::__cxx11::basic_string, std::allocator>, double, int) /data/gannet/ripley/R/packages/tests-clang-UBSAN/fastkmedoids/src/rcpp_fastkmedoids.cpp:106:21 #5 0x7fb4e693300c in _fastkmedoids_fastpam /data/gannet/ripley/R/packages/tests-clang-UBSAN/fastkmedoids/src/RcppExports.cpp:40:34 #6 0x559307a3077b in R_doDotCall (/data/gannet/ripley/R/R-clang/bin/exec/R+0x9077b) #7 0x559307a78ed7 in bcEval_loop eval.c #8 0x559307a6702b in bcEval eval.c #9 0x559307a667b4 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc67b4) #10 0x559307a7e848 in R_execClosure eval.c #11 0x559307a7dd4b in applyClosure_core eval.c #12 0x559307a66c05 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc6c05) #13 0x559307a83d77 in do_set (/data/gannet/ripley/R/R-clang/bin/exec/R+0xe3d77) #14 0x559307a669df in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc69df) #15 0x559307a82eba in do_begin (/data/gannet/ripley/R/R-clang/bin/exec/R+0xe2eba) #16 0x559307a669df in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc69df) #17 0x559307a851e7 in do_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xe51e7) #18 0x559307a6dca3 in bcEval_loop eval.c #19 0x559307a6702b in bcEval eval.c #20 0x559307a667b4 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc67b4) #21 0x559307a7e848 in R_execClosure eval.c #22 0x559307a7dd4b in applyClosure_core eval.c #23 0x559307a66c05 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc6c05) #24 0x559307a855c7 in do_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xe55c7) #25 0x559307a6dca3 in bcEval_loop eval.c #26 0x559307a6702b in bcEval eval.c #27 0x559307a667b4 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc67b4) #28 0x559307a7e848 in R_execClosure eval.c #29 0x559307a7dd4b in applyClosure_core eval.c #30 0x559307a81204 in R_forceAndCall (/data/gannet/ripley/R/R-clang/bin/exec/R+0xe1204) #31 0x5593079b57eb in do_lapply (/data/gannet/ripley/R/R-clang/bin/exec/R+0x157eb) #32 0x559307ac8737 in do_internal (/data/gannet/ripley/R/R-clang/bin/exec/R+0x128737) #33 0x559307a6df05 in bcEval_loop eval.c #34 0x559307a6702b in bcEval eval.c #35 0x559307a667b4 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc67b4) #36 0x559307a7e848 in R_execClosure eval.c #37 0x559307a7dd4b in applyClosure_core eval.c #38 0x559307a66c05 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc6c05) #39 0x559307ab3687 in Rf_ReplIteration (/data/gannet/ripley/R/R-clang/bin/exec/R+0x113687) #40 0x559307ab518e in run_Rmainloop (/data/gannet/ripley/R/R-clang/bin/exec/R+0x11518e) #41 0x559307ab51fa in Rf_mainloop (/data/gannet/ripley/R/R-clang/bin/exec/R+0x1151fa) #42 0x5593079a1db7 in main (/data/gannet/ripley/R/R-clang/bin/exec/R+0x1db7) #43 0x7fb4f74115f4 in __libc_start_call_main (/lib64/libc.so.6+0x35f4) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #44 0x7fb4f74116a7 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x36a7) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #45 0x5593079a1cd4 in _start (/data/gannet/ripley/R/R-clang/bin/exec/R+0x1cd4) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior pam.cpp:625:51 [ FAIL 0 | WARN 0 | SKIP 0 | PASS 53 ] > > proc.time() user system elapsed 2.250 0.244 9.620