* using log directory ‘/data/gannet/ripley/R/packages/tests-clang-SAN/SeqBayesDesign.Rcheck’ * using R Under development (unstable) (2018-03-13 r74399) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘SeqBayesDesign/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘SeqBayesDesign’ version ‘0.1.0’ * 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 ‘SeqBayesDesign’ can be installed ... [59s/55s] 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 ‘SeqBayesDesign-Ex.R’ failed The error most likely occurred in: > ### Name: SBD.next.pt > ### Title: Next design point by the sequential Bayesian design > ### Aliases: SBD.next.pt > > ### ** Examples > > data(fiber) > data(use) > dat <- data.read(fiber, "CFT.EC") > dat.CFT <- dat.setting(dat, exp.type = "CFT.EC", use.level = use, max.level = NULL, + Cen.time = 200000, mu.fun = "E-C", show = TRUE) $data x Y Censored wts Rval Frequency Angle UTS 1 552 1676987 1 1 0.1 2 0 0 2 621 122552 0 1 0.1 2 0 0 3 483 2000000 1 1 0.1 3 0 0 4 414 350000 1 1 0.1 3 0 0 5 965 8650 0 1 0.1 1 0 0 6 965 1717 0 1 0.1 1 0 0 7 827 36033 0 1 0.1 2 0 0 8 827 15619 0 1 0.1 2 0 0 9 827 22378 0 1 0.1 1 0 0 10 690 145926 0 1 0.1 2 0 0 11 690 52519 0 1 0.1 2 0 0 12 690 57222 0 1 0.1 2 0 0 13 621 682668 0 1 0.1 3 0 0 14 621 313511 0 1 0.1 3 0 0 $max.level [1] 1339.667 > init <- lifetime.model(dat.CFT, c(0.01, 0.3, 0.7)) > prior <- c(0.000001, 0.1, 0.000001, 1, 4.5, 3) > #C-optimality > ## Don't show: > SBD.next.pt(dat.CFT$Nobs, dat.CFT, prior, "uniform", n.int=10000, n.sample=50, + initial = init[[2]], "lnor", dat.CFT$mu.fun, seq(0.35, 0.75, 0.05), + quantile=0.1, lambda=0) [1] 0.01571306 0.31880376 0.72590112 2 3 4 5 6 7 8 ================================================================= ==24131==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x625002714818 at pc 0x7fc97a86cd43 bp 0x7ffe5482e690 sp 0x7ffe5482e688 READ of size 8 at 0x625002714818 thread T0 #0 0x7fc97a86cd42 in VecPnorm(Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, double) /data/gannet/ripley/R/packages/tests-clang-SAN/SeqBayesDesign/src/seq_MCMC.cpp:51:17 #1 0x7fc97a878aab in TMCMC(Rcpp::Vector<19, Rcpp::PreserveStorage>, int, Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<16, Rcpp::PreserveStorage>, Rcpp::Vector<16, Rcpp::PreserveStorage>, Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<16, Rcpp::PreserveStorage>, double) /data/gannet/ripley/R/packages/tests-clang-SAN/SeqBayesDesign/src/seq_MCMC.cpp:238:37 #2 0x7fc97a8376d5 in _SeqBayesDesign_TMCMC /data/gannet/ripley/R/packages/tests-clang-SAN/SeqBayesDesign/src/RcppExports.cpp:23:34 #3 0x7eb385 in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c #4 0x9cb4a2 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7278:21 #5 0x9b1d0d in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:624:8 #6 0xa256db in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c #7 0x9d6b08 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6739:12 #8 0x9b1d0d in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:624:8 #9 0xa256db in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c #10 0x9d6b08 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6739:12 #11 0x9b1d0d in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:624:8 #12 0xa256db in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c #13 0x9b2ee4 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:747:12 #14 0xb1f353 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:258:2 #15 0xb242d0 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:308:11 #16 0xb240b5 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1082:5 #17 0x52a08a in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5 #18 0x7fc9895b7889 in __libc_start_main (/lib64/libc.so.6+0x20889) #19 0x42d829 in _start (/data/gannet/ripley/R/R-clang-SAN/bin/exec/R+0x42d829) 0x625002714818 is located 0 bytes to the right of 7960-byte region [0x625002712900,0x625002714818) allocated by thread T0 here: #0 0x4ed6d0 in __interceptor_malloc /data/gannet/ripley/Sources/LLVM/6.0.x/trunk/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:88 #1 0xb3fe08 in GetNewPage /data/gannet/ripley/R/svn/R-devel/src/main/memory.c:888:12 #2 0xb43579 in CONS_NR /data/gannet/ripley/R/svn/R-devel/src/main/memory.c:2351:2 #3 0x9cb87f in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6831:17 #4 0x9b1d0d in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:624:8 #5 0xa256db in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c #6 0x9d6b08 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6739:12 #7 0x9b1d0d in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:624:8 #8 0xa1e47a in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:520:8 #9 0xa65a42 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:4966:15 #10 0xa65e8b in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5008:10 #11 0x9df4eb in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6503:20 #12 0x9b1d0d in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:624:8 #13 0xa1e47a in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:520:8 #14 0xa65a42 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:4966:15 #15 0xa65e8b in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5008:10 #16 0x9df4eb in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6503:20 #17 0x9b1d0d in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:624:8 #18 0xa1e47a in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:520:8 #19 0xa65a42 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:4966:15 #20 0xa65e8b in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5008:10 #21 0x9df4eb in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6503:20 #22 0x9b1d0d in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:624:8 #23 0xa1e47a in forcePromise /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:520:8 #24 0xa65a42 in FORCE_PROMISE /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:4966:15 #25 0xa65e8b in getvar /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:5008:10 #26 0x9df4eb in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6503:20 #27 0x9b1d0d in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:624:8 #28 0xa256db in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c #29 0x9d6b08 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6739:12 SUMMARY: AddressSanitizer: heap-buffer-overflow /data/gannet/ripley/R/packages/tests-clang-SAN/SeqBayesDesign/src/seq_MCMC.cpp:51:17 in VecPnorm(Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, double) Shadow bytes around the buggy address: 0x0c4a804da8b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c4a804da8c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c4a804da8d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c4a804da8e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c4a804da8f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x0c4a804da900: 00 00 00[fa]fa fa fa fa fa fa fa fa fa fa fa fa 0x0c4a804da910: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c4a804da920: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c4a804da930: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c4a804da940: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c4a804da950: 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 ==24131==ABORTING * DONE Status: 1 ERROR