R Under development (unstable) (2025-12-18 r89199) -- "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. > > # Manually run test_Ditrack.Rtest because of run time. > > source('../tests/test_Diopt.Rtest', echo=FALSE) Loading required package: statmod all Diopt tests PASSED > source('../tests/test_Dimodal.Rtest', echo=FALSE) ================================================================= ==1606240==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7d7924e8d960 at pc 0x7bd924c7df28 bp 0x7ffe03648c80 sp 0x7ffe03648c78 READ of size 8 at 0x7d7924e8d960 thread T0 #0 0x7bd924c7df27 in segment_midrun /data/gannet/ripley/R/packages/tests-clang-ASAN/Dimodal/src/utility.c:389:8 #1 0x7bd924c7df27 in impl_midq /data/gannet/ripley/R/packages/tests-clang-ASAN/Dimodal/src/utility.c:213:3 #2 0x7bd924c7df27 in C_midq /data/gannet/ripley/R/packages/tests-clang-ASAN/Dimodal/src/utility.c:98:9 #3 0x55e6f4175044 in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:760:11 #4 0x55e6f418055c in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1437:11 #5 0x55e6f422b389 in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8132:14 #6 0x55e6f421e044 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7515:16 #7 0x55e6f421c56a in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167:8 #8 0x55e6f42644fc in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2389:22 #9 0x55e6f42636c1 in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2302:16 #10 0x55e6f421cfb9 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2324:16 #11 0x55e6f421cfb9 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1280:12 #12 0x55e6f4275bf5 in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3581:8 #13 0x55e6f421cab3 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1232:12 #14 0x55e6f427b03a in do_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3973:9 #15 0x55e6f422b389 in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8132:14 #16 0x55e6f421e044 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7515:16 #17 0x55e6f421c56a in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167:8 #18 0x55e6f421e901 in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:976:13 #19 0x55e6f421c764 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1187:6 #20 0x55e6f427b903 in do_withVisible /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3998:9 #21 0x55e6f4327d19 in do_internal /data/gannet/ripley/R/svn/R-devel/src/main/names.c:1411:11 #22 0x55e6f4230b83 in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8152:15 #23 0x55e6f421e044 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7515:16 #24 0x55e6f421c56a in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167:8 #25 0x55e6f42644fc in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2389:22 #26 0x55e6f42636c1 in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2302:16 #27 0x55e6f421cfb9 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2324:16 #28 0x55e6f421cfb9 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1280:12 #29 0x55e6f42f10c1 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264:15 #30 0x55e6f42f3910 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:317:11 #31 0x55e6f42f3910 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1235:5 #32 0x55e6f42f39a2 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1242:5 #33 0x55e6f3ffa13c in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5 #34 0x7fd9284115f4 in __libc_start_call_main (/lib64/libc.so.6+0x35f4) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #35 0x7fd9284116a7 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x36a7) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #36 0x55e6f3f127e4 in _start (/data/gannet/ripley/R/clang-ASAN/bin/exec/R+0x17e4) 0x7d7924e8d960 is located 0 bytes after 1248-byte region [0x7d7924e8d480,0x7d7924e8d960) allocated by thread T0 here: #0 0x55e6f3fb7104 in malloc /data/gannet/ripley/Sources2/LLVM/21/latest/compiler-rt/lib/asan/asan_malloc_linux.cpp:67:3 #1 0x55e6f42fc140 in Rf_allocVector3 /data/gannet/ripley/R/svn/R-devel/src/main/memory.c:2894:7 #2 0x55e6f4453c4e in Rf_allocVector /data/gannet/ripley/R/svn/R-devel/src/include/Rinlinedfuns.h:609:12 #3 0x55e6f4453c4e in Rf_ExtractSubset /data/gannet/ripley/R/svn/R-devel/src/main/subset.c:134:5 #4 0x55e6f445c57a in VectorSubset /data/gannet/ripley/R/svn/R-devel/src/main/subset.c:216:19 #5 0x55e6f445c57a in do_subset_dflt /data/gannet/ripley/R/svn/R-devel/src/main/subset.c:861:2 #6 0x55e6f425dd3e in VECSUBSET_PTR /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6367:10 #7 0x55e6f42428fc in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8357:23 #8 0x55e6f421e044 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7515:16 #9 0x55e6f421c56a in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167:8 #10 0x55e6f42644fc in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2389:22 #11 0x55e6f42636c1 in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2302:16 #12 0x55e6f421fef8 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2324:16 #13 0x55e6f432e704 in dispatchMethod /data/gannet/ripley/R/svn/R-devel/src/main/objects.c:473:16 #14 0x55e6f432d388 in Rf_usemethod /data/gannet/ripley/R/svn/R-devel/src/main/objects.c:523:9 #15 0x55e6f432f963 in do_usemethod /data/gannet/ripley/R/svn/R-devel/src/main/objects.c:579:9 #16 0x55e6f4230b83 in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8152:15 #17 0x55e6f421e044 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7515:16 #18 0x55e6f421c56a in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167:8 #19 0x55e6f42644fc in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2389:22 #20 0x55e6f42636c1 in applyClosure_core /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2302:16 #21 0x55e6f421cfb9 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2324:16 #22 0x55e6f421cfb9 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1280:12 #23 0x55e6f4275bf5 in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3581:8 #24 0x55e6f421cab3 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1232:12 #25 0x55e6f427b03a in do_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3973:9 #26 0x55e6f422b389 in bcEval_loop /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:8132:14 #27 0x55e6f421e044 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7515:16 #28 0x55e6f421c56a in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1167:8 #29 0x55e6f421e901 in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:976:13 #30 0x55e6f421c764 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1187:6 #31 0x55e6f427b903 in do_withVisible /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:3998:9 #32 0x55e6f4327d19 in do_internal /data/gannet/ripley/R/svn/R-devel/src/main/names.c:1411:11 SUMMARY: AddressSanitizer: heap-buffer-overflow /data/gannet/ripley/R/packages/tests-clang-ASAN/Dimodal/src/utility.c:389:8 in segment_midrun Shadow bytes around the buggy address: 0x7d7924e8d680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7d7924e8d700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7d7924e8d780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7d7924e8d800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7d7924e8d880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x7d7924e8d900: 00 00 00 00 00 00 00 00 00 00 00 00[fa]fa fa fa 0x7d7924e8d980: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7d7924e8da00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7d7924e8da80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7d7924e8db00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7d7924e8db80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 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 ==1606240==ABORTING