--- re-building ‘clustur.Rmd’ using rmarkdown ================================================================= ==274404==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7d16878bb660 at pc 0x7bf66c7949ee bp 0x7fffb8cbf5f0 sp 0x7fffb8cbf5e8 READ of size 8 at 0x7d16878bb660 thread T0 #0 0x7bf66c7949ed in std::__cxx11::basic_string, std::allocator >::size() const /usr/include/c++/16/bits/basic_string.h:1189 #1 0x7bf66c7949ed in bool std::operator==, std::allocator >(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&) /usr/include/c++/16/bits/basic_string.h:4104 #2 0x7bf66c7949ed in SensSpecCalc::SensSpecCalc(OptiData const&, ListVector const*) /data/localhost/ripley/R/packages/tests-gcc-SAN/clustur/src/SensSpecCalc.cpp:36 #3 0x7bf66c4bcff1 in ClusterSplit::cluster(SplitClusterData*) const /data/localhost/ripley/R/packages/tests-gcc-SAN/clustur/src/ClusterSplit.cpp:206 #4 0x7bf66c4c41f5 in ClusterSplit::createProcesses(std::vector >&, std::set, std::allocator >, std::less, std::allocator > >, std::allocator, std::allocator > > >&, unsigned long) /data/localhost/ripley/R/packages/tests-gcc-SAN/clustur/src/ClusterSplit.cpp:160 #5 0x7bf66c4d2bea in ClusterSplit::Execute() /data/localhost/ripley/R/packages/tests-gcc-SAN/clustur/src/ClusterSplit.cpp:41 #6 0x7bf66c8197d9 in OptiSplit(Rcpp::DataFrame_Impl const&, Rcpp::DataFrame_Impl const&, Rcpp::DataFrame_Impl const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, double, int, int, int, std::__cxx11::basic_string, std::allocator > const&, double, int, int, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&) /data/localhost/ripley/R/packages/tests-gcc-SAN/clustur/src/executeClusterMethods.cpp:322 #7 0x7bf66c78b100 in _clustur_OptiSplit /data/localhost/ripley/R/packages/tests-gcc-SAN/clustur/src/RcppExports.cpp:183 #8 0x00000075ed6f in R_doDotCall /data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:842 #9 0x0000007646ca in do_dotcall /data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:1454 #10 0x0000008f1a8b in bcEval_loop /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8155 #11 0x0000008dc95b in bcEval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7537 #12 0x00000087a80a in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167 #13 0x000000893c8a in R_execClosure /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2400 #14 0x00000089798d in applyClosure_core /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2316 #15 0x00000087aeb8 in Rf_applyClosure /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2335 #16 0x00000087aeb8 in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1278 #17 0x0000008b02be in do_set /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:3587 #18 0x00000087b2e6 in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1230 #19 0x0000008b8239 in do_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:3977 #20 0x0000008f1a8b in bcEval_loop /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8155 #21 0x0000008dc95b in bcEval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7537 #22 0x00000087a80a in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167 #23 0x000000948a0a in forcePromise.part.0.lto_priv.0 /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:976 #24 0x00000087be7c in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1185 #25 0x0000008bb183 in do_withVisible /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:4020 #26 0x000000ac0341 in do_internal /data/localhost/ripley/R/svn/R-devel/src/main/names.c:1425 #27 0x0000008fb7fc in bcEval_loop /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8175 #28 0x0000008dc95b in bcEval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7537 #29 0x00000087a80a in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167 #30 0x000000948a0a in forcePromise.part.0.lto_priv.0 /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:976 #31 0x00000087be7c in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1185 #32 0x000000948a0a in forcePromise.part.0.lto_priv.0 /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:976 #33 0x0000008c4baf in forcePromise /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:956 #34 0x0000008c4baf in getvar /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:5869 #35 0x0000008fee84 in bcEval_loop /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7885 #36 0x0000008dc95b in bcEval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7537 #37 0x00000087a80a in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167 #38 0x000000893c8a in R_execClosure /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2400 #39 0x00000089798d in applyClosure_core /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2316 #40 0x00000087aeb8 in Rf_applyClosure /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2335 #41 0x00000087aeb8 in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1278 #42 0x0000008b8239 in do_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:3977 #43 0x0000008f1a8b in bcEval_loop /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8155 #44 0x0000008dc95b in bcEval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7537 #45 0x00000087a80a in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167 #46 0x000000893c8a in R_execClosure /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2400 #47 0x00000089798d in applyClosure_core /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2316 #48 0x00000087aeb8 in Rf_applyClosure /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2335 #49 0x00000087aeb8 in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1278 #50 0x000000893c8a in R_execClosure /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2400 #51 0x00000089798d in applyClosure_core /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2316 #52 0x00000089916b in Rf_applyClosure /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2335 #53 0x0000009039f7 in bcEval_loop /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8126 #54 0x0000008dc95b in bcEval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7537 #55 0x00000087a80a in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167 #56 0x000000893c8a in R_execClosure /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2400 #57 0x00000089798d in applyClosure_core /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2316 #58 0x00000087aeb8 in Rf_applyClosure /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2335 #59 0x00000087aeb8 in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1278 #60 0x000000a26338 in Rf_ReplIteration /data/localhost/ripley/R/svn/R-devel/src/main/main.c:264 #61 0x000000a26338 in R_ReplConsole /data/localhost/ripley/R/svn/R-devel/src/main/main.c:319 #62 0x000000a440ba in run_Rmainloop /data/localhost/ripley/R/svn/R-devel/src/main/main.c:1239 #63 0x000000a44152 in Rf_mainloop /data/localhost/ripley/R/svn/R-devel/src/main/main.c:1246 #64 0x0000004123ff in main /data/localhost/ripley/R/svn/R-devel/src/main/Rmain.c:29 #65 0x7ff68aa0a680 in __libc_start_call_main (/lib64/libc.so.6+0x3680) (BuildId: 85075e2ae2e13352a1413d41c327dacf6461526c) #66 0x7ff68aa0a797 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x3797) (BuildId: 85075e2ae2e13352a1413d41c327dacf6461526c) #67 0x000000412dc4 in _start (/data/localhost/ripley/R/gcc-SAN3/bin/exec/R+0x412dc4) (BuildId: b47a5227303ea569435ccb04c1118ed7dd9a15f1) 0x7d16878bb660 is located 8 bytes after 280-byte region [0x7d16878bb540,0x7d16878bb658) allocated by thread T0 here: #0 0x7ff68c2f04ff in operator new(unsigned long) (/lib64/libasan.so.8+0xf04ff) (BuildId: fd074f20195c3dc106c8f366d4cbad1efb955954) #1 0x7bf66c4a5528 in std::__new_allocator, std::allocator >, long long> >::allocate(unsigned long, void const*) /usr/include/c++/16/bits/new_allocator.h:162 #2 0x7bf66c4a5528 in std::allocator, std::allocator >, long long> >::allocate(unsigned long) /usr/include/c++/16/bits/allocator.h:206 #3 0x7bf66c4a5528 in std::allocator_traits, std::allocator >, long long> > >::allocate(std::allocator, std::allocator >, long long> >&, unsigned long) /usr/include/c++/16/bits/alloc_traits.h:638 #4 0x7bf66c4a5528 in std::_Vector_base, std::allocator >, long long>, std::allocator, std::allocator >, long long> > >::_M_allocate(unsigned long) /usr/include/c++/16/bits/stl_vector.h:389 #5 0x7bf66c4a5528 in std::_Vector_base, std::allocator >, long long>, std::allocator, std::allocator >, long long> > >::_M_allocate(unsigned long) /usr/include/c++/16/bits/stl_vector.h:386 #6 0x7bf66c4a5528 in std::_Vector_base, std::allocator >, long long>, std::allocator, std::allocator >, long long> > >::_M_create_storage(unsigned long) /usr/include/c++/16/bits/stl_vector.h:407 #7 0x7bf66c4a5528 in std::_Vector_base, std::allocator >, long long>, std::allocator, std::allocator >, long long> > >::_Vector_base(unsigned long, std::allocator, std::allocator >, long long> > const&) /usr/include/c++/16/bits/stl_vector.h:341 #8 0x7bf66c4a5528 in std::vector, std::allocator >, long long>, std::allocator, std::allocator >, long long> > >::vector(unsigned long, std::allocator, std::allocator >, long long> > const&) /usr/include/c++/16/bits/stl_vector.h:577 #9 0x7bf66c4a5528 in OptiData::getNameIndexMap[abi:cxx11]() const Clusters/../DataStructures/OptiData.h:109 #10 0x7bf66c791ca1 in SensSpecCalc::SensSpecCalc(OptiData const&, ListVector const*) /data/localhost/ripley/R/packages/tests-gcc-SAN/clustur/src/SensSpecCalc.cpp:20 #11 0x7bf66c4bcff1 in ClusterSplit::cluster(SplitClusterData*) const /data/localhost/ripley/R/packages/tests-gcc-SAN/clustur/src/ClusterSplit.cpp:206 #12 0x7bf66c4c41f5 in ClusterSplit::createProcesses(std::vector >&, std::set, std::allocator >, std::less, std::allocator > >, std::allocator, std::allocator > > >&, unsigned long) /data/localhost/ripley/R/packages/tests-gcc-SAN/clustur/src/ClusterSplit.cpp:160 #13 0x7bf66c4d2bea in ClusterSplit::Execute() /data/localhost/ripley/R/packages/tests-gcc-SAN/clustur/src/ClusterSplit.cpp:41 #14 0x7bf66c8197d9 in OptiSplit(Rcpp::DataFrame_Impl const&, Rcpp::DataFrame_Impl const&, Rcpp::DataFrame_Impl const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, double, int, int, int, std::__cxx11::basic_string, std::allocator > const&, double, int, int, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&) /data/localhost/ripley/R/packages/tests-gcc-SAN/clustur/src/executeClusterMethods.cpp:322 #15 0x7bf66c78b100 in _clustur_OptiSplit /data/localhost/ripley/R/packages/tests-gcc-SAN/clustur/src/RcppExports.cpp:183 #16 0x00000075ed6f in R_doDotCall /data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:842 #17 0x0000007646ca in do_dotcall /data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:1454 #18 0x0000008f1a8b in bcEval_loop /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8155 #19 0x0000008dc95b in bcEval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7537 #20 0x00000087a80a in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167 #21 0x000000893c8a in R_execClosure /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2400 #22 0x00000089798d in applyClosure_core /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2316 #23 0x00000087aeb8 in Rf_applyClosure /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2335 #24 0x00000087aeb8 in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1278 #25 0x0000008b02be in do_set /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:3587 #26 0x00000087b2e6 in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1230 #27 0x0000008b8239 in do_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:3977 #28 0x0000008f1a8b in bcEval_loop /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8155 #29 0x0000008dc95b in bcEval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7537 #30 0x00000087a80a in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167 #31 0x000000948a0a in forcePromise.part.0.lto_priv.0 /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:976 #32 0x00000087be7c in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1185 #33 0x0000008bb183 in do_withVisible /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:4020 #34 0x000000ac0341 in do_internal /data/localhost/ripley/R/svn/R-devel/src/main/names.c:1425 #35 0x0000008fb7fc in bcEval_loop /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8175 #36 0x0000008dc95b in bcEval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7537 #37 0x00000087a80a in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167 #38 0x000000948a0a in forcePromise.part.0.lto_priv.0 /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:976 SUMMARY: AddressSanitizer: heap-buffer-overflow /data/localhost/ripley/R/packages/tests-gcc-SAN/clustur/src/SensSpecCalc.cpp:36 in SensSpecCalc::SensSpecCalc(OptiData const&, ListVector const*) Shadow bytes around the buggy address: 0x7d16878bb380: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7d16878bb400: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7d16878bb480: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7d16878bb500: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00 0x7d16878bb580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x7d16878bb600: 00 00 00 00 00 00 00 00 00 00 00 fa[fa]fa fa fa 0x7d16878bb680: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x7d16878bb700: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x7d16878bb780: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa 0x7d16878bb800: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x7d16878bb880: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 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 ==274404==ABORTING