* using log directory ‘/data/gannet/ripley/R/packages/tests-clang-SAN/macs.Rcheck’ * using R Under development (unstable) (2019-10-10 r77274) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘macs/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘macs’ version ‘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 ‘macs’ can be installed ... [123s/95s] WARNING Found the following significant warnings: cmasal.cpp:2265:3: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] See ‘/data/gannet/ripley/R/packages/tests-clang-SAN/macs.Rcheck/00install.out’ for details. * 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 compiled code ... OK * checking examples ... ERROR Running examples in ‘macs-Ex.R’ failed The error most likely occurred in: > ### Name: forecast.stree > ### Title: Predict method for STREE Model Fits > ### Aliases: forecast.stree > > ### ** Examples > > # load "macs" library > library("macs") > set.seed(1234) > data <- data.frame(r = runif(1000, 1, 10), c = rbinom(1000, 1, 0.5), + n = as.factor(sample(1:4, 1000, replace = TRUE, + prob = c(0.1, 0.3, 0.2, 0.4))), + o1 = sample(1:50, 1000, replace = TRUE), + o2 = sample(1:30, 1000, replace = TRUE), + o3 = sample(1:10, 1000, replace = TRUE), + o4 = sample(1:60, 1000, replace = TRUE), + o5 = sample(1:20, 1000, replace = TRUE), + o6 = sample(1:40, 1000, replace = TRUE)) > head(data) r c n o1 o2 o3 o4 o5 o6 1 2.023331 1 4 47 3 7 24 13 25 2 6.600695 0 4 47 15 6 10 3 40 3 6.483473 0 2 18 26 4 57 4 39 4 6.610415 0 2 14 23 10 13 19 39 5 8.748238 1 4 26 27 5 9 9 25 6 6.762795 0 2 27 21 3 41 16 11 > result <- stree(data, family = "likelihood") ================================================================= ==28115==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6210004ed0a0 at pc 0x7fa13047d7d3 bp 0x7ffd600299f0 sp 0x7ffd600299e8 WRITE of size 4 at 0x6210004ed0a0 thread T0 #0 0x7fa13047d7d2 in split_a_node1(int, float**, float**, int***, int**, int*, float*, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, int*, int**, Rcpp::Vector<13, Rcpp::PreserveStorage>, float**, Rcpp::Vector<14, Rcpp::PreserveStorage>) /data/gannet/ripley/R/packages/tests-clang-SAN/macs/src/cstree.cpp:1133:18 #1 0x7fa13044954d in grow_large_tree1(float**, float**, int, int*, float*, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, int*, Rcpp::Vector<13, Rcpp::PreserveStorage>, float**, Rcpp::Vector<14, Rcpp::PreserveStorage>) /data/gannet/ripley/R/packages/tests-clang-SAN/macs/src/cstree.cpp:1109:5 #2 0x7fa1304480a4 in similarity(float**, float**, int, float*, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, int*, int**, Rcpp::Vector<13, Rcpp::PreserveStorage>, float**, Rcpp::Vector<14, Rcpp::PreserveStorage>, int) /data/gannet/ripley/R/packages/tests-clang-SAN/macs/src/cstree.cpp:108:5 #3 0x7fa13043f6f4 in cstree(Rcpp::DataFrame_Impl, Rcpp::Vector<13, Rcpp::PreserveStorage>, int) /data/gannet/ripley/R/packages/tests-clang-SAN/macs/src/cstree.cpp:75:7 #4 0x7fa130385c1a in _macs_cstree /data/gannet/ripley/R/packages/tests-clang-SAN/macs/src/RcppExports.cpp:48:34 #5 0x86d029 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7343:21 #6 0x8542e8 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:620:8 #7 0x8b1ceb in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c #8 0x8aefc5 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1706:16 #9 0x872ea1 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6764:12 #10 0x8542e8 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:620:8 #11 0x8b1ceb in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c #12 0x8aefc5 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1706:16 #13 0x8551e8 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:743:12 #14 0x8be32b in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2829:8 #15 0x854aab in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:695:12 #16 0x98a9d6 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264:2 #17 0x98eef0 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:314:11 #18 0x98ecd5 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1112:5 #19 0x4da35a in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5 #20 0x7fa14125af42 in __libc_start_main (/lib64/libc.so.6+0x23f42) #21 0x43036d in _start (/data/gannet/ripley/R/R-clang-SAN/bin/exec/R+0x43036d) 0x6210004ed0a0 is located 0 bytes to the right of 4000-byte region [0x6210004ec100,0x6210004ed0a0) allocated by thread T0 here: #0 0x4a838d in malloc /data/gannet/ripley/Sources/LLVM/9.0.0/llvm-9.0.0.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:145:3 #1 0x7fa13043f45f in dvector(int) /data/gannet/ripley/R/packages/tests-clang-SAN/macs/src/cstree.cpp:2459:14 #2 0x7fa13043f45f in cstree(Rcpp::DataFrame_Impl, Rcpp::Vector<13, Rcpp::PreserveStorage>, int) /data/gannet/ripley/R/packages/tests-clang-SAN/macs/src/cstree.cpp:69:8 #3 0x7fa130385c1a in _macs_cstree /data/gannet/ripley/R/packages/tests-clang-SAN/macs/src/RcppExports.cpp:48:34 #4 0x86d029 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7343:21 #5 0x8542e8 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:620:8 #6 0x8b1ceb in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c #7 0x8aefc5 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1706:16 #8 0x872ea1 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6764:12 #9 0x8542e8 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:620:8 #10 0x8b1ceb in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c #11 0x8aefc5 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1706:16 #12 0x8551e8 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:743:12 #13 0x8be32b in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2829:8 #14 0x854aab in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:695:12 #15 0x98a9d6 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264:2 #16 0x98eef0 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:314:11 #17 0x98ecd5 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1112:5 #18 0x4da35a in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5 #19 0x7fa14125af42 in __libc_start_main (/lib64/libc.so.6+0x23f42) SUMMARY: AddressSanitizer: heap-buffer-overflow /data/gannet/ripley/R/packages/tests-clang-SAN/macs/src/cstree.cpp:1133:18 in split_a_node1(int, float**, float**, int***, int**, int*, float*, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, Rcpp::Vector<13, Rcpp::PreserveStorage>, int*, int**, Rcpp::Vector<13, Rcpp::PreserveStorage>, float**, Rcpp::Vector<14, Rcpp::PreserveStorage>) Shadow bytes around the buggy address: 0x0c42800959c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c42800959d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c42800959e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c42800959f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c4280095a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x0c4280095a10: 00 00 00 00[fa]fa fa fa fa fa fa fa fa fa fa fa 0x0c4280095a20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c4280095a30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c4280095a40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c4280095a50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c4280095a60: 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 Shadow gap: cc ==28115==ABORTING * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 1 WARNING