* using log directory ‘/data/gannet/ripley/R/packages/tests-gcc-SAN/SeqBayesDesign.Rcheck’ * using R Under development (unstable) (2018-03-13 r74394) * 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 ... [87s/88s] 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 ================================================================= ==17568==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x625002717018 at pc 0x7ff0f0498986 bp 0x7fff1b833880 sp 0x7fff1b833870 READ of size 8 at 0x625002717018 thread T0 #0 0x7ff0f0498985 in VecPnorm(Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, double) /data/gannet/ripley/R/packages/tests-gcc-SAN/SeqBayesDesign/src/seq_MCMC.cpp:51 #1 0x7ff0f04b1523 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-gcc-SAN/SeqBayesDesign/src/seq_MCMC.cpp:238 #2 0x7ff0f0468d91 in _SeqBayesDesign_TMCMC /data/gannet/ripley/R/packages/tests-gcc-SAN/SeqBayesDesign/src/RcppExports.cpp:23 #3 0x56ee3c in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:606 #4 0x62340c in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7278 #5 0x644377 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:624 #6 0x649465 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1764 #7 0x625ca2 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6739 #8 0x644377 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:624 #9 0x649465 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1764 #10 0x625ca2 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6739 #11 0x644377 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:624 #12 0x649465 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1764 #13 0x644866 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:747 #14 0x6b80ce in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:258 #15 0x6b8ab0 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:308 #16 0x6ba1c4 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1082 #17 0x4210d8 in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29 #18 0x7ff0fed6b889 in __libc_start_main (/lib64/libc.so.6+0x20889) #19 0x4237f9 in _start (/data/gannet/ripley/R/gcc-SAN/bin/exec/R+0x4237f9) 0x625002717018 is located 0 bytes to the right of 7960-byte region [0x625002715100,0x625002717018) allocated by thread T0 here: #0 0x7ff102648850 in malloc (/lib64/libasan.so.4+0xde850) #1 0x6d6e5b in GetNewPage /data/gannet/ripley/R/svn/R-devel/src/main/memory.c:888 SUMMARY: AddressSanitizer: heap-buffer-overflow /data/gannet/ripley/R/packages/tests-gcc-SAN/SeqBayesDesign/src/seq_MCMC.cpp:51 in VecPnorm(Rcpp::Vector<14, Rcpp::PreserveStorage>, Rcpp::Vector<14, Rcpp::PreserveStorage>, double) Shadow bytes around the buggy address: 0x0c4a804dadb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c4a804dadc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c4a804dadd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c4a804dade0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c4a804dadf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x0c4a804dae00: 00 00 00[fa]fa fa fa fa fa fa fa fa fa fa fa fa 0x0c4a804dae10: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c4a804dae20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c4a804dae30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c4a804dae40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c4a804dae50: 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 ==17568==ABORTING * DONE Status: 1 ERROR