* using log directory ‘/data/gannet/ripley/R/packages/tests-gcc-SAN/ELMSurv.Rcheck’ * using R Under development (unstable) (2019-05-27 r76612) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘ELMSurv/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘ELMSurv’ version ‘0.6’ * 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 ‘ELMSurv’ can be installed ... [388s/188s] 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 ‘ELMSurv-Ex.R’ failed The error most likely occurred in: > ### Name: ELMBJ > ### Title: ELMBJ > ### Aliases: ELMBJ > > ### ** Examples > > set.seed(123) > require(ELMSurv) > require(survival) Loading required package: survival > #Lung DATA > data(lung) > lung=na.omit(lung) > lung[,3]=lung[,3]-1 > n=dim(lung)[1] > L=sample(1:n,ceiling(n*0.5)) > trset<-lung[L,] > teset<-lung[-L,] > rii=c(2,3) > #A kernel ELM base model > kerelmsurv=ELMBJ(trset[,-rii],Surv(trset[,rii[1]],trset[,rii[2]])) ================================================================= ==38147==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7ffc505ecf00 at pc 0x7f89105ef234 bp 0x7ffc505eaa10 sp 0x7ffc505eaa00 READ of size 8 at 0x7ffc505ecf00 thread T0 #0 0x7f89105ef233 in Rcpp::PreserveStorage >::get__() const /data/gannet/ripley/R/test-3.7/Rcpp/include/Rcpp/storage/PreserveStorage.h:26 #1 0x7f89105ef233 in Rcpp::Vector<14, Rcpp::PreserveStorage>::size() const /data/gannet/ripley/R/test-3.7/Rcpp/include/Rcpp/vector/Vector.h:278 #2 0x7f89105ef233 in Rcpp::sugar::Vectorized<&log, true, Rcpp::Vector<14, Rcpp::PreserveStorage> >::size() const /data/gannet/ripley/R/test-3.7/Rcpp/include/Rcpp/sugar/block/Vectorized_Math.h:40 #3 0x7f89105ef233 in void Rcpp::Vector<14, Rcpp::PreserveStorage>::assign_sugar_expression > >(Rcpp::sugar::Vectorized<&log, true, Rcpp::Vector<14, Rcpp::PreserveStorage> > const&) /data/gannet/ripley/R/test-3.7/Rcpp/include/Rcpp/vector/Vector.h:1041 #4 0x7f89105ef233 in void Rcpp::Vector<14, Rcpp::PreserveStorage>::assign_object > >(Rcpp::sugar::Vectorized<&log, true, Rcpp::Vector<14, Rcpp::PreserveStorage> > const&, Rcpp::traits::integral_constant) /data/gannet/ripley/R/test-3.7/Rcpp/include/Rcpp/vector/Vector.h:1055 #5 0x7f89105ef233 in Rcpp::Vector<14, Rcpp::PreserveStorage>& Rcpp::Vector<14, Rcpp::PreserveStorage>::operator= > >(Rcpp::sugar::Vectorized<&log, true, Rcpp::Vector<14, Rcpp::PreserveStorage> > const&) /data/gannet/ripley/R/test-3.7/Rcpp/include/Rcpp/vector/Vector.h:249 #6 0x7f89105ef233 in bjimpute(SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*) /data/gannet/ripley/R/packages/tests-gcc-SAN/ELMSurv/src/bj.cpp:24 #7 0x7f89105c3d36 in _ELMSurv_bjimpute /data/gannet/ripley/R/packages/tests-gcc-SAN/ELMSurv/src/RcppExports.cpp:65 #8 0x6246fc in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7290 #9 0x64655f in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:620 #10 0x64bc65 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1780 #11 0x64e258 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1706 #12 0x62d93b in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6740 #13 0x64655f in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:620 #14 0x64bc65 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1780 #15 0x64e258 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1706 #16 0x646a63 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:743 #17 0x652fb1 in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2808 #18 0x6470e9 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:695 #19 0x6be60e in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:260 #20 0x6be60e in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:200 #21 0x6becc0 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:310 #22 0x6bedf4 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1086 #23 0x4180f8 in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29 #24 0x7f892109d11a in __libc_start_main (/lib64/libc.so.6+0x2311a) #25 0x41a829 in _start (/data/gannet/ripley/R/gcc-SAN/bin/exec/R+0x41a829) Address 0x7ffc505ecf00 is located in stack of thread T0 at offset 9120 in frame #0 0x7f89105e141f in bjimpute(SEXPREC*, SEXPREC*, SEXPREC*, SEXPREC*) /data/gannet/ripley/R/packages/tests-gcc-SAN/ELMSurv/src/bj.cpp:9 This frame has 171 object(s): [32, 33) '' [96, 97) '' [160, 161) '' [224, 225) '' [288, 289) '' [352, 353) '' [416, 417) '' [480, 481) '' [544, 545) '' [608, 609) '' [672, 673) '' [736, 737) '' [800, 801) '' [864, 865) '' [928, 929) '' [992, 993) '' [1056, 1057) '' [1120, 1121) '' [1184, 1185) '' [1248, 1249) '' [1312, 1313) '' [1376, 1377) '' [1440, 1441) '' [1504, 1505) '' [1568, 1569) '' [1632, 1633) '' [1696, 1697) '' [1760, 1761) '' [1824, 1825) '' [1888, 1889) '' [1952, 1953) '' [2016, 2017) '' [2080, 2081) '' [2144, 2145) '' [2208, 2209) '' [2272, 2273) '' [2336, 2337) '' [2400, 2401) '' [2464, 2465) '' [2528, 2529) '' [2592, 2593) '' [2656, 2657) '' [2720, 2721) '' [2784, 2785) '' [2848, 2849) '' [2912, 2913) '' [2976, 2977) '' [3040, 3041) '' [3104, 3105) '' [3168, 3169) '' [3232, 3233) '' [3296, 3297) '' [3360, 3361) '' [3424, 3425) '' [3488, 3489) '' [3552, 3553) '' [3616, 3617) '' [3680, 3681) '' [3744, 3745) '' [3808, 3809) '' [3872, 3873) '' [3936, 3937) '' [4000, 4001) '' [4064, 4065) '' [4128, 4129) '' [4192, 4193) '' [4256, 4260) 'maxit' [4320, 4324) 'n' [4384, 4388) 'p' [4448, 4452) '' [4512, 4516) '' [4576, 4580) '' [4640, 4644) '' [4704, 4708) '' [4768, 4772) 'i' [4832, 4836) 'i' [4896, 4900) 'i' [4960, 4968) '' [5024, 5032) '' [5088, 5096) '' [5152, 5160) '' [5216, 5224) '' [5280, 5288) 'exporter' [5344, 5352) 'exporter' [5408, 5416) '' [5472, 5480) '' [5536, 5544) '' [5600, 5608) 'safe' [5664, 5672) '' [5728, 5736) 'wrapped' [5792, 5800) 'casted' [5856, 5864) 'wrapped' [5920, 5928) 'casted' [5984, 5992) '' [6048, 6056) '' [6112, 6120) '__init' [6176, 6184) '__last' [6240, 6248) '__first' [6304, 6312) '' [6368, 6376) '' [6432, 6440) '' [6496, 6504) '' [6560, 6568) '' [6624, 6632) '' [6688, 6696) '' [6752, 6760) '' [6816, 6824) '' [6880, 6888) 'first' [6944, 6952) 'x' [7008, 7016) '__last' [7072, 7080) '__first' [7136, 7144) '' [7200, 7208) 'wrapped' [7264, 7272) 'casted' [7328, 7336) 'dims' [7392, 7400) '' [7456, 7464) 'wrapped' [7520, 7528) 'casted' [7584, 7592) 'y' [7648, 7656) 'cen' [7712, 7720) 'inibeta' [7776, 7792) '' [7840, 7856) 'cennew' [7904, 7920) 'ynew' [7968, 7984) 'beta' [8032, 8048) '' [8096, 8112) 'ystar' [8160, 8176) 'eps' [8224, 8240) 'epstar' [8288, 8304) 'tmp' [8352, 8368) '' [8416, 8432) 'epstemp' [8480, 8496) '' [8544, 8560) '' [8608, 8624) '' [8672, 8688) '' [8736, 8752) 'betatemp' [8800, 8816) '' [8864, 8880) '' [8928, 8944) '' [8992, 9008) '' [9056, 9072) '' [9120, 9136) '' <== Memory access at offset 9120 is inside this variable [9184, 9200) '' [9248, 9264) '' [9312, 9328) '' [9376, 9392) '' [9440, 9456) '' [9504, 9520) 'P' [9568, 9584) '' [9632, 9656) 'xNM' [9696, 9720) 'betamat' [9760, 9784) '' [9824, 9848) 'newx' [9888, 9912) '' [9952, 9976) '' [10016, 10040) '' [10080, 10104) '' [10144, 10168) '' [10208, 10232) '' [10272, 10296) 'exporter' [10336, 10368) '' [10400, 10432) '' [10464, 10504) '' [10560, 10600) '' [10656, 10816) 'tmp' [10848, 11008) '' [11040, 11200) 'coef' [11232, 11392) '' [11424, 11584) '' [11616, 11992) 'oss' HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext (longjmp and C++ exceptions *are* supported) SUMMARY: AddressSanitizer: stack-use-after-scope /data/gannet/ripley/R/test-3.7/Rcpp/include/Rcpp/storage/PreserveStorage.h:26 in Rcpp::PreserveStorage >::get__() const Shadow bytes around the buggy address: 0x10000a0b5990: 00 00 f2 f2 f2 f2 f2 f2 00 00 f2 f2 f2 f2 f2 f2 0x10000a0b59a0: 00 00 f2 f2 f2 f2 f2 f2 00 00 f2 f2 f2 f2 f2 f2 0x10000a0b59b0: 00 00 f2 f2 f2 f2 f2 f2 00 00 f2 f2 f2 f2 f2 f2 0x10000a0b59c0: 00 00 f2 f2 f2 f2 f2 f2 00 00 f2 f2 f2 f2 f2 f2 0x10000a0b59d0: 00 00 f2 f2 f2 f2 f2 f2 00 00 f2 f2 f2 f2 f2 f2 =>0x10000a0b59e0:[f8]f8 f2 f2 f2 f2 f2 f2 00 00 f2 f2 f2 f2 f2 f2 0x10000a0b59f0: 00 00 f2 f2 f2 f2 f2 f2 00 00 f2 f2 f2 f2 f2 f2 0x10000a0b5a00: 00 00 f2 f2 f2 f2 f2 f2 00 00 f2 f2 f2 f2 f2 f2 0x10000a0b5a10: 00 00 f2 f2 f2 f2 f2 f2 00 00 f2 f2 f2 f2 f2 f2 0x10000a0b5a20: 00 00 00 f2 f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 f2 0x10000a0b5a30: 00 00 00 f2 f2 f2 f2 f2 00 00 00 f2 f2 f2 f2 f2 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 ==38147==ABORTING * DONE Status: 1 ERROR