* using log directory ‘/data/gannet/ripley/R/packages/tests-clang-SAN/RWeightedKmeans.Rcheck’ * using R Under development (unstable) (2019-03-19 r76250) * 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 ... [30s/31s] 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) ================================================================= ==39874==ERROR: AddressSanitizer: dynamic-stack-buffer-overflow on address 0x7ffc24e776a8 at pc 0x7f2c6ae10ebf bp 0x7ffc24e758e0 sp 0x7ffc24e758d8 READ of size 8 at 0x7ffc24e776a8 thread T0 #0 0x7f2c6ae10ebe in CLUSTER_initClusters /data/gannet/ripley/R/packages/tests-clang-SAN/RWeightedKmeans/src/cluster.c:750:56 #1 0x7f2c6ae24fc7 in C_kmeans /data/gannet/ripley/R/packages/tests-clang-SAN/RWeightedKmeans/src/cluster_R_interface.c:43:5 #2 0x7fde6e in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:582:17 #3 0x8738bd in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1252:11 #4 0x9fa46d in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7283:21 #5 0x9dd71d in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:620:8 #6 0xa603b7 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c #7 0xa5d0a9 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1706:16 #8 0x9de8f0 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:743:12 #9 0xa6fccc in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2807:8 #10 0x9de32a in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:695:12 #11 0xb59be0 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:260:2 #12 0xb5e530 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:310:11 #13 0xb5e315 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1086:5 #14 0x53df1a in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5 #15 0x7f2c7be8811a in __libc_start_main (/lib64/libc.so.6+0x2311a) #16 0x42f169 in _start (/data/gannet/ripley/R/R-clang-SAN/bin/exec/R+0x42f169) Address 0x7ffc24e776a8 is located in stack of thread T0 SUMMARY: AddressSanitizer: dynamic-stack-buffer-overflow /data/gannet/ripley/R/packages/tests-clang-SAN/RWeightedKmeans/src/cluster.c:750:56 in CLUSTER_initClusters Shadow bytes around the buggy address: 0x1000049c6e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000049c6e90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000049c6ea0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000049c6eb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000049c6ec0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x1000049c6ed0: 00 00 00 00 cb[cb]cb cb 00 00 00 00 00 00 00 00 0x1000049c6ee0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000049c6ef0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000049c6f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000049c6f10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000049c6f20: 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 ==39874==ABORTING * DONE Status: 1 ERROR