* using log directory ‘/data/gannet/ripley/R/packages/tests-gcc-SAN/macs.Rcheck’ * using R Under development (unstable) (2019-10-10 r77275) * 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 ... [214s/470s] 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 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") ================================================================= ==32083==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6210004ed0a0 at pc 0x7efbf9bb64d1 bp 0x7ffe832cc5f0 sp 0x7ffe832cc5e0 WRITE of size 4 at 0x6210004ed0a0 thread T0 #0 0x7efbf9bb64d0 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-gcc-SAN/macs/src/cstree.cpp:1133 #1 0x7efbf9b741b5 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-gcc-SAN/macs/src/cstree.cpp:1109 #2 0x7efbf9bb0c06 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-gcc-SAN/macs/src/cstree.cpp:108 #3 0x7efbf9bc5a47 in cstree(Rcpp::DataFrame_Impl, Rcpp::Vector<13, Rcpp::PreserveStorage>, int) /data/gannet/ripley/R/packages/tests-gcc-SAN/macs/src/cstree.cpp:75 #4 0x7efbf9a27906 in _macs_cstree /data/gannet/ripley/R/packages/tests-gcc-SAN/macs/src/RcppExports.cpp:48 #5 0x626ca6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7462 #6 0x65583f in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:688 #7 0x65ad45 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1848 #8 0x65d188 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1774 #9 0x62bd20 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6883 #10 0x65583f in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:688 #11 0x65ad45 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1848 #12 0x65d188 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1774 #13 0x655c78 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:811 #14 0x662351 in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2903 #15 0x6561ac in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:763 #16 0x6cf40d in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264 #17 0x6cf40d in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:200 #18 0x6cfb08 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:314 #19 0x6cfc54 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1113 #20 0x419368 in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29 #21 0x7efc0a474f42 in __libc_start_main (/lib64/libc.so.6+0x23f42) #22 0x41ba9d in _start (/data/gannet/ripley/R/gcc-SAN/bin/exec/R+0x41ba9d) 0x6210004ed0a0 is located 0 bytes to the right of 4000-byte region [0x6210004ec100,0x6210004ed0a0) allocated by thread T0 here: #0 0x7efc0bb4ac58 in __interceptor_malloc (/lib64/libasan.so.5+0x10dc58) #1 0x7efbf9bafc6c in dvector(int) /data/gannet/ripley/R/packages/tests-gcc-SAN/macs/src/cstree.cpp:2459 #2 0x7efbf9bc528e in cstree(Rcpp::DataFrame_Impl, Rcpp::Vector<13, Rcpp::PreserveStorage>, int) /data/gannet/ripley/R/packages/tests-gcc-SAN/macs/src/cstree.cpp:69 #3 0x7efbf9a27906 in _macs_cstree /data/gannet/ripley/R/packages/tests-gcc-SAN/macs/src/RcppExports.cpp:48 #4 0x626ca6 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7462 SUMMARY: AddressSanitizer: heap-buffer-overflow /data/gannet/ripley/R/packages/tests-gcc-SAN/macs/src/cstree.cpp:1133 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 ==32083==ABORTING * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR