* using log directory ‘/data/gannet/ripley/R/packages/tests-gcc-SAN/RWeightedKmeans.Rcheck’ * using R Under development (unstable) (2019-03-18 r76245) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘RWeightedKmeans/DESCRIPTION’ ... OK * this is package ‘RWeightedKmeans’ version ‘1.1.0’ * 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 ‘RWeightedKmeans’ can be installed ... [24s/25s] 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 compiled code ... OK * checking examples ... ERROR Running examples in ‘RWeightedKmeans-Ex.R’ failed The error most likely occurred in: > ### Name: kmeans > ### Title: Standard MacQueen K-means Algorithm > ### Aliases: kmeans > ### Keywords: kmeans > > ### ** Examples > > data("iris") > > # Classical k-means algorithm > cl <- kmeans(as.matrix(iris[,1:4]), 3, 100) ================================================================= ==34963==ERROR: AddressSanitizer: dynamic-stack-buffer-overflow on address 0x7fff8a8be388 at pc 0x7f74dfba2751 bp 0x7fff8a8bc590 sp 0x7fff8a8bc580 READ of size 8 at 0x7fff8a8be388 thread T0 #0 0x7f74dfba2750 in CLUSTER_initClusters /data/gannet/ripley/R/packages/tests-gcc-SAN/RWeightedKmeans/src/cluster.c:739 #1 0x7f74dfba3d32 in C_kmeans /data/gannet/ripley/R/packages/tests-gcc-SAN/RWeightedKmeans/src/cluster_R_interface.c:43 #2 0x574edb in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1252 #3 0x62393d in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7283 #4 0x64588f in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:620 #5 0x64af95 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1780 #6 0x64d588 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1706 #7 0x645d93 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:743 #8 0x6522e1 in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2807 #9 0x646419 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:695 #10 0x6bd93e in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:260 #11 0x6bd93e in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:200 #12 0x6bdff0 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:310 #13 0x6be124 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1086 #14 0x4180e8 in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29 #15 0x7f74efbba11a in __libc_start_main (/lib64/libc.so.6+0x2311a) #16 0x41a819 in _start (/data/gannet/ripley/R/gcc-SAN/bin/exec/R+0x41a819) Address 0x7fff8a8be388 is located in stack of thread T0 SUMMARY: AddressSanitizer: dynamic-stack-buffer-overflow /data/gannet/ripley/R/packages/tests-gcc-SAN/RWeightedKmeans/src/cluster.c:739 in CLUSTER_initClusters Shadow bytes around the buggy address: 0x10007150fc20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10007150fc30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10007150fc40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10007150fc50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10007150fc60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x10007150fc70: cb[cb]cb cb 00 00 00 00 00 00 00 00 00 00 00 00 0x10007150fc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10007150fc90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x10007150fca0: f1 f1 f1 f1 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 f2 0x10007150fcb0: f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 0x10007150fcc0: 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 ==34963==ABORTING * DONE Status: 1 ERROR