* using log directory ‘/data/gannet/ripley/R/packages/tests-clang-SAN/clusternor.Rcheck’ * using R Under development (unstable) (2021-07-09 r80609) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘clusternor/DESCRIPTION’ ... OK * this is package ‘clusternor’ version ‘0.0-4’ * 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 ‘clusternor’ can be installed ... [231s/233s] OK * 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 contents of ‘data’ directory ... OK * checking LazyData ... OK * checking compiled code ... OK * checking examples ... ERROR Running examples in ‘clusternor-Ex.R’ failed The error most likely occurred in: > ### Name: test_centroids > ### Title: A small example of centroids of dim: (8,5) used as for > ### micro-benchmarks of the clusternor package. The data are randomly > ### generated. > ### Aliases: test_centroids > ### Keywords: datasets > > ### ** Examples > > data(test_centroids) > kms <- Kmeans(test_data, test_centroids) Warning: stack imbalance in '<-', 2 then -1 ================================================================= ==3295074==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7fc1da01e7f0 at pc 0x00000095130c bp 0x7ffe790c9410 sp 0x7ffe790c9408 WRITE of size 8 at 0x7fc1da01e7f0 thread T0 #0 0x95130b in Rf_protect /data/gannet/ripley/R/svn/R-devel/src/include/Rinlinedfuns.h:482:28 #1 0x96adb1 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264:2 #2 0x96e2a0 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:316:11 #3 0x96e0c9 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1122:5 #4 0x96e422 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1129:5 #5 0x4e03fa in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5 #6 0x7fc1de8ed081 in __libc_start_main (/lib64/libc.so.6+0x27081) #7 0x4312bd in _start (/data/gannet/ripley/R/R-clang-SAN/bin/exec/R+0x4312bd) 0x7fc1da01e7f0 is located 16 bytes to the left of 408000-byte region [0x7fc1da01e800,0x7fc1da0821c0) allocated by thread T0 here: #0 0x4acf7d in malloc /data/gannet/ripley/Sources2/LLVM/12.0.0/llvm-project-12.0.0.src/compiler-rt/lib/asan/asan_malloc_linux.cpp:145:3 #1 0x980969 in Rf_InitMemory /data/gannet/ripley/R/svn/R-devel/src/main/memory.c:2148:32 #2 0x96c680 in setup_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:882:5 #3 0x96e418 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1128:5 #4 0x4e03fa in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5 #5 0x7fc1de8ed081 in __libc_start_main (/lib64/libc.so.6+0x27081) SUMMARY: AddressSanitizer: heap-buffer-overflow /data/gannet/ripley/R/svn/R-devel/src/include/Rinlinedfuns.h:482:28 in Rf_protect Shadow bytes around the buggy address: 0x0ff8bb3fbca0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0ff8bb3fbcb0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0ff8bb3fbcc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0ff8bb3fbcd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0ff8bb3fbce0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x0ff8bb3fbcf0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa[fa]fa 0x0ff8bb3fbd00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ff8bb3fbd10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ff8bb3fbd20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ff8bb3fbd30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ff8bb3fbd40: 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 Shadow gap: cc ==3295074==ABORTING * checking tests ... OK Running ‘testthat.R’ * DONE Status: 1 ERROR