* using log directory ‘/data/gannet/ripley/R/packages/tests-gcc-SAN/rflann.Rcheck’ * using R Under development (unstable) (2018-06-02 r74838) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘rflann/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘rflann’ version ‘1.3’ * 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 ‘rflann’ can be installed ... [233s/128s] 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 ‘rflann-Ex.R’ failed The error most likely occurred in: > ### Name: Neighbour > ### Title: K nearest neighbours > ### Aliases: Neighbour > > ### ** Examples > > ## Find the nearest neighbour using a KD Tree > query <- matrix(rnorm(10), ncol = 2) > reference <- matrix(rnorm(10), ncol = 2) > Neighbour(query, reference, 3, "kdtree", 0, 1) ================================================================= ==9282==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7ffc09800a10 at pc 0x7f43e8425ae1 bp 0x7ffc09800870 sp 0x7ffc09800860 READ of size 4 at 0x7ffc09800a10 thread T0 #0 0x7f43e8425ae0 in flann::flann_algorithm_t flann::get_param(std::map, std::allocator >, flann::any, std::less, std::allocator > >, std::allocator, std::allocator > const, flann::any> > > const&, std::__cxx11::basic_string, std::allocator >) flann/util/params.h:111 #1 0x7f43e8463345 in flann::Index >::Index(flann::Matrix const&, std::map, std::allocator >, flann::any, std::less, std::allocator > >, std::allocator, std::allocator > const, flann::any> > > const&, flann::L2) flann/flann.hpp:104 #2 0x7f43e83e490b in Neighbour(Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Matrix<14, Rcpp::PreserveStorage>, int, std::__cxx11::basic_string, std::allocator >, int, int) /data/gannet/ripley/R/packages/tests-gcc-SAN/rflann/src/neighbour.cpp:41 #3 0x7f43e83eb016 in rflann_Neighbour /data/gannet/ripley/R/packages/tests-gcc-SAN/rflann/src/neighbour.cpp:79 #4 0x5797a0 in do_dotcall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:1252 #5 0x6198d4 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:6776 #6 0x645717 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:624 #7 0x64a845 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1768 #8 0x645c06 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:747 #9 0x6b98ae in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:258 #10 0x6ba290 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:308 #11 0x6bb9a4 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1082 #12 0x421198 in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29 #13 0x7f43f61b8889 in __libc_start_main (/lib64/libc.so.6+0x20889) #14 0x423899 in _start (/data/gannet/ripley/R/gcc-SAN/bin/exec/R+0x423899) Address 0x7ffc09800a10 is located in stack of thread T0 at offset 352 in frame #0 0x7f43e842550f in flann::flann_algorithm_t flann::get_param(std::map, std::allocator >, flann::any, std::less, std::allocator > >, std::allocator, std::allocator > const, flann::any> > > const&, std::__cxx11::basic_string, std::allocator >) flann/util/params.h:107 This frame has 10 object(s): [32, 33) '' [96, 97) '' [160, 168) 'it' [224, 232) '' [288, 296) '' [352, 360) 'obj' <== Memory access at offset 352 is inside this variable [416, 448) '' [480, 512) '' [544, 576) '' [608, 640) '' 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 flann/util/params.h:111 in flann::flann_algorithm_t flann::get_param(std::map, std::allocator >, flann::any, std::less, std::allocator > >, std::allocator, std::allocator > const, flann::any> > > const&, std::__cxx11::basic_string, std::allocator >) Shadow bytes around the buggy address: 0x1000012f80f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000012f8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000012f8110: 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 f2 f2 f2 f2 0x1000012f8120: f2 f2 01 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 f2 0x1000012f8130: f2 f2 f8 f2 f2 f2 f2 f2 f2 f2 f8 f2 f2 f2 f2 f2 =>0x1000012f8140: f2 f2[f8]f2 f2 f2 f2 f2 f2 f2 00 00 00 00 f2 f2 0x1000012f8150: f2 f2 00 00 00 00 f2 f2 f2 f2 00 00 00 00 f2 f2 0x1000012f8160: f2 f2 00 00 00 00 f3 f3 f3 f3 00 00 00 00 00 00 0x1000012f8170: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 0x1000012f8180: f2 f2 f2 f2 f2 f2 01 f2 f2 f2 f2 f2 f2 f2 01 f2 0x1000012f8190: f2 f2 f2 f2 f2 f2 00 00 00 00 f2 f2 f2 f2 00 00 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 ==9282==ABORTING * DONE Status: 1 ERROR