* using log directory ‘/data/gannet/ripley/R/packages/tests-gcc-SAN/RcppMovStat.Rcheck’ * using R Under development (unstable) (2018-02-09 r74240) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘RcppMovStat/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘RcppMovStat’ version ‘1.0.2’ * 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 ‘RcppMovStat’ can be installed ... [199s/172s] 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 ‘RcppMovStat-Ex.R’ failed The error most likely occurred in: > ### Name: movQt > ### Title: Moving Quantile(Moving Median, Moving Minimum, Moving Maximum) > ### Aliases: movQt movQtr > > ### ** Examples > > movQt(vec = c(1, 4, 3, NA, 8, 4, 5, 9, 6, 0), n = 3, ss = 4, na_rm = TRUE, align = "right") [1] NA NA 3 NA NA NA 5 NA NA NA > movQt(vec = c(1, 4, 3, NA, 8, 4, 5, 9, 6, 0), n = 3, na_rm = TRUE, align = "right") [1] NA NA 3.0 3.5 5.5 6.0 5.0 5.0 6.0 6.0 > movQt(vec = c(1, 4, 3, NA, NA, NA, 5, 9, 6, 0), n = 3, ss = 4, na_rm = TRUE, align = "middle") ================================================================= ==1700==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000022618 at pc 0x7f1801e0967b bp 0x7ffe55998f00 sp 0x7ffe55998ef0 READ of size 8 at 0x602000022618 thread T0 #0 0x7f1801e0967a in movQt(Rcpp::Vector<14, Rcpp::PreserveStorage>, int, double, int, bool, bool, std::__cxx11::basic_string, std::allocator >) /data/gannet/ripley/R/packages/tests-gcc-SAN/RcppMovStat/src/movQt.cpp:89 #1 0x7f1801d6ac27 in _RcppMovStat_movQt /data/gannet/ripley/R/packages/tests-gcc-SAN/RcppMovStat/src/RcppExports.cpp:166 #2 0x56f802 in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:596 #3 0x6236ef in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7273 #4 0x644987 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:624 #5 0x649a75 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1764 #6 0x644e76 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:747 #7 0x6b86ce in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:258 #8 0x6b90b0 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:308 #9 0x6ba7c4 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1082 #10 0x4210d8 in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29 #11 0x7f180f5c9889 in __libc_start_main (/lib64/libc.so.6+0x20889) #12 0x4237f9 in _start (/data/gannet/ripley/R/gcc-SAN/bin/exec/R+0x4237f9) 0x602000022618 is located 0 bytes to the right of 8-byte region [0x602000022610,0x602000022618) allocated by thread T0 here: #0 0x7f1812ea8158 in operator new(unsigned long) (/lib64/libasan.so.4+0xe0158) #1 0x7f1801e0618d in __gnu_cxx::new_allocator::allocate(unsigned long, void const*) /usr/include/c++/7/ext/new_allocator.h:111 #2 0x7f1801e0618d in __gnu_cxx::__alloc_traits >::allocate(std::allocator&, unsigned long) /usr/include/c++/7/ext/alloc_traits.h:130 #3 0x7f1801e0618d in std::_Vector_base >::_M_allocate(unsigned long) /usr/include/c++/7/bits/stl_vector.h:172 #4 0x7f1801e0618d in void std::vector >::_M_range_initialize(double*, double*, std::forward_iterator_tag) /usr/include/c++/7/bits/stl_vector.h:1323 #5 0x7f1801e0618d in void std::vector >::_M_initialize_dispatch(double*, double*, std::__false_type) /usr/include/c++/7/bits/stl_vector.h:1299 #6 0x7f1801e0618d in std::vector >::vector(double*, double*, std::allocator const&) /usr/include/c++/7/bits/stl_vector.h:423 #7 0x7f1801e0618d in movQt(Rcpp::Vector<14, Rcpp::PreserveStorage>, int, double, int, bool, bool, std::__cxx11::basic_string, std::allocator >) /data/gannet/ripley/R/packages/tests-gcc-SAN/RcppMovStat/src/movQt.cpp:87 #8 0x7f1801d6ac27 in _RcppMovStat_movQt /data/gannet/ripley/R/packages/tests-gcc-SAN/RcppMovStat/src/RcppExports.cpp:166 #9 0x56f802 in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:596 #10 0x41b58ab2 () SUMMARY: AddressSanitizer: heap-buffer-overflow /data/gannet/ripley/R/packages/tests-gcc-SAN/RcppMovStat/src/movQt.cpp:89 in movQt(Rcpp::Vector<14, Rcpp::PreserveStorage>, int, double, int, bool, bool, std::__cxx11::basic_string, std::allocator >) Shadow bytes around the buggy address: 0x0c047fffc470: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa 0x0c047fffc480: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa 0x0c047fffc490: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa 0x0c047fffc4a0: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fa 0x0c047fffc4b0: fa fa fd fa fa fa fd fd fa fa fd fd fa fa fd fd =>0x0c047fffc4c0: fa fa 00[fa]fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fffc4d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fffc4e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fffc4f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fffc500: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c047fffc510: 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 ==1700==ABORTING * DONE Status: 1 ERROR