Package check result: OK Post-processing issues found: File: terra-Ex.Rout ==3654339== Memcheck, a memory error detector ==3654339== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al. ==3654339== Using Valgrind-3.25.1 and LibVEX; rerun with -h for copyright info ==3654339== Command: /home/hornik/tmp/R-d-gcc-valg/bin/exec/R --vanilla --encoding=UTF-8 ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2083C6D7: SpatVector::is_related(SpatVector, std::__cxx11::basic_string, std::allocator >) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2355) ==3654339== by 0x20731AB0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20731AB0: SEXPREC* Rcpp::internal::call_impl >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >)#1}, std::vector >, SpatVector, std::__cxx11::basic_string, std::allocator >, 0, 1, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, std::__cxx11::basic_string, std::allocator > >, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20731C8D: call, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::)>, std::vector, SpatVector, std::__cxx11::basic_string, std::allocator > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20731C8D: Rcpp::CppMethodImplN >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x2e785ca0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2083C6CD: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2083C6CD: SpatVector::is_related(SpatVector, std::__cxx11::basic_string, std::allocator >) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2353) ==3654339== by 0x20731AB0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20731AB0: SEXPREC* Rcpp::internal::call_impl >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >)#1}, std::vector >, SpatVector, std::__cxx11::basic_string, std::allocator >, 0, 1, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, std::__cxx11::basic_string, std::allocator > >, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20731C8D: call, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::)>, std::vector, SpatVector, std::__cxx11::basic_string, std::allocator > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20731C8D: Rcpp::CppMethodImplN >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2083C43D: SpatVector::is_related(SpatVector, std::__cxx11::basic_string, std::allocator >) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2282) ==3654339== by 0x20731AB0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20731AB0: SEXPREC* Rcpp::internal::call_impl >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >)#1}, std::vector >, SpatVector, std::__cxx11::basic_string, std::allocator >, 0, 1, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, std::__cxx11::basic_string, std::allocator > >, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20731C8D: call, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::)>, std::vector, SpatVector, std::__cxx11::basic_string, std::allocator > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20731C8D: Rcpp::CppMethodImplN >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2083C6E1: SpatVector::is_related(SpatVector, std::__cxx11::basic_string, std::allocator >) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2355) ==3654339== by 0x20731AB0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20731AB0: SEXPREC* Rcpp::internal::call_impl >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >)#1}, std::vector >, SpatVector, std::__cxx11::basic_string, std::allocator >, 0, 1, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, std::__cxx11::basic_string, std::allocator > >, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20731C8D: call, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::)>, std::vector, SpatVector, std::__cxx11::basic_string, std::allocator > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20731C8D: Rcpp::CppMethodImplN >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x2e785ca0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2083C6CD: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2083C6CD: SpatVector::is_related(SpatVector, std::__cxx11::basic_string, std::allocator >) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2353) ==3654339== by 0x20731AB0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20731AB0: SEXPREC* Rcpp::internal::call_impl >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >)#1}, std::vector >, SpatVector, std::__cxx11::basic_string, std::allocator >, 0, 1, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, std::__cxx11::basic_string, std::allocator > >, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20731C8D: call, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::)>, std::vector, SpatVector, std::__cxx11::basic_string, std::allocator > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20731C8D: Rcpp::CppMethodImplN >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2083C43D: SpatVector::is_related(SpatVector, std::__cxx11::basic_string, std::allocator >) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2282) ==3654339== by 0x20731AB0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20731AB0: SEXPREC* Rcpp::internal::call_impl >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >)#1}, std::vector >, SpatVector, std::__cxx11::basic_string, std::allocator >, 0, 1, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, std::__cxx11::basic_string, std::allocator > >, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20731C8D: call, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**)::)>, std::vector, SpatVector, std::__cxx11::basic_string, std::allocator > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20731C8D: Rcpp::CppMethodImplN >, SpatVector, std::__cxx11::basic_string, std::allocator > >::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20837AE1: SpatVector::relate(std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2033) ==3654339== by 0x2073213F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2073213F: call_impl, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector, std::__cxx11::basic_string, std::allocator >, bool, 0, 1> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073213F: call, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073213F: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Address 0x2cd1fa30 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20837AD7: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20837AD7: SpatVector::relate(std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2031) ==3654339== by 0x2073213F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2073213F: call_impl, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector, std::__cxx11::basic_string, std::allocator >, bool, 0, 1> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073213F: call, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073213F: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== by 0x49B40B9: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==3654339== by 0x49B40B9: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20837874: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20837874: SpatVector::relate(std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1990) ==3654339== by 0x2073213F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2073213F: call_impl, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector, std::__cxx11::basic_string, std::allocator >, bool, 0, 1> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073213F: call, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073213F: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208431D4: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208431D4: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208431D4: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208431D4: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208431D4: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208431D4: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x208431D4: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3373) ==3654339== by 0x209B50E2: SpatVector::aggregate(std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:153) ==3654339== by 0x2074498C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074498C: SEXPREC* Rcpp::internal::call_impl, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, bool>, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20744A7D: call, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20744A7D: Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x2d439280 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20843139: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20843139: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3369) ==3654339== by 0x209B50E2: SpatVector::aggregate(std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:153) ==3654339== by 0x2074498C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074498C: SEXPREC* Rcpp::internal::call_impl, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, bool>, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20744A7D: call, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20744A7D: Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20842D87: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20842D87: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3356) ==3654339== by 0x209B50E2: SpatVector::aggregate(std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:153) ==3654339== by 0x2074498C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074498C: SEXPREC* Rcpp::internal::call_impl, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, bool>, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20744A7D: call, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20744A7D: Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20843256: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x20843256: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x20843256: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x20843256: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x20843256: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x20843256: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20843256: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3373) ==3654339== by 0x209B50E2: SpatVector::aggregate(std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:153) ==3654339== by 0x2074498C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074498C: SEXPREC* Rcpp::internal::call_impl, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, bool>, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20744A7D: call, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20744A7D: Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x2d439280 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20843139: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20843139: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3369) ==3654339== by 0x209B50E2: SpatVector::aggregate(std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:153) ==3654339== by 0x2074498C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074498C: SEXPREC* Rcpp::internal::call_impl, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, bool>, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20744A7D: call, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20744A7D: Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20842D87: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20842D87: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3356) ==3654339== by 0x209B50E2: SpatVector::aggregate(std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:153) ==3654339== by 0x2074498C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074498C: SEXPREC* Rcpp::internal::call_impl, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, bool>, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20744A7D: call, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20744A7D: Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2083F8F5: SpatVector::centroid(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3311) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x174feaa0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2083F8B0: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2083F8B0: SpatVector::centroid(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3306) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x2083F5A2: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2083F5A2: SpatVector::centroid(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3293) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2083F8FF: SpatVector::centroid(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3311) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x174feaa0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2083F8B0: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2083F8B0: SpatVector::centroid(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3306) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x2083F5A2: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2083F5A2: SpatVector::centroid(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3293) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2083964D: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1848) ==3654339== by 0x2084B722: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1379) ==3654339== by 0x2091C8E5: SpatVector::sample(unsigned long, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:942) ==3654339== by 0x2091DD84: SpatVector::sample_geom(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:981) ==3654339== by 0x20765CEE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765CEE: SEXPREC* Rcpp::internal::call_impl >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1}, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::__cxx11::basic_string, std::allocator >, unsigned int>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765E5D: call >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, unsigned int)>, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765E5D: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== Address 0x18fdf010 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20839643: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20839643: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1846) ==3654339== by 0x2084B722: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1379) ==3654339== by 0x2091C8E5: SpatVector::sample(unsigned long, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:942) ==3654339== by 0x2091DD84: SpatVector::sample_geom(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:981) ==3654339== by 0x20765CEE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765CEE: SEXPREC* Rcpp::internal::call_impl >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1}, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::__cxx11::basic_string, std::allocator >, unsigned int>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765E5D: call >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, unsigned int)>, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765E5D: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20839379: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1732) ==3654339== by 0x2084B722: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1379) ==3654339== by 0x2091C8E5: SpatVector::sample(unsigned long, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:942) ==3654339== by 0x2091DD84: SpatVector::sample_geom(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:981) ==3654339== by 0x20765CEE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765CEE: SEXPREC* Rcpp::internal::call_impl >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1}, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::__cxx11::basic_string, std::allocator >, unsigned int>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765E5D: call >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, unsigned int)>, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765E5D: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20839657: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1848) ==3654339== by 0x2084B722: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1379) ==3654339== by 0x2091C8E5: SpatVector::sample(unsigned long, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:942) ==3654339== by 0x2091DD84: SpatVector::sample_geom(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:981) ==3654339== by 0x20765CEE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765CEE: SEXPREC* Rcpp::internal::call_impl >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1}, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::__cxx11::basic_string, std::allocator >, unsigned int>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765E5D: call >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, unsigned int)>, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765E5D: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== Address 0x18fdf010 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20839643: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20839643: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1846) ==3654339== by 0x2084B722: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1379) ==3654339== by 0x2091C8E5: SpatVector::sample(unsigned long, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:942) ==3654339== by 0x2091DD84: SpatVector::sample_geom(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:981) ==3654339== by 0x20765CEE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765CEE: SEXPREC* Rcpp::internal::call_impl >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1}, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::__cxx11::basic_string, std::allocator >, unsigned int>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765E5D: call >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, unsigned int)>, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765E5D: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20839379: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1732) ==3654339== by 0x2084B722: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1379) ==3654339== by 0x2091C8E5: SpatVector::sample(unsigned long, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:942) ==3654339== by 0x2091DD84: SpatVector::sample_geom(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:981) ==3654339== by 0x20765CEE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765CEE: SEXPREC* Rcpp::internal::call_impl >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1}, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::__cxx11::basic_string, std::allocator >, unsigned int>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765E5D: call >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, unsigned int)>, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765E5D: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C4ED: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x2091C8E5: SpatVector::sample(unsigned long, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:942) ==3654339== by 0x2091DD84: SpatVector::sample_geom(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:981) ==3654339== by 0x20765CEE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765CEE: SEXPREC* Rcpp::internal::call_impl >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1}, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::__cxx11::basic_string, std::allocator >, unsigned int>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765E5D: call >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, unsigned int)>, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765E5D: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== Address 0x179ee540 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x2091C8E5: SpatVector::sample(unsigned long, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:942) ==3654339== by 0x2091DD84: SpatVector::sample_geom(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:981) ==3654339== by 0x20765CEE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765CEE: SEXPREC* Rcpp::internal::call_impl >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1}, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::__cxx11::basic_string, std::allocator >, unsigned int>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765E5D: call >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, unsigned int)>, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765E5D: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x2091C8E5: SpatVector::sample(unsigned long, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:942) ==3654339== by 0x2091DD84: SpatVector::sample_geom(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:981) ==3654339== by 0x20765CEE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765CEE: SEXPREC* Rcpp::internal::call_impl >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1}, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::__cxx11::basic_string, std::allocator >, unsigned int>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765E5D: call >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, unsigned int)>, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765E5D: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C4FA: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x2091C8E5: SpatVector::sample(unsigned long, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:942) ==3654339== by 0x2091DD84: SpatVector::sample_geom(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:981) ==3654339== by 0x20765CEE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765CEE: SEXPREC* Rcpp::internal::call_impl >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1}, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::__cxx11::basic_string, std::allocator >, unsigned int>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765E5D: call >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, unsigned int)>, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765E5D: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== Address 0x179ee540 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x2091C8E5: SpatVector::sample(unsigned long, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:942) ==3654339== by 0x2091DD84: SpatVector::sample_geom(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:981) ==3654339== by 0x20765CEE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765CEE: SEXPREC* Rcpp::internal::call_impl >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1}, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::__cxx11::basic_string, std::allocator >, unsigned int>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765E5D: call >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, unsigned int)>, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765E5D: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x2091C8E5: SpatVector::sample(unsigned long, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:942) ==3654339== by 0x2091DD84: SpatVector::sample_geom(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:981) ==3654339== by 0x20765CEE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765CEE: SEXPREC* Rcpp::internal::call_impl >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1}, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::__cxx11::basic_string, std::allocator >, unsigned int>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765E5D: call >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, unsigned int)>, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765E5D: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C507: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x2091C8E5: SpatVector::sample(unsigned long, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:942) ==3654339== by 0x2091DD84: SpatVector::sample_geom(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:981) ==3654339== by 0x20765CEE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765CEE: SEXPREC* Rcpp::internal::call_impl >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1}, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::__cxx11::basic_string, std::allocator >, unsigned int>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765E5D: call >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, unsigned int)>, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765E5D: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== Address 0x179ee540 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x2091C8E5: SpatVector::sample(unsigned long, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:942) ==3654339== by 0x2091DD84: SpatVector::sample_geom(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:981) ==3654339== by 0x20765CEE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765CEE: SEXPREC* Rcpp::internal::call_impl >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1}, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::__cxx11::basic_string, std::allocator >, unsigned int>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765E5D: call >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, unsigned int)>, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765E5D: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x2091C8E5: SpatVector::sample(unsigned long, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:942) ==3654339== by 0x2091DD84: SpatVector::sample_geom(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/sample.cpp:981) ==3654339== by 0x20765CEE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765CEE: SEXPREC* Rcpp::internal::call_impl >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1}, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::__cxx11::basic_string, std::allocator >, unsigned int>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765E5D: call >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, unsigned int)>, SpatVector, std::vector >, std::__cxx11::basic_string, std::allocator >, unsigned int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765E5D: Rcpp::CppMethodImplN >, std::__cxx11::basic_string, std::allocator >, unsigned int>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2083A966: SpatVector::which_relate(std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1976) ==3654339== by 0x20731F90: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20731F90: call_impl >, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector >, std::__cxx11::basic_string, std::allocator >, bool, 0, 1> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20731F90: call >, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector >, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20731F90: Rcpp::CppMethodImplN >, std::allocator > > >, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Address 0x16b5b560 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2083A95C: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2083A95C: SpatVector::which_relate(std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1974) ==3654339== by 0x20731F90: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20731F90: call_impl >, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector >, std::__cxx11::basic_string, std::allocator >, bool, 0, 1> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20731F90: call >, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector >, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20731F90: Rcpp::CppMethodImplN >, std::allocator > > >, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== by 0x49B40B9: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==3654339== by 0x49B40B9: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2083A633: SpatVector::which_relate(std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1864) ==3654339== by 0x20731F90: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20731F90: call_impl >, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector >, std::__cxx11::basic_string, std::allocator >, bool, 0, 1> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20731F90: call >, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector >, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20731F90: Rcpp::CppMethodImplN >, std::allocator > > >, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C4ED: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x207CB7A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==3654339== by 0x207CBE65: fix_date_line(SpatGeom&, std::vector >&, std::vector > const&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1123) ==3654339== by 0x207CDDB2: SpatVector::point_buffer(std::vector >, unsigned int, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1265) ==3654339== by 0x207D16F6: SpatVector::buffer_lonlat(std::__cxx11::basic_string, std::allocator >, std::vector >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1424) ==3654339== by 0x2084A7C7: SpatVector::buffer(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1274) ==3654339== by 0x207B21D8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==3654339== by 0x2076C594: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076C594: SEXPREC* Rcpp::internal::call_impl::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1}, SpatRaster, double, double, bool, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076C62D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076C62D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== Address 0x1aa3ab70 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x207CB7A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==3654339== by 0x207CBE65: fix_date_line(SpatGeom&, std::vector >&, std::vector > const&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1123) ==3654339== by 0x207CDDB2: SpatVector::point_buffer(std::vector >, unsigned int, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1265) ==3654339== by 0x207D16F6: SpatVector::buffer_lonlat(std::__cxx11::basic_string, std::allocator >, std::vector >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1424) ==3654339== by 0x2084A7C7: SpatVector::buffer(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1274) ==3654339== by 0x207B21D8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==3654339== by 0x2076C594: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076C594: SEXPREC* Rcpp::internal::call_impl::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1}, SpatRaster, double, double, bool, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076C62D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076C62D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x207CB7A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==3654339== by 0x207CBE65: fix_date_line(SpatGeom&, std::vector >&, std::vector > const&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1123) ==3654339== by 0x207CDDB2: SpatVector::point_buffer(std::vector >, unsigned int, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1265) ==3654339== by 0x207D16F6: SpatVector::buffer_lonlat(std::__cxx11::basic_string, std::allocator >, std::vector >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1424) ==3654339== by 0x2084A7C7: SpatVector::buffer(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1274) ==3654339== by 0x207B21D8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==3654339== by 0x2076C594: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076C594: SEXPREC* Rcpp::internal::call_impl::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1}, SpatRaster, double, double, bool, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076C62D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076C62D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C4FA: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x207CB7A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==3654339== by 0x207CBE65: fix_date_line(SpatGeom&, std::vector >&, std::vector > const&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1123) ==3654339== by 0x207CDDB2: SpatVector::point_buffer(std::vector >, unsigned int, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1265) ==3654339== by 0x207D16F6: SpatVector::buffer_lonlat(std::__cxx11::basic_string, std::allocator >, std::vector >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1424) ==3654339== by 0x2084A7C7: SpatVector::buffer(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1274) ==3654339== by 0x207B21D8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==3654339== by 0x2076C594: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076C594: SEXPREC* Rcpp::internal::call_impl::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1}, SpatRaster, double, double, bool, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076C62D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076C62D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== Address 0x1aa3ab70 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x207CB7A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==3654339== by 0x207CBE65: fix_date_line(SpatGeom&, std::vector >&, std::vector > const&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1123) ==3654339== by 0x207CDDB2: SpatVector::point_buffer(std::vector >, unsigned int, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1265) ==3654339== by 0x207D16F6: SpatVector::buffer_lonlat(std::__cxx11::basic_string, std::allocator >, std::vector >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1424) ==3654339== by 0x2084A7C7: SpatVector::buffer(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1274) ==3654339== by 0x207B21D8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==3654339== by 0x2076C594: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076C594: SEXPREC* Rcpp::internal::call_impl::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1}, SpatRaster, double, double, bool, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076C62D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076C62D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x207CB7A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==3654339== by 0x207CBE65: fix_date_line(SpatGeom&, std::vector >&, std::vector > const&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1123) ==3654339== by 0x207CDDB2: SpatVector::point_buffer(std::vector >, unsigned int, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1265) ==3654339== by 0x207D16F6: SpatVector::buffer_lonlat(std::__cxx11::basic_string, std::allocator >, std::vector >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1424) ==3654339== by 0x2084A7C7: SpatVector::buffer(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1274) ==3654339== by 0x207B21D8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==3654339== by 0x2076C594: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076C594: SEXPREC* Rcpp::internal::call_impl::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1}, SpatRaster, double, double, bool, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076C62D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076C62D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C507: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x207CB7A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==3654339== by 0x207CBE65: fix_date_line(SpatGeom&, std::vector >&, std::vector > const&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1123) ==3654339== by 0x207CDDB2: SpatVector::point_buffer(std::vector >, unsigned int, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1265) ==3654339== by 0x207D16F6: SpatVector::buffer_lonlat(std::__cxx11::basic_string, std::allocator >, std::vector >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1424) ==3654339== by 0x2084A7C7: SpatVector::buffer(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1274) ==3654339== by 0x207B21D8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==3654339== by 0x2076C594: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076C594: SEXPREC* Rcpp::internal::call_impl::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1}, SpatRaster, double, double, bool, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076C62D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076C62D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== Address 0x1aa3ab70 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x207CB7A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==3654339== by 0x207CBE65: fix_date_line(SpatGeom&, std::vector >&, std::vector > const&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1123) ==3654339== by 0x207CDDB2: SpatVector::point_buffer(std::vector >, unsigned int, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1265) ==3654339== by 0x207D16F6: SpatVector::buffer_lonlat(std::__cxx11::basic_string, std::allocator >, std::vector >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1424) ==3654339== by 0x2084A7C7: SpatVector::buffer(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1274) ==3654339== by 0x207B21D8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==3654339== by 0x2076C594: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076C594: SEXPREC* Rcpp::internal::call_impl::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1}, SpatRaster, double, double, bool, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076C62D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076C62D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x207CB7A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==3654339== by 0x207CBE65: fix_date_line(SpatGeom&, std::vector >&, std::vector > const&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1123) ==3654339== by 0x207CDDB2: SpatVector::point_buffer(std::vector >, unsigned int, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1265) ==3654339== by 0x207D16F6: SpatVector::buffer_lonlat(std::__cxx11::basic_string, std::allocator >, std::vector >, unsigned int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1424) ==3654339== by 0x2084A7C7: SpatVector::buffer(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1274) ==3654339== by 0x207B21D8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==3654339== by 0x2076C594: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076C594: SEXPREC* Rcpp::internal::call_impl::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1}, SpatRaster, double, double, bool, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076C62D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076C62D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208431D4: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208431D4: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208431D4: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208431D4: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208431D4: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208431D4: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x208431D4: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3373) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x207B221D: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1985) ==3654339== by 0x2076C594: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076C594: SEXPREC* Rcpp::internal::call_impl::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1}, SpatRaster, double, double, bool, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076C62D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076C62D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x1ab8a210 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20843139: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20843139: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3369) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x207B221D: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1985) ==3654339== by 0x2076C594: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076C594: SEXPREC* Rcpp::internal::call_impl::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1}, SpatRaster, double, double, bool, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076C62D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076C62D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20842D87: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20842D87: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3356) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x207B221D: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1985) ==3654339== by 0x2076C594: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076C594: SEXPREC* Rcpp::internal::call_impl::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1}, SpatRaster, double, double, bool, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076C62D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076C62D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20843256: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x20843256: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x20843256: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x20843256: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x20843256: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x20843256: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20843256: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3373) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x207B221D: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1985) ==3654339== by 0x2076C594: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076C594: SEXPREC* Rcpp::internal::call_impl::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1}, SpatRaster, double, double, bool, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076C62D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076C62D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x1ab8a210 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20843139: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20843139: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3369) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x207B221D: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1985) ==3654339== by 0x2076C594: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076C594: SEXPREC* Rcpp::internal::call_impl::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1}, SpatRaster, double, double, bool, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076C62D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076C62D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20842D87: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20842D87: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3356) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x207B221D: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1985) ==3654339== by 0x2076C594: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076C594: SEXPREC* Rcpp::internal::call_impl::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1}, SpatRaster, double, double, bool, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**)::{lambda(double, double, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076C62D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076C62D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084AEE8: SpatVector::buffer(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1331) ==3654339== by 0x20765883: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765883: SEXPREC* Rcpp::internal::call_impl >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool)#1}, SpatVector, std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765A1D: call >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::, unsigned int, std::__cxx11::basic_string, std::__cxx11::basic_string, double, bool)>, SpatVector, std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765A1D: Rcpp::CppMethodImplN >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x1f8fc210 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084AE4E: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084AE4E: SpatVector::buffer(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1318) ==3654339== by 0x20765883: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765883: SEXPREC* Rcpp::internal::call_impl >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool)#1}, SpatVector, std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765A1D: call >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::, unsigned int, std::__cxx11::basic_string, std::__cxx11::basic_string, double, bool)>, SpatVector, std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765A1D: Rcpp::CppMethodImplN >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084AA74: SpatVector::buffer(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1277) ==3654339== by 0x20765883: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765883: SEXPREC* Rcpp::internal::call_impl >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool)#1}, SpatVector, std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765A1D: call >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::, unsigned int, std::__cxx11::basic_string, std::__cxx11::basic_string, double, bool)>, SpatVector, std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765A1D: Rcpp::CppMethodImplN >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084AEF2: SpatVector::buffer(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1331) ==3654339== by 0x20765883: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765883: SEXPREC* Rcpp::internal::call_impl >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool)#1}, SpatVector, std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765A1D: call >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::, unsigned int, std::__cxx11::basic_string, std::__cxx11::basic_string, double, bool)>, SpatVector, std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765A1D: Rcpp::CppMethodImplN >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x1f8fc210 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084AE4E: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084AE4E: SpatVector::buffer(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1318) ==3654339== by 0x20765883: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765883: SEXPREC* Rcpp::internal::call_impl >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool)#1}, SpatVector, std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765A1D: call >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::, unsigned int, std::__cxx11::basic_string, std::__cxx11::basic_string, double, bool)>, SpatVector, std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765A1D: Rcpp::CppMethodImplN >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084AA74: SpatVector::buffer(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1277) ==3654339== by 0x20765883: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20765883: SEXPREC* Rcpp::internal::call_impl >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool)#1}, SpatVector, std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20765A1D: call >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**)::, unsigned int, std::__cxx11::basic_string, std::__cxx11::basic_string, double, bool)>, SpatVector, std::vector >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20765A1D: Rcpp::CppMethodImplN >, unsigned int, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20843784: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x20843784: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x20843784: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x20843784: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x20843784: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x20843784: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20843784: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3420) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Address 0x2c486a60 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x208436E9: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x208436E9: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3414) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20843337: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20843337: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3401) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x208437CC: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3420) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x2c486a60 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x208436E9: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x208436E9: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3414) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20843337: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20843337: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3401) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2083F375: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3350) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x18e0da80 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2083F330: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2083F330: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3345) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x2083F042: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2083F042: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3332) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2083F37F: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3350) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x18e0da80 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2083F330: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2083F330: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3345) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x2083F042: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2083F042: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3332) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084FC7D: SpatVector::erase(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2988) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x2e646190 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084FDB8: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084FDB8: SpatVector::erase(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2986) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084F9AF: SpatVector::erase(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2935) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C4ED: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x2e367df0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C4FA: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x2e367df0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C507: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x2e367df0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208431D4: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208431D4: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208431D4: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208431D4: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208431D4: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208431D4: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x208431D4: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3373) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x2084D8C6: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2755) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x3031fb90 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20843139: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20843139: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3369) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x2084D8C6: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2755) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20842D87: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20842D87: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3356) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x2084D8C6: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2755) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20843256: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x20843256: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x20843256: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x20843256: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x20843256: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x20843256: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20843256: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3373) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x2084D8C6: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2755) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x3031fb90 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20843139: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20843139: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3369) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x2084D8C6: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2755) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20842D87: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20842D87: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3356) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x2084D8C6: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2755) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084DCE2: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2790) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x30237310 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084DEFA: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084DEFA: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2785) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084D88E: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2747) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084DD0A: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2790) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x30237310 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084DEFA: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084DEFA: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2785) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084D88E: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2747) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084DD17: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2790) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x30237310 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084DEFA: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084DEFA: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2785) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084D88E: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2747) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20845A9D: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:532) ==3654339== by 0x208470F3: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:720) ==3654339== by 0x208475EC: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== Address 0x16b08330 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20845A4B: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20845A4B: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:529) ==3654339== by 0x208470F3: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:720) ==3654339== by 0x208475EC: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20845808: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20845808: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:506) ==3654339== by 0x208470F3: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:720) ==3654339== by 0x208475EC: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20845AA7: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:532) ==3654339== by 0x208470F3: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:720) ==3654339== by 0x208475EC: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== Address 0x16b08330 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20845A4B: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20845A4B: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:529) ==3654339== by 0x208470F3: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:720) ==3654339== by 0x208475EC: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20845808: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20845808: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:506) ==3654339== by 0x208470F3: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:720) ==3654339== by 0x208475EC: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20847319: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:727) ==3654339== by 0x208475EC: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x2e950230 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20847142: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20847142: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:722) ==3654339== by 0x208475EC: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20846CF4: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:660) ==3654339== by 0x208475EC: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20847354: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:727) ==3654339== by 0x208475EC: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x2e950230 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20847142: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20847142: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:722) ==3654339== by 0x208475EC: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20846CF4: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:660) ==3654339== by 0x208475EC: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20847361: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:727) ==3654339== by 0x208475EC: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x2e950230 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20847142: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20847142: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:722) ==3654339== by 0x208475EC: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20846CF4: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:660) ==3654339== by 0x208475EC: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==3654339== by 0x20743F76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743F76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074404D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074404D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20849A14: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1125) ==3654339== by 0x20745012: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20745012: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool, 0, 1, 2, 3, 4, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074516D: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, double, bool, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074516D: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x2a994950 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20849997: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20849997: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1120) ==3654339== by 0x20745012: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20745012: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool, 0, 1, 2, 3, 4, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074516D: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, double, bool, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074516D: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x208497CB: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1063) ==3654339== by 0x20745012: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20745012: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool, 0, 1, 2, 3, 4, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074516D: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, double, bool, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074516D: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20849A1C: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1125) ==3654339== by 0x20745012: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20745012: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool, 0, 1, 2, 3, 4, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074516D: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, double, bool, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074516D: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x2a994950 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20849997: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20849997: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1120) ==3654339== by 0x20745012: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20745012: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool, 0, 1, 2, 3, 4, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074516D: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, double, bool, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074516D: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x208497CB: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1063) ==3654339== by 0x20745012: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20745012: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool, 0, 1, 2, 3, 4, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074516D: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, double, bool, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074516D: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20849A14: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1125) ==3654339== by 0x208494C8: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1032) ==3654339== by 0x20745012: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20745012: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool, 0, 1, 2, 3, 4, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074516D: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, double, bool, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074516D: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x17256090 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20849997: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20849997: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1120) ==3654339== by 0x208494C8: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1032) ==3654339== by 0x20745012: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20745012: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool, 0, 1, 2, 3, 4, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074516D: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, double, bool, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074516D: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x208497CB: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1063) ==3654339== by 0x208494C8: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1032) ==3654339== by 0x20745012: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20745012: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool, 0, 1, 2, 3, 4, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074516D: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, double, bool, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074516D: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20849A1C: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1125) ==3654339== by 0x208494C8: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1032) ==3654339== by 0x20745012: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20745012: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool, 0, 1, 2, 3, 4, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074516D: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, double, bool, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074516D: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x17256090 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20849997: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20849997: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1120) ==3654339== by 0x208494C8: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1032) ==3654339== by 0x20745012: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20745012: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool, 0, 1, 2, 3, 4, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074516D: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, double, bool, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074516D: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x208497CB: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1063) ==3654339== by 0x208494C8: SpatVector::hull(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1032) ==3654339== by 0x20745012: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20745012: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1}, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool, 0, 1, 2, 3, 4, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074516D: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, double, bool, bool)>, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074516D: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, double, bool, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084E783: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2856) ==3654339== by 0x2084F5FD: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2710) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x2ab39cd0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084E9A3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084E9A3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==3654339== by 0x2084F5FD: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2710) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084E44E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2812) ==3654339== by 0x2084F5FD: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2710) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084E78D: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2856) ==3654339== by 0x2084F5FD: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2710) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x2ab39cd0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084E9A3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084E9A3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==3654339== by 0x2084F5FD: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2710) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084E44E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2812) ==3654339== by 0x2084F5FD: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2710) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C4ED: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x2084F6DA: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2712) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x301c40b0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x2084F6DA: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2712) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x2084F6DA: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2712) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C4FA: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x2084F6DA: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2712) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x301c40b0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x2084F6DA: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2712) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x2084F6DA: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2712) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C507: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x2084F6DA: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2712) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x301c40b0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x2084F6DA: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2712) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x2084F6DA: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2712) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084E783: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2856) ==3654339== by 0x2084F741: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2715) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x1f0c4af0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084E9A3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084E9A3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==3654339== by 0x2084F741: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2715) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084E44E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2812) ==3654339== by 0x2084F741: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2715) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084E78D: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2856) ==3654339== by 0x2084F741: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2715) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x1f0c4af0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084E9A3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084E9A3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==3654339== by 0x2084F741: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2715) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084E44E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2812) ==3654339== by 0x2084F741: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2715) ==3654339== by 0x2074452F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074452F: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1}, SpatVector, SpatVector, bool, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074460D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074460D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084497C: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:402) ==3654339== by 0x2084426C: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:345) ==3654339== by 0x20743B83: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743B83: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatExtent, bool)#1}, SpatVector, SpatExtent, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatExtent, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743C1D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743C1D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x18e4c3f0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20844819: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20844819: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:397) ==3654339== by 0x2084426C: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:345) ==3654339== by 0x20743B83: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743B83: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatExtent, bool)#1}, SpatVector, SpatExtent, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatExtent, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743C1D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743C1D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x208443B4: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:372) ==3654339== by 0x2084426C: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:345) ==3654339== by 0x20743B83: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743B83: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatExtent, bool)#1}, SpatVector, SpatExtent, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatExtent, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743C1D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743C1D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20844986: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:402) ==3654339== by 0x2084426C: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:345) ==3654339== by 0x20743B83: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743B83: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatExtent, bool)#1}, SpatVector, SpatExtent, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatExtent, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743C1D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743C1D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x18e4c3f0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20844819: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20844819: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:397) ==3654339== by 0x2084426C: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:345) ==3654339== by 0x20743B83: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743B83: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatExtent, bool)#1}, SpatVector, SpatExtent, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatExtent, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743C1D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743C1D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x208443B4: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:372) ==3654339== by 0x2084426C: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:345) ==3654339== by 0x20743B83: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743B83: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatExtent, bool)#1}, SpatVector, SpatExtent, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatExtent, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743C1D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743C1D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x208368F0: SpatVector::geos_distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2509) ==3654339== by 0x207C6EA5: SpatVector::distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:569) ==3654339== by 0x207316C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207316C4: SEXPREC* Rcpp::internal::call_impl >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1}, std::vector >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073185D: call, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073185D: Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x18d3eca0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20836A21: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20836A21: SpatVector::geos_distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2504) ==3654339== by 0x207C6EA5: SpatVector::distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:569) ==3654339== by 0x207316C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207316C4: SEXPREC* Rcpp::internal::call_impl >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1}, std::vector >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073185D: call, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073185D: Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x2083678D: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2083678D: SpatVector::geos_distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2452) ==3654339== by 0x207C6EA5: SpatVector::distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:569) ==3654339== by 0x207316C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207316C4: SEXPREC* Rcpp::internal::call_impl >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1}, std::vector >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073185D: call, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073185D: Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20836914: SpatVector::geos_distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2509) ==3654339== by 0x207C6EA5: SpatVector::distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:569) ==3654339== by 0x207316C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207316C4: SEXPREC* Rcpp::internal::call_impl >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1}, std::vector >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073185D: call, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073185D: Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x18d3eca0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20836A21: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20836A21: SpatVector::geos_distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2504) ==3654339== by 0x207C6EA5: SpatVector::distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:569) ==3654339== by 0x207316C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207316C4: SEXPREC* Rcpp::internal::call_impl >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1}, std::vector >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073185D: call, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073185D: Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x2083678D: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2083678D: SpatVector::geos_distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2452) ==3654339== by 0x207C6EA5: SpatVector::distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:569) ==3654339== by 0x207316C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207316C4: SEXPREC* Rcpp::internal::call_impl >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1}, std::vector >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073185D: call, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073185D: Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20837023: SpatVector::geos_distance(bool, std::__cxx11::basic_string, std::allocator >, double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2554) ==3654339== by 0x207CAC0D: SpatVector::distance(bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:817) ==3654339== by 0x2073141D: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2073141D: call_impl, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&, 0, 1, 2, 3, 4> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073141D: call, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073141D: Rcpp::CppMethodImplN >, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x30299d00 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20836F88: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20836F88: SpatVector::geos_distance(bool, std::__cxx11::basic_string, std::allocator >, double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2549) ==3654339== by 0x207CAC0D: SpatVector::distance(bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:817) ==3654339== by 0x2073141D: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2073141D: call_impl, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&, 0, 1, 2, 3, 4> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073141D: call, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073141D: Rcpp::CppMethodImplN >, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20836E6C: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20836E6C: SpatVector::geos_distance(bool, std::__cxx11::basic_string, std::allocator >, double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2520) ==3654339== by 0x207CAC0D: SpatVector::distance(bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:817) ==3654339== by 0x2073141D: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2073141D: call_impl, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&, 0, 1, 2, 3, 4> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073141D: call, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073141D: Rcpp::CppMethodImplN >, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x208368F0: SpatVector::geos_distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2509) ==3654339== by 0x207C6D1E: SpatVector::distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:517) ==3654339== by 0x207316C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207316C4: SEXPREC* Rcpp::internal::call_impl >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1}, std::vector >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073185D: call, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073185D: Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x30165690 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20836A21: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20836A21: SpatVector::geos_distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2504) ==3654339== by 0x207C6D1E: SpatVector::distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:517) ==3654339== by 0x207316C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207316C4: SEXPREC* Rcpp::internal::call_impl >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1}, std::vector >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073185D: call, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073185D: Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x2083678D: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2083678D: SpatVector::geos_distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2452) ==3654339== by 0x207C6D1E: SpatVector::distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:517) ==3654339== by 0x207316C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207316C4: SEXPREC* Rcpp::internal::call_impl >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1}, std::vector >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073185D: call, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073185D: Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20836914: SpatVector::geos_distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2509) ==3654339== by 0x207C6D1E: SpatVector::distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:517) ==3654339== by 0x207316C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207316C4: SEXPREC* Rcpp::internal::call_impl >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1}, std::vector >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073185D: call, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073185D: Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x30165690 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20836A21: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20836A21: SpatVector::geos_distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2504) ==3654339== by 0x207C6D1E: SpatVector::distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:517) ==3654339== by 0x207316C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207316C4: SEXPREC* Rcpp::internal::call_impl >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1}, std::vector >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073185D: call, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073185D: Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x2083678D: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2083678D: SpatVector::geos_distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2452) ==3654339== by 0x207C6D1E: SpatVector::distance(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:517) ==3654339== by 0x207316C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207316C4: SEXPREC* Rcpp::internal::call_impl >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1}, std::vector >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2073185D: call, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**)::, std::__cxx11::basic_string, bool, SpatOptions&)>, std::vector, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2073185D: Rcpp::CppMethodImplN >, SpatVector, bool, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, bool, SpatOptions&>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084A520: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1007) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x2df16180 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084A278: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084A278: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1005) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20849D64: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20849D64: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:961) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084A52D: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1007) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x2df16180 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084A278: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084A278: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1005) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20849D64: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20849D64: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:961) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084A53A: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1007) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x2df16180 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084A278: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084A278: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1005) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20849D64: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20849D64: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:961) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C4ED: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x2084D135: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1174) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x1abf28a0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x2084D135: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1174) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x2084D135: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1174) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C4FA: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x2084D135: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1174) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x1abf28a0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x2084D135: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1174) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x2084D135: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1174) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C507: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x2084D135: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1174) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x1abf28a0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x2084D135: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1174) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x2084D135: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1174) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2083B99B: SpatVector::relateFirst(SpatVector, std::__cxx11::basic_string, std::allocator >) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2220) ==3654339== by 0x2084D33C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1177) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x2e499150 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2083B991: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2083B991: SpatVector::relateFirst(SpatVector, std::__cxx11::basic_string, std::allocator >) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2218) ==3654339== by 0x2084D33C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1177) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2083B717: SpatVector::relateFirst(SpatVector, std::__cxx11::basic_string, std::allocator >) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2148) ==3654339== by 0x2084D33C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1177) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2083B9A5: SpatVector::relateFirst(SpatVector, std::__cxx11::basic_string, std::allocator >) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2220) ==3654339== by 0x2084D33C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1177) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x2e499150 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2083B991: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2083B991: SpatVector::relateFirst(SpatVector, std::__cxx11::basic_string, std::allocator >) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2218) ==3654339== by 0x2084D33C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1177) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2083B717: SpatVector::relateFirst(SpatVector, std::__cxx11::basic_string, std::allocator >) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2148) ==3654339== by 0x2084D33C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1177) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084D1A1: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1190) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x2e44bc30 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084D067: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084D067: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1166) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084CF1C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1143) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084D1AB: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1190) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x2e44bc30 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084D067: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084D067: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1166) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084CF1C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1143) ==3654339== by 0x207446BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x207446BC: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1}, SpatVector, SpatVector, double, int, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, double, int)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074478D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074478D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084E783: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2856) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x1f006880 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084E9A3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084E9A3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084E44E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2812) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084E78D: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2856) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x1f006880 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084E9A3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084E9A3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084E44E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2812) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208431D4: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208431D4: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208431D4: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208431D4: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208431D4: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208431D4: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x208431D4: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3373) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x20841A96: SpatVector::gaps() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3004) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x2af1db00 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20843139: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20843139: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3369) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x20841A96: SpatVector::gaps() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3004) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20842D87: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20842D87: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3356) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x20841A96: SpatVector::gaps() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3004) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20843256: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x20843256: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x20843256: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x20843256: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x20843256: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x20843256: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20843256: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3373) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x20841A96: SpatVector::gaps() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3004) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x2af1db00 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20843139: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20843139: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3369) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x20841A96: SpatVector::gaps() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3004) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20842D87: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20842D87: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3356) ==3654339== by 0x209B6249: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==3654339== by 0x20841A96: SpatVector::gaps() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3004) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2083740C: SpatVector::geos_isvalid() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:192) ==3654339== by 0x206C9E84: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x206C9E84: call_impl >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x206C9E84: call >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x206C9E84: Rcpp::CppMethodImplN >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Address 0x30587930 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20837331: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20837331: SpatVector::geos_isvalid() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:190) ==3654339== by 0x206C9E84: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x206C9E84: call_impl >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x206C9E84: call >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x206C9E84: Rcpp::CppMethodImplN >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== by 0x49B40B9: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==3654339== by 0x49B40B9: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208371C0: geos_init2 (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:223) ==3654339== by 0x208371C0: SpatVector::geos_isvalid() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:182) ==3654339== by 0x206C9E84: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x206C9E84: call_impl >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x206C9E84: call >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x206C9E84: Rcpp::CppMethodImplN >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20835FF4: SpatVector::geos_isvalid_msg[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:214) ==3654339== by 0x206AC798: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x206AC798: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x206AC798: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x206AC798: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Address 0x18ec3110 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20835F49: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20835F49: SpatVector::geos_isvalid_msg[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:212) ==3654339== by 0x206AC798: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x206AC798: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x206AC798: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x206AC798: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== by 0x49B40B9: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==3654339== by 0x49B40B9: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20835B1D: geos_init2 (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:223) ==3654339== by 0x20835B1D: SpatVector::geos_isvalid_msg[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:195) ==3654339== by 0x206AC798: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x206AC798: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x206AC798: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x206AC798: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208440F6: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208440F6: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208440F6: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208440F6: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208440F6: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208440F6: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x208440F6: SpatVector::make_valid2() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:252) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Address 0x16b8dcb0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20844063: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20844063: SpatVector::make_valid2() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:243) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20843DA7: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20843DA7: SpatVector::make_valid2() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:223) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C4ED: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x208B42D6: SpatRasterCollection::mosaic(std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/raster_methods.cpp:4517) ==3654339== by 0x2076D44B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076D44B: SEXPREC* Rcpp::internal::call_impl, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076D53D: call, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::, SpatOptions&)>, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076D53D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C5FC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x18040340 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x208B42D6: SpatRasterCollection::mosaic(std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/raster_methods.cpp:4517) ==3654339== by 0x2076D44B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076D44B: SEXPREC* Rcpp::internal::call_impl, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076D53D: call, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::, SpatOptions&)>, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076D53D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C5FC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x208B42D6: SpatRasterCollection::mosaic(std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/raster_methods.cpp:4517) ==3654339== by 0x2076D44B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076D44B: SEXPREC* Rcpp::internal::call_impl, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076D53D: call, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::, SpatOptions&)>, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076D53D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C5FC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C4FA: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x208B42D6: SpatRasterCollection::mosaic(std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/raster_methods.cpp:4517) ==3654339== by 0x2076D44B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076D44B: SEXPREC* Rcpp::internal::call_impl, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076D53D: call, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::, SpatOptions&)>, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076D53D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C5FC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x18040340 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x208B42D6: SpatRasterCollection::mosaic(std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/raster_methods.cpp:4517) ==3654339== by 0x2076D44B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076D44B: SEXPREC* Rcpp::internal::call_impl, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076D53D: call, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::, SpatOptions&)>, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076D53D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C5FC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x208B42D6: SpatRasterCollection::mosaic(std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/raster_methods.cpp:4517) ==3654339== by 0x2076D44B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076D44B: SEXPREC* Rcpp::internal::call_impl, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076D53D: call, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::, SpatOptions&)>, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076D53D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C5FC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C507: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x208B42D6: SpatRasterCollection::mosaic(std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/raster_methods.cpp:4517) ==3654339== by 0x2076D44B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076D44B: SEXPREC* Rcpp::internal::call_impl, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076D53D: call, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::, SpatOptions&)>, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076D53D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C5FC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x18040340 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x208B42D6: SpatRasterCollection::mosaic(std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/raster_methods.cpp:4517) ==3654339== by 0x2076D44B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076D44B: SEXPREC* Rcpp::internal::call_impl, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076D53D: call, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::, SpatOptions&)>, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076D53D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C5FC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x208B42D6: SpatRasterCollection::mosaic(std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/raster_methods.cpp:4517) ==3654339== by 0x2076D44B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2076D44B: SEXPREC* Rcpp::internal::call_impl, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::{lambda(std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2076D53D: call, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**)::, SpatOptions&)>, SpatRaster, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2076D53D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C5FC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084497C: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:402) ==3654339== by 0x20998213: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x17c00e40 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20844819: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20844819: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:397) ==3654339== by 0x20998213: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x208443B4: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:372) ==3654339== by 0x20998213: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20844986: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:402) ==3654339== by 0x20998213: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x17c00e40 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20844819: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20844819: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:397) ==3654339== by 0x20998213: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x208443B4: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:372) ==3654339== by 0x20998213: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084E783: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2856) ==3654339== by 0x209982D2: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x17a39a70 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084E9A3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084E9A3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==3654339== by 0x209982D2: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084E44E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2812) ==3654339== by 0x209982D2: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084E78D: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2856) ==3654339== by 0x209982D2: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x17a39a70 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084E9A3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084E9A3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==3654339== by 0x209982D2: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084E44E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2812) ==3654339== by 0x209982D2: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20844986: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:402) ==3654339== by 0x2099836F: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1361) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x16bcb3e0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20844819: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20844819: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:397) ==3654339== by 0x2099836F: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1361) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x208443B4: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:372) ==3654339== by 0x2099836F: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1361) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C4ED: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x208DBF36: SpatRaster::rasterizeGeom(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:343) ==3654339== by 0x20773459: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20773459: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x207735ED: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::, std::__cxx11::basic_string, SpatOptions&)>, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x207735ED: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x168089e0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x208DBF36: SpatRaster::rasterizeGeom(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:343) ==3654339== by 0x20773459: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20773459: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x207735ED: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::, std::__cxx11::basic_string, SpatOptions&)>, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x207735ED: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x208DBF36: SpatRaster::rasterizeGeom(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:343) ==3654339== by 0x20773459: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20773459: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x207735ED: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::, std::__cxx11::basic_string, SpatOptions&)>, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x207735ED: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C4FA: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x208DBF36: SpatRaster::rasterizeGeom(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:343) ==3654339== by 0x20773459: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20773459: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x207735ED: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::, std::__cxx11::basic_string, SpatOptions&)>, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x207735ED: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x168089e0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x208DBF36: SpatRaster::rasterizeGeom(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:343) ==3654339== by 0x20773459: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20773459: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x207735ED: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::, std::__cxx11::basic_string, SpatOptions&)>, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x207735ED: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x208DBF36: SpatRaster::rasterizeGeom(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:343) ==3654339== by 0x20773459: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20773459: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x207735ED: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::, std::__cxx11::basic_string, SpatOptions&)>, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x207735ED: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C507: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x208DBF36: SpatRaster::rasterizeGeom(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:343) ==3654339== by 0x20773459: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20773459: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x207735ED: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::, std::__cxx11::basic_string, SpatOptions&)>, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x207735ED: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x168089e0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x208DBF36: SpatRaster::rasterizeGeom(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:343) ==3654339== by 0x20773459: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20773459: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x207735ED: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::, std::__cxx11::basic_string, SpatOptions&)>, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x207735ED: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x208DBF36: SpatRaster::rasterizeGeom(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:343) ==3654339== by 0x20773459: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20773459: SEXPREC* Rcpp::internal::call_impl, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1}, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&, 0, 1, 2, 3, (void*)0>(Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x207735ED: call, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::, std::__cxx11::basic_string, SpatOptions&)>, SpatRaster, SpatVector, std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x207735ED: Rcpp::CppMethodImplN, std::allocator >, std::__cxx11::basic_string, std::allocator >, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2083964D: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1848) ==3654339== by 0x20731D68: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20731D68: SEXPREC* Rcpp::internal::call_impl >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, bool)#1}, std::vector >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20731EFD: call >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20731EFD: Rcpp::CppMethodImplN >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x1a98c2b0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20839643: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20839643: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1846) ==3654339== by 0x20731D68: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20731D68: SEXPREC* Rcpp::internal::call_impl >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, bool)#1}, std::vector >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20731EFD: call >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20731EFD: Rcpp::CppMethodImplN >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20839379: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1732) ==3654339== by 0x20731D68: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20731D68: SEXPREC* Rcpp::internal::call_impl >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, bool)#1}, std::vector >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20731EFD: call >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20731EFD: Rcpp::CppMethodImplN >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20839657: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1848) ==3654339== by 0x20731D68: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20731D68: SEXPREC* Rcpp::internal::call_impl >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, bool)#1}, std::vector >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20731EFD: call >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20731EFD: Rcpp::CppMethodImplN >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x1a98c2b0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20839643: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20839643: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1846) ==3654339== by 0x20731D68: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20731D68: SEXPREC* Rcpp::internal::call_impl >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, bool)#1}, std::vector >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20731EFD: call >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20731EFD: Rcpp::CppMethodImplN >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20839379: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1732) ==3654339== by 0x20731D68: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20731D68: SEXPREC* Rcpp::internal::call_impl >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, bool)#1}, std::vector >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, std::__cxx11::basic_string, std::allocator >, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>, Rcpp::traits::index_sequence<0, 1, 2>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20731EFD: call >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**)::, bool)>, std::vector >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20731EFD: Rcpp::CppMethodImplN >, std::allocator > > >, SpatVector, std::__cxx11::basic_string, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20845A9D: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:532) ==3654339== by 0x20845F98: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:640) ==3654339== by 0x20846517: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== Address 0x30617180 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20845A4B: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20845A4B: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:529) ==3654339== by 0x20845F98: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:640) ==3654339== by 0x20846517: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20845808: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20845808: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:506) ==3654339== by 0x20845F98: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:640) ==3654339== by 0x20846517: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20845AA7: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:532) ==3654339== by 0x20845F98: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:640) ==3654339== by 0x20846517: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== Address 0x30617180 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20845A4B: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20845A4B: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:529) ==3654339== by 0x20845F98: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:640) ==3654339== by 0x20846517: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20845808: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20845808: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:506) ==3654339== by 0x20845F98: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:640) ==3654339== by 0x20846517: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084619F: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:647) ==3654339== by 0x20846517: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x175be2d0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20845FBB: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20845FBB: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:642) ==3654339== by 0x20846517: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20845CC8: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:579) ==3654339== by 0x20846517: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x208461DA: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:647) ==3654339== by 0x20846517: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x175be2d0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20845FBB: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20845FBB: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:642) ==3654339== by 0x20846517: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20845CC8: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:579) ==3654339== by 0x20846517: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==3654339== by 0x20742E3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742E3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x2084833B: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x2084833B: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x2084833B: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x2084833B: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x2084833B: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x2084833B: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084833B: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:569) ==3654339== by 0x2074320B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074320B: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(double, bool)#1}, SpatVector, double, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(double, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074329D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074329D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Address 0x1681cce0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x208482A5: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x208482A5: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:566) ==3654339== by 0x2074320B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074320B: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(double, bool)#1}, SpatVector, double, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(double, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074329D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074329D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20847E70: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20847E70: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:538) ==3654339== by 0x2074320B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074320B: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(double, bool)#1}, SpatVector, double, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(double, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074329D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074329D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20848146: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x20848146: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x20848146: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x20848146: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x20848146: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x20848146: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20848146: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:569) ==3654339== by 0x2074320B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074320B: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(double, bool)#1}, SpatVector, double, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(double, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074329D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074329D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Address 0x1681cce0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x208482A5: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x208482A5: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:566) ==3654339== by 0x2074320B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074320B: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(double, bool)#1}, SpatVector, double, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(double, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074329D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074329D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20847E70: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20847E70: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:538) ==3654339== by 0x2074320B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x2074320B: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(double, bool)#1}, SpatVector, double, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(double, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x2074329D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x2074329D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20844E3B: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x20844E3B: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x20844E3B: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x20844E3B: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x20844E3B: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x20844E3B: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20844E3B: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:436) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Address 0x2d4f1a00 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20844DA5: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20844DA5: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:433) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20844B37: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20844B37: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:410) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20844EC6: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x20844EC6: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x20844EC6: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x20844EC6: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x20844EC6: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x20844EC6: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20844EC6: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:436) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Address 0x2d4f1a00 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20844DA5: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20844DA5: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:433) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20844B37: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20844B37: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:410) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084275D: SpatVector::polygonize() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:862) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x309459d0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x208426F7: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x208426F7: SpatVector::polygonize() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:855) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208425E7: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x208425E7: SpatVector::polygonize() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:843) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084893D: SpatVector::snap(double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:905) ==3654339== by 0x20742D48: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742D48: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(double)#1}, SpatVector, double, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(double)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742DED: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742DED: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Address 0x179c1dd0 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20848876: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20848876: SpatVector::snap(double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:897) ==3654339== by 0x20742D48: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742D48: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(double)#1}, SpatVector, double, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(double)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742DED: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742DED: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208484EC: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x208484EC: SpatVector::snap(double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:874) ==3654339== by 0x20742D48: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742D48: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(double)#1}, SpatVector, double, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(double)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742DED: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742DED: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C4ED: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x2084F37E: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2571) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x17634300 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x2084F37E: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2571) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x2084F37E: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2571) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C4FA: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x2084F37E: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2571) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x17634300 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x2084F37E: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2571) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x2084F37E: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2571) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084C507: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3654339== by 0x2084F37E: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2571) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Address 0x17634300 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084BE06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084BE06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3654339== by 0x2084F37E: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2571) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084B674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3654339== by 0x2084F37E: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2571) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x208512A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x208512A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x208512A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x208512A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x208512A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x208512A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x2084E783: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2856) ==3654339== by 0x2084EEEA: SpatVector::symdif(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2634) ==3654339== by 0x2084F45D: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2583) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== Address 0x1f7a3b30 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x2084E9A3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x2084E9A3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==3654339== by 0x2084EEEA: SpatVector::symdif(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2634) ==3654339== by 0x2084F45D: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2583) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20851045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x2084E44E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2812) ==3654339== by 0x2084EEEA: SpatVector::symdif(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2634) ==3654339== by 0x2084F45D: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2583) ==3654339== by 0x20743E00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20743E00: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1}, SpatVector, SpatVector, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20743EDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20743EDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== ==3654339== ==3654339== More than 100 errors detected. Subsequent errors ==3654339== will still be recorded, but in less detail than before. ==3654339== Invalid read of size 8 ==3654339== at 0x2350C51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20843CC4: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3654339== by 0x20843CC4: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3654339== by 0x20843CC4: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3654339== by 0x20843CC4: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3654339== by 0x20843CC4: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3654339== by 0x20843CC4: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3654339== by 0x20843CC4: SpatVector::clearance() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3448) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Address 0x16c0fa10 is 1,072 bytes inside a block of size 1,120 free'd ==3654339== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3654339== by 0x20843C29: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3654339== by 0x20843C29: SpatVector::clearance() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3442) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3654339== Block was alloc'd at ==3654339== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3654339== by 0x23517E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3654339== by 0x20843867: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3654339== by 0x20843867: SpatVector::clearance() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3429) ==3654339== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3654339== by 0x20742C76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda()#1}, SpatVector, , , (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda()#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3654339== by 0x20742D05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3654339== by 0x20742D05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3654339== by 0x206C6B07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3654339== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3654339== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3654339== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3654339== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3654339== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3654339== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3654339== ==3654339== ==3654339== HEAP SUMMARY: ==3654339== in use at exit: 168,898,963 bytes in 52,536 blocks ==3654339== total heap usage: 10,055,717 allocs, 10,003,181 frees, 5,492,133,554 bytes allocated ==3654339== ==3654339== LEAK SUMMARY: ==3654339== definitely lost: 0 bytes in 0 blocks ==3654339== indirectly lost: 0 bytes in 0 blocks ==3654339== possibly lost: 366,117 bytes in 73 blocks ==3654339== still reachable: 168,531,965 bytes in 52,460 blocks ==3654339== suppressed: 881 bytes in 3 blocks ==3654339== Rerun with --leak-check=full to see details of leaked memory ==3654339== ==3654339== For lists of detected and suppressed errors, rerun with: -s ==3654339== ERROR SUMMARY: 89589 errors from 101 contexts (suppressed: 0 from 0) File: tests/tinytest.Rout ==3660744== Memcheck, a memory error detector ==3660744== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al. ==3660744== Using Valgrind-3.25.1 and LibVEX; rerun with -h for copyright info ==3660744== Command: /home/hornik/tmp/R-d-gcc-valg/bin/exec/R -f tinytest.R --restore --save --no-readline --vanilla ==3660744== ==3660744== at 0x2311451C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x204592A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3660744== by 0x204592A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3660744== by 0x204592A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3660744== by 0x204592A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3660744== by 0x204592A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3660744== by 0x204592A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3660744== by 0x20452520: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1007) ==3660744== by 0x204EC2B2: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==3660744== by 0x203E9994: SpatRaster::extractVectorFlat(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/extract.cpp:1178) ==3660744== by 0x2034870A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034870A: SEXPREC* Rcpp::internal::call_impl >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1}, std::vector >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034887D: call, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**):: >, bool, bool, bool, std::__cxx11::basic_string, bool, bool, bool, bool, SpatOptions&)>, std::vector, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034887D: Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CE387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== Address 0x2cefad00 is 1,072 bytes inside a block of size 1,120 free'd ==3660744== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3660744== by 0x20452278: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3660744== by 0x20452278: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1005) ==3660744== by 0x204EC2B2: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==3660744== by 0x203E9994: SpatRaster::extractVectorFlat(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/extract.cpp:1178) ==3660744== by 0x2034870A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034870A: SEXPREC* Rcpp::internal::call_impl >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1}, std::vector >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034887D: call, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**):: >, bool, bool, bool, std::__cxx11::basic_string, bool, bool, bool, bool, SpatOptions&)>, std::vector, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034887D: Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CE387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== Block was alloc'd at ==3660744== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3660744== by 0x2311FE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x20451D64: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3660744== by 0x20451D64: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:961) ==3660744== by 0x204EC2B2: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==3660744== by 0x203E9994: SpatRaster::extractVectorFlat(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/extract.cpp:1178) ==3660744== by 0x2034870A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034870A: SEXPREC* Rcpp::internal::call_impl >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1}, std::vector >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034887D: call, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**):: >, bool, bool, bool, std::__cxx11::basic_string, bool, bool, bool, bool, SpatOptions&)>, std::vector, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034887D: Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CE387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== ==3660744== Invalid read of size 8 ==3660744== at 0x2311451C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x204592A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3660744== by 0x204592A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3660744== by 0x204592A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3660744== by 0x204592A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3660744== by 0x204592A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3660744== by 0x204592A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3660744== by 0x2045252D: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1007) ==3660744== by 0x204EC2B2: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==3660744== by 0x203E9994: SpatRaster::extractVectorFlat(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/extract.cpp:1178) ==3660744== by 0x2034870A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034870A: SEXPREC* Rcpp::internal::call_impl >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1}, std::vector >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034887D: call, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**):: >, bool, bool, bool, std::__cxx11::basic_string, bool, bool, bool, bool, SpatOptions&)>, std::vector, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034887D: Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CE387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== Address 0x2cefad00 is 1,072 bytes inside a block of size 1,120 free'd ==3660744== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3660744== by 0x20452278: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3660744== by 0x20452278: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1005) ==3660744== by 0x204EC2B2: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==3660744== by 0x203E9994: SpatRaster::extractVectorFlat(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/extract.cpp:1178) ==3660744== by 0x2034870A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034870A: SEXPREC* Rcpp::internal::call_impl >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1}, std::vector >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034887D: call, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**):: >, bool, bool, bool, std::__cxx11::basic_string, bool, bool, bool, bool, SpatOptions&)>, std::vector, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034887D: Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CE387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== Block was alloc'd at ==3660744== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3660744== by 0x2311FE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x20451D64: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3660744== by 0x20451D64: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:961) ==3660744== by 0x204EC2B2: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==3660744== by 0x203E9994: SpatRaster::extractVectorFlat(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/extract.cpp:1178) ==3660744== by 0x2034870A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034870A: SEXPREC* Rcpp::internal::call_impl >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1}, std::vector >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034887D: call, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**):: >, bool, bool, bool, std::__cxx11::basic_string, bool, bool, bool, bool, SpatOptions&)>, std::vector, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034887D: Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CE387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== ==3660744== Invalid read of size 8 ==3660744== at 0x2311451C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x204592A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3660744== by 0x204592A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3660744== by 0x204592A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3660744== by 0x204592A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3660744== by 0x204592A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3660744== by 0x204592A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3660744== by 0x2045253A: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1007) ==3660744== by 0x204EC2B2: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==3660744== by 0x203E9994: SpatRaster::extractVectorFlat(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/extract.cpp:1178) ==3660744== by 0x2034870A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034870A: SEXPREC* Rcpp::internal::call_impl >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1}, std::vector >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034887D: call, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**):: >, bool, bool, bool, std::__cxx11::basic_string, bool, bool, bool, bool, SpatOptions&)>, std::vector, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034887D: Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CE387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== Address 0x2cefad00 is 1,072 bytes inside a block of size 1,120 free'd ==3660744== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3660744== by 0x20452278: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3660744== by 0x20452278: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1005) ==3660744== by 0x204EC2B2: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==3660744== by 0x203E9994: SpatRaster::extractVectorFlat(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/extract.cpp:1178) ==3660744== by 0x2034870A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034870A: SEXPREC* Rcpp::internal::call_impl >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1}, std::vector >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034887D: call, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**):: >, bool, bool, bool, std::__cxx11::basic_string, bool, bool, bool, bool, SpatOptions&)>, std::vector, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034887D: Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CE387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== Block was alloc'd at ==3660744== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3660744== by 0x2311FE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x20451D64: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3660744== by 0x20451D64: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:961) ==3660744== by 0x204EC2B2: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==3660744== by 0x203E9994: SpatRaster::extractVectorFlat(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/extract.cpp:1178) ==3660744== by 0x2034870A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034870A: SEXPREC* Rcpp::internal::call_impl >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1}, std::vector >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, (void*)0>(Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**)::{lambda(SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&)#1} const&, SEXPREC**, Rcpp::internal::type_pack >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>, Rcpp::traits::index_sequence<0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034887D: call, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**):: >, bool, bool, bool, std::__cxx11::basic_string, bool, bool, bool, bool, SpatOptions&)>, std::vector, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034887D: Rcpp::CppMethodImplN >, SpatVector, std::vector, std::allocator >, std::allocator, std::allocator > > >, bool, bool, bool, std::__cxx11::basic_string, std::allocator >, bool, bool, bool, bool, SpatOptions&>::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CE387: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== ==3660744== at 0x2311451C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x204592A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3660744== by 0x204592A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3660744== by 0x204592A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3660744== by 0x204592A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3660744== by 0x204592A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3660744== by 0x204592A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3660744== by 0x20447375: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3350) ==3660744== by 0x2034AE3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034AE3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034AEDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034AEDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== Address 0x2fc2f360 is 1,072 bytes inside a block of size 1,120 free'd ==3660744== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3660744== by 0x20447330: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3660744== by 0x20447330: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3345) ==3660744== by 0x2034AE3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034AE3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034AEDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034AEDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3660744== Block was alloc'd at ==3660744== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3660744== by 0x2311FE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x20447042: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3660744== by 0x20447042: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3332) ==3660744== by 0x2034AE3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034AE3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034AEDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034AEDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== ==3660744== Invalid read of size 8 ==3660744== at 0x2311451C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x204592A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3660744== by 0x204592A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3660744== by 0x204592A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3660744== by 0x204592A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3660744== by 0x204592A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3660744== by 0x204592A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3660744== by 0x2044737F: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3350) ==3660744== by 0x2034AE3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034AE3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034AEDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034AEDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== Address 0x2fc2f360 is 1,072 bytes inside a block of size 1,120 free'd ==3660744== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3660744== by 0x20447330: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3660744== by 0x20447330: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3345) ==3660744== by 0x2034AE3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034AE3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034AEDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034AEDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3660744== Block was alloc'd at ==3660744== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3660744== by 0x2311FE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x20447042: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3660744== by 0x20447042: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3332) ==3660744== by 0x2034AE3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034AE3C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1}, SpatVector, bool, 0, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034AEDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034AEDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== ==3660744== at 0x2311451C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x20445C46: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3660744== by 0x20445C46: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3660744== by 0x20445C46: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3660744== by 0x20445C46: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3660744== by 0x20445C46: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3660744== by 0x20445C46: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3660744== by 0x20445C46: SpatVector::wkb_raw() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:116) ==3660744== by 0x2037EDC0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2037EDC0: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2037EDC0: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2037EDC0: Rcpp::CppMethodImplN >, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3660744== by 0x49B40B9: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==3660744== by 0x49B40B9: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==3660744== Address 0x168e3e90 is 1,072 bytes inside a block of size 1,120 free'd ==3660744== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3660744== by 0x20445C01: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3660744== by 0x20445C01: SpatVector::wkb_raw() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:114) ==3660744== by 0x2037EDC0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2037EDC0: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2037EDC0: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2037EDC0: Rcpp::CppMethodImplN >, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3660744== by 0x49B40B9: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==3660744== by 0x49B40B9: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==3660744== Block was alloc'd at ==3660744== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3660744== by 0x2311FE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x204459FE: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3660744== by 0x204459FE: SpatVector::wkb_raw() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:103) ==3660744== by 0x2037EDC0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2037EDC0: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2037EDC0: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2037EDC0: Rcpp::CppMethodImplN >, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3660744== ==3660744== at 0x2311451C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x2043DA95: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3660744== by 0x2043DA95: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3660744== by 0x2043DA95: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3660744== by 0x2043DA95: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3660744== by 0x2043DA95: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3660744== by 0x2043DA95: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==3660744== by 0x2043DA95: SpatVector::hex[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:132) ==3660744== by 0x202B4798: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x202B4798: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x202B4798: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x202B4798: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3660744== by 0x49B40B9: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==3660744== by 0x49B40B9: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==3660744== Address 0x2c60ad30 is 1,072 bytes inside a block of size 1,120 free'd ==3660744== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3660744== by 0x2043DA59: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3660744== by 0x2043DA59: SpatVector::hex[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:130) ==3660744== by 0x202B4798: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x202B4798: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x202B4798: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x202B4798: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3660744== by 0x49B40B9: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==3660744== by 0x49B40B9: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==3660744== Block was alloc'd at ==3660744== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3660744== by 0x2311FE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x2043D8DB: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3660744== by 0x2043D8DB: SpatVector::hex[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:119) ==3660744== by 0x202B4798: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x202B4798: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x202B4798: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x202B4798: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3660744== ==3660744== at 0x2311451C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x204592A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3660744== by 0x204592A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3660744== by 0x204592A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3660744== by 0x204592A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3660744== by 0x204592A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3660744== by 0x204592A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3660744== by 0x2044164D: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1848) ==3660744== by 0x20453722: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1379) ==3660744== by 0x2034BF76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034BF76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034C04D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034C04D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== Address 0x3086f440 is 1,072 bytes inside a block of size 1,120 free'd ==3660744== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3660744== by 0x20441643: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3660744== by 0x20441643: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1846) ==3660744== by 0x20453722: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1379) ==3660744== by 0x2034BF76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034BF76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034C04D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034C04D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== Block was alloc'd at ==3660744== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3660744== by 0x2311FE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x20459045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3660744== by 0x20441379: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1732) ==3660744== by 0x20453722: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1379) ==3660744== by 0x2034BF76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034BF76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034C04D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034C04D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== ==3660744== Invalid read of size 8 ==3660744== at 0x2311451C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x204592A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3660744== by 0x204592A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3660744== by 0x204592A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3660744== by 0x204592A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3660744== by 0x204592A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3660744== by 0x204592A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3660744== by 0x20441657: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1848) ==3660744== by 0x20453722: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1379) ==3660744== by 0x2034BF76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034BF76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034C04D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034C04D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== Address 0x3086f440 is 1,072 bytes inside a block of size 1,120 free'd ==3660744== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3660744== by 0x20441643: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3660744== by 0x20441643: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1846) ==3660744== by 0x20453722: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1379) ==3660744== by 0x2034BF76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034BF76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034C04D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034C04D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== Block was alloc'd at ==3660744== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3660744== by 0x2311FE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x20459045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3660744== by 0x20441379: SpatVector::which_relate(SpatVector, std::__cxx11::basic_string, std::allocator >, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1732) ==3660744== by 0x20453722: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1379) ==3660744== by 0x2034BF76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034BF76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034C04D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034C04D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== ==3660744== Invalid read of size 8 ==3660744== at 0x2311451C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x204592A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3660744== by 0x204592A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3660744== by 0x204592A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3660744== by 0x204592A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3660744== by 0x204592A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3660744== by 0x204592A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3660744== by 0x204544FA: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3660744== by 0x2034BF76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034BF76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034C04D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034C04D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== Address 0x1e8d6ba0 is 1,072 bytes inside a block of size 1,120 free'd ==3660744== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3660744== by 0x20453E06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3660744== by 0x20453E06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3660744== by 0x2034BF76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034BF76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034C04D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034C04D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3660744== Block was alloc'd at ==3660744== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3660744== by 0x2311FE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x20459045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3660744== by 0x20453674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3660744== by 0x2034BF76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034BF76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034C04D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034C04D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== ==3660744== Invalid read of size 8 ==3660744== at 0x2311451C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x204592A1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==3660744== by 0x204592A1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==3660744== by 0x204592A1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==3660744== by 0x204592A1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==3660744== by 0x204592A1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==3660744== by 0x204592A1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==3660744== by 0x20454507: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1486) ==3660744== by 0x2034BF76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034BF76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034C04D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034C04D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== Address 0x1e8d6ba0 is 1,072 bytes inside a block of size 1,120 free'd ==3660744== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==3660744== by 0x20453E06: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==3660744== by 0x20453E06: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1436) ==3660744== by 0x2034BF76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034BF76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034C04D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034C04D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== by 0x49B5EDD: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==3660744== by 0x49B6C98: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==3660744== Block was alloc'd at ==3660744== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==3660744== by 0x2311FE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==3660744== by 0x20459045: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==3660744== by 0x20453674: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1370) ==3660744== by 0x2034BF76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==3660744== by 0x2034BF76: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1}, SpatVector, SpatVector, bool, 0, 1, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(SpatVector, bool)#1} const&, SEXPREC**, Rcpp::internal::type_pack, Rcpp::traits::index_sequence<0, 1>) [clone .isra.0] (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==3660744== by 0x2034C04D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==3660744== by 0x2034C04D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==3660744== by 0x202CEB07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==3660744== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpET0WGb/R.INSTALL37877e7063ceb6/Rcpp/src/module.cpp:220) ==3660744== by 0x4964619: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==3660744== by 0x49B4570: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==3660744== by 0x49B7A43: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==3660744== by 0x49B435E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==3660744== ==3660744== ==3660744== HEAP SUMMARY: ==3660744== in use at exit: 169,311,596 bytes in 42,971 blocks ==3660744== total heap usage: 1,587,469 allocs, 1,544,498 frees, 2,055,928,173 bytes allocated ==3660744== ==3660744== LEAK SUMMARY: ==3660744== definitely lost: 0 bytes in 0 blocks ==3660744== indirectly lost: 0 bytes in 0 blocks ==3660744== possibly lost: 185,153 bytes in 37 blocks ==3660744== still reachable: 169,125,562 bytes in 42,931 blocks ==3660744== suppressed: 881 bytes in 3 blocks ==3660744== Rerun with --leak-check=full to see details of leaked memory ==3660744== ==3660744== For lists of detected and suppressed errors, rerun with: -s ==3660744== ERROR SUMMARY: 2393 errors from 11 contexts (suppressed: 0 from 0)