* using log directory ‘/Users/ripley/R/packages/tests-SAN/slca.Rcheck’ * using R Under development (unstable) (2026-09-14 r90538) * using platform: aarch64-apple-darwin27.0.0 * R was compiled by Apple clang version 21.0.0 (clang-2100.3.34.2) GNU Fortran (GCC) 14.2.0 * running under: macOS Golden Gate 27.0.1 * using session charset: UTF-8 * current time: 2026-10-23 07:20:07 UTC * using option ‘--no-stop-on-test-error’ * checking for file ‘slca/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘slca’ version ‘1.4.1’ * package encoding: UTF-8 * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package ‘slca’ can be installed ... [21s/11s] OK * used C++ compiler: ‘Apple clang version 21.0.0 (clang-2100.3.34.1)’ * used SDK: ‘MacOSX27.2.sdk’ * checking package directory ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking examples ... [11s/11s] ERROR Running examples in ‘slca-Ex.R’ failed The error most likely occurred in: > ### Name: reorder.slcafit > ### Title: Reorder Latent Class Membership of Latent Class Variables > ### Aliases: reorder.slcafit > > ### ** Examples > > library(magrittr) > nlsy_jlcpa %>% param PI : (PROF) class 1 2 3 4 0.2790 0.2146 0.2869 0.2195 TAU : (A) parent child 1 2 3 4 1 0.0000 0.0000 0.1745 0.0000 2 0.0901 0.4456 0.1939 0.0403 3 0.3771 0.1675 0.1825 0.7018 4 0.2620 0.0000 0.0000 0.0813 5 0.2709 0.3869 0.4491 0.1766 parent PROF child SUB_98 (B) parent child 1 2 3 4 1 0.0000 0.0114 0.8719 0.0000 2 0.0000 0.9617 0.0000 0.0079 3 0.0000 0.0000 0.0965 0.9210 4 0.9941 0.0000 0.0000 0.0711 5 0.0059 0.0269 0.0316 0.0000 parent PROF child SUB_03 (C) parent child 1 2 3 4 1 0.0019 0.1821 0.8024 0.0319 2 0.0097 0.7202 0.0000 0.0000 3 0.0573 0.0442 0.1844 0.7168 4 0.9311 0.0356 0.0084 0.2473 5 0.0000 0.0179 0.0048 0.0040 parent PROF child SUB_08 (D) parent child 1 2 3 4 5 1 0.0254 0.0457 0.9505 0.7958 0.1613 2 0.7516 0.6690 0.0051 0.0000 0.1631 3 0.2230 0.2853 0.0444 0.2042 0.6755 parent SUB_98 SUB_03 SUB_08 child SMK_98 SMK_03 SMK_08 (E) parent child 1 2 3 4 5 1 0.5664 0.8533 0.0335 0.7521 0.2872 2 0.2229 0.1264 0.2589 0.2414 0.6127 3 0.2107 0.0203 0.7075 0.0065 0.1001 parent SUB_98 SUB_03 SUB_08 child DRK_98 DRK_03 DRK_08 (F) parent child 1 2 3 4 5 1 0.0871 0.1442 0.0317 0.1525 0.7278 2 0.0617 0.8387 0.0095 0.2302 0.1258 3 0.8512 0.0170 0.9588 0.6173 0.1463 parent SUB_98 SUB_03 SUB_08 child MRJ_98 MRJ_03 MRJ_08 RHO : (a) class response 1 2 3 1(V1) 0.0134 1.0000 1.0000 2 0.9866 0.0000 0.0000 1(V2) 0.0000 1.0000 0.6701 2 1.0000 0.0000 0.3299 1(V3) 0.0000 0.8833 0.0000 2 1.0000 0.1167 1.0000 1(V4) 0.0000 0.6460 0.0000 2 1.0000 0.3540 1.0000 V1 V2 V3 V4 SMK_98 ESMK_98 FSMK_98 DSMK_98 HSMK_98 SMK_03 ESMK_03 FSMK_03 DSMK_03 HSMK_03 SMK_08 ESMK_08 FSMK_08 DSMK_08 HSMK_08 (b) class response 1 2 3 1(V1) 1.0000 1.0000 0.0759 2 0.0000 0.0000 0.9241 1(V2) 1.0000 0.5760 0.0000 2 0.0000 0.4240 1.0000 1(V3) 0.6934 0.0000 0.0000 2 0.3066 1.0000 1.0000 1(V4) 0.8061 0.0000 0.0000 2 0.1939 1.0000 1.0000 V1 V2 V3 V4 DRK_98 EDRK_98 CDRK_98 WDRK_98 BDRK_98 DRK_03 EDRK_03 CDRK_03 WDRK_03 BDRK_03 DRK_08 EDRK_08 CDRK_08 WDRK_08 BDRK_08 (c) class response 1 2 3 1(V1) 0.5189 1.0000 0.0002 2 0.4811 0.0000 0.9998 1(V2) 0.0000 1.0000 0.0000 2 1.0000 0.0000 1.0000 1(V3) 0.0000 0.5259 0.0000 2 1.0000 0.4741 1.0000 1(V4) 0.0000 0.3720 0.0000 2 1.0000 0.6280 1.0000 V1 V2 V3 V4 MRJ_98 EMRJ_98 CMRJ_98 OMRJ_98 SMRJ_98 MRJ_03 EMRJ_03 CMRJ_03 OMRJ_03 SMRJ_03 MRJ_08 EMRJ_08 CMRJ_08 OMRJ_08 SMRJ_08 > > # Reorder the RHO parameters as ascending order > reordered1 <- nlsy_jlcpa %>% + reorder(SMK_98 = c(1, 3, 2), + DRK_98 = c(3, 2, 1), + MRJ_98 = c(3, 1, 2)) ================================================================= ==21643==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61b000008b58 at pc 0x00010b46598c bp 0x00016f97e040 sp 0x00016f97e038 READ of size 8 at 0x61b000008b58 thread T0 #0 0x00010b465988 in upInit(int*, double const*, double*, int, int, int, int*) upward.cpp:14 #1 0x00010b43c134 in calcModel(Rcpp::Vector<13, Rcpp::PreserveStorage>, int, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<10, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, int, int, int, int, int, int, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>) calculate.cpp:108 #2 0x00010b4186bc in _slca_calcModel RcppExports.cpp:71 #3 0x000101cb54a0 in R_doDotCall dotcode.c #4 0x000101d44180 in do_dotcall dotcode.c:1437 #5 0x000101ef4724 in bcEval_loop eval.c:8150 #6 0x000101ea00e0 in bcEval eval.c:7533 #7 0x000101e9e178 in Rf_eval eval.c:1167 #8 0x000101ea8724 in R_execClosure eval.c:2398 #9 0x000101ea3d24 in applyClosure_core eval.c:2314 #10 0x000101ea1e8c in Rf_applyClosure eval.c:2333 #11 0x000102084b88 in dispatchMethod objects.c:473 #12 0x00010208292c in Rf_usemethod objects.c:513 #13 0x000102085e14 in do_usemethod objects.c:579 #14 0x000101ee2bec in bcEval_loop eval.c:8170 #15 0x000101ea00e0 in bcEval eval.c:7533 #16 0x000101e9e178 in Rf_eval eval.c:1167 #17 0x000101ea8724 in R_execClosure eval.c:2398 #18 0x000101ea3d24 in applyClosure_core eval.c:2314 #19 0x000101ea1e8c in Rf_applyClosure eval.c:2333 #20 0x000101e9eba0 in Rf_eval eval.c:1278 #21 0x00010a2198ec in magrittr_pipe+0x694 (magrittr.so:arm64+0x18ec) #22 0x000101c9b45c in do_External dotcode.c:573 #23 0x000101ef4724 in bcEval_loop eval.c:8150 #24 0x000101ea00e0 in bcEval eval.c:7533 #25 0x000101e9e178 in Rf_eval eval.c:1167 #26 0x000101ea8724 in R_execClosure eval.c:2398 #27 0x000101ea3d24 in applyClosure_core eval.c:2314 #28 0x000101ea1e8c in Rf_applyClosure eval.c:2333 #29 0x000101e9eba0 in Rf_eval eval.c:1278 #30 0x000101eb719c in do_set eval.c:3585 #31 0x000101e9e5d4 in Rf_eval eval.c:1230 #32 0x000101ffe4a4 in Rf_ReplIteration main.c:264 #33 0x0001020027b4 in R_ReplConsole main.c:319 #34 0x0001020025c8 in run_Rmainloop main.c:1239 #35 0x0001020028b0 in Rf_mainloop main.c:1246 #36 0x0001004755f0 in main Rmain.c:29 #37 0x000193497e7c in start+0x1a1c (dyld:arm64e+0x31e7c) 0x61b000008b58 is located 0 bytes after 1496-byte region [0x61b000008580,0x61b000008b58) allocated by thread T0 here: #0 0x000102e4d274 in malloc+0x78 (libclang_rt.asan_osx_dynamic.dylib:arm64e+0x41274) #1 0x000102021a94 in Rf_allocVector3 memory.c:2897 #2 0x000101df8fd0 in Rf_allocVector Rinlinedfuns.h:609 #3 0x000101df8fd0 in duplicate1 duplicate.c:348 #4 0x000101dfd5c8 in Rf_shallow_duplicate duplicate.c:160 #5 0x000101eec5d8 in bcEval_loop eval.c:8253 #6 0x000101ea00e0 in bcEval eval.c:7533 #7 0x000101e9e178 in Rf_eval eval.c:1167 #8 0x000101ea8724 in R_execClosure eval.c:2398 #9 0x000101ea3d24 in applyClosure_core eval.c:2314 #10 0x000101ea1e8c in Rf_applyClosure eval.c:2333 #11 0x000102084b88 in dispatchMethod objects.c:473 #12 0x00010208292c in Rf_usemethod objects.c:513 #13 0x000102085e14 in do_usemethod objects.c:579 #14 0x000101ee2bec in bcEval_loop eval.c:8170 #15 0x000101ea00e0 in bcEval eval.c:7533 #16 0x000101e9e178 in Rf_eval eval.c:1167 #17 0x000101ea8724 in R_execClosure eval.c:2398 #18 0x000101ea3d24 in applyClosure_core eval.c:2314 #19 0x000101ea1e8c in Rf_applyClosure eval.c:2333 #20 0x000101e9eba0 in Rf_eval eval.c:1278 #21 0x00010a2198ec in magrittr_pipe+0x694 (magrittr.so:arm64+0x18ec) #22 0x000101c9b45c in do_External dotcode.c:573 #23 0x000101ef4724 in bcEval_loop eval.c:8150 #24 0x000101ea00e0 in bcEval eval.c:7533 #25 0x000101e9e178 in Rf_eval eval.c:1167 #26 0x000101ea8724 in R_execClosure eval.c:2398 #27 0x000101ea3d24 in applyClosure_core eval.c:2314 #28 0x000101ea1e8c in Rf_applyClosure eval.c:2333 #29 0x000101e9eba0 in Rf_eval eval.c:1278 #30 0x000101eb719c in do_set eval.c:3585 SUMMARY: AddressSanitizer: heap-buffer-overflow upward.cpp:14 in upInit(int*, double const*, double*, int, int, int, int*) Shadow bytes around the buggy address: 0x61b000008880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x61b000008900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x61b000008980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x61b000008a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x61b000008a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x61b000008b00: 00 00 00 00 00 00 00 00 00 00 00[fa]fa fa fa fa 0x61b000008b80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x61b000008c00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x61b000008c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x61b000008d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x61b000008d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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 ==21643==ABORTING * checking tests ... [50s/50s] OK Running ‘testthat.R’ [50s/50s] * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR