Package check result: OK Post-processing issues found: File: terra-Ex.Rout ==1133070== Memcheck, a memory error detector ==1133070== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al. ==1133070== Using Valgrind-3.25.1 and LibVEX; rerun with -h for copyright info ==1133070== Command: /home/hornik/tmp/R-d-gcc-valg/bin/exec/R --vanilla --encoding=UTF-8 ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2083B257: 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:2350) ==1133070== by 0x207307B0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207307B0: 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) ==1133070== by 0x2073098D: 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) ==1133070== by 0x2073098D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x2b0ada40 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2083B24D: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2083B24D: 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:2348) ==1133070== by 0x207307B0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207307B0: 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) ==1133070== by 0x2073098D: 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) ==1133070== by 0x2073098D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2083AFBD: 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:2277) ==1133070== by 0x207307B0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207307B0: 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) ==1133070== by 0x2073098D: 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) ==1133070== by 0x2073098D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2083B261: 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:2350) ==1133070== by 0x207307B0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207307B0: 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) ==1133070== by 0x2073098D: 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) ==1133070== by 0x2073098D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x2b0ada40 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2083B24D: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2083B24D: 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:2348) ==1133070== by 0x207307B0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207307B0: 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) ==1133070== by 0x2073098D: 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) ==1133070== by 0x2073098D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2083AFBD: 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:2277) ==1133070== by 0x207307B0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207307B0: 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) ==1133070== by 0x2073098D: 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) ==1133070== by 0x2073098D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20836661: 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:2028) ==1133070== by 0x20730E3F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20730E3F: 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) ==1133070== by 0x20730E3F: 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) ==1133070== by 0x20730E3F: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Address 0x1f9c3330 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20836657: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20836657: 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:2026) ==1133070== by 0x20730E3F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20730E3F: 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) ==1133070== by 0x20730E3F: 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) ==1133070== by 0x20730E3F: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== by 0x49B3A39: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==1133070== by 0x49B3A39: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x208363F4: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208363F4: 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:1985) ==1133070== by 0x20730E3F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20730E3F: 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) ==1133070== by 0x20730E3F: 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) ==1133070== by 0x20730E3F: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841D54: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x20841D54: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x20841D54: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x20841D54: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x20841D54: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x20841D54: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20841D54: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3368) ==1133070== by 0x209B2522: 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) ==1133070== by 0x2074368C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074368C: 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) ==1133070== by 0x2074377D: 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) ==1133070== by 0x2074377D: Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x2f4dec80 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20841CB9: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20841CB9: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3364) ==1133070== by 0x209B2522: 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) ==1133070== by 0x2074368C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074368C: 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) ==1133070== by 0x2074377D: 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) ==1133070== by 0x2074377D: Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841907: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20841907: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3351) ==1133070== by 0x209B2522: 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) ==1133070== by 0x2074368C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074368C: 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) ==1133070== by 0x2074377D: 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) ==1133070== by 0x2074377D: Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841DD6: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x20841DD6: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x20841DD6: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x20841DD6: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x20841DD6: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x20841DD6: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20841DD6: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3368) ==1133070== by 0x209B2522: 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) ==1133070== by 0x2074368C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074368C: 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) ==1133070== by 0x2074377D: 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) ==1133070== by 0x2074377D: Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x2f4dec80 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20841CB9: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20841CB9: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3364) ==1133070== by 0x209B2522: 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) ==1133070== by 0x2074368C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074368C: 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) ==1133070== by 0x2074377D: 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) ==1133070== by 0x2074377D: Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841907: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20841907: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3351) ==1133070== by 0x209B2522: 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) ==1133070== by 0x2074368C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074368C: 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) ==1133070== by 0x2074377D: 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) ==1133070== by 0x2074377D: Rcpp::CppMethodImplN, std::allocator >, bool>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2083E475: SpatVector::centroid(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3306) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x182d60a0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2083E430: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2083E430: SpatVector::centroid(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3301) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2083E122: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2083E122: SpatVector::centroid(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3288) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2083E47F: SpatVector::centroid(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3306) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x182d60a0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2083E430: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2083E430: SpatVector::centroid(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3301) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2083E122: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2083E122: SpatVector::centroid(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3288) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x208381CD: 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:1843) ==1133070== by 0x2084A2A2: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1374) ==1133070== by 0x2091B565: 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) ==1133070== by 0x2091CA04: 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) ==1133070== by 0x207649EE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207649EE: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== Address 0x2ea605a0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x208381C3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x208381C3: 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:1841) ==1133070== by 0x2084A2A2: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1374) ==1133070== by 0x2091B565: 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) ==1133070== by 0x2091CA04: 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) ==1133070== by 0x207649EE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207649EE: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20837EF9: 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:1727) ==1133070== by 0x2084A2A2: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1374) ==1133070== by 0x2091B565: 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) ==1133070== by 0x2091CA04: 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) ==1133070== by 0x207649EE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207649EE: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x208381D7: 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:1843) ==1133070== by 0x2084A2A2: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1374) ==1133070== by 0x2091B565: 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) ==1133070== by 0x2091CA04: 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) ==1133070== by 0x207649EE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207649EE: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== Address 0x2ea605a0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x208381C3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x208381C3: 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:1841) ==1133070== by 0x2084A2A2: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1374) ==1133070== by 0x2091B565: 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) ==1133070== by 0x2091CA04: 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) ==1133070== by 0x207649EE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207649EE: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20837EF9: 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:1727) ==1133070== by 0x2084A2A2: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1374) ==1133070== by 0x2091B565: 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) ==1133070== by 0x2091CA04: 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) ==1133070== by 0x207649EE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207649EE: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B06D: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x2091B565: 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) ==1133070== by 0x2091CA04: 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) ==1133070== by 0x207649EE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207649EE: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== Address 0x2df6f5a0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x2091B565: 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) ==1133070== by 0x2091CA04: 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) ==1133070== by 0x207649EE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207649EE: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x2091B565: 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) ==1133070== by 0x2091CA04: 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) ==1133070== by 0x207649EE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207649EE: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B07A: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x2091B565: 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) ==1133070== by 0x2091CA04: 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) ==1133070== by 0x207649EE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207649EE: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== Address 0x2df6f5a0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x2091B565: 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) ==1133070== by 0x2091CA04: 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) ==1133070== by 0x207649EE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207649EE: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x2091B565: 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) ==1133070== by 0x2091CA04: 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) ==1133070== by 0x207649EE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207649EE: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B087: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x2091B565: 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) ==1133070== by 0x2091CA04: 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) ==1133070== by 0x207649EE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207649EE: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== Address 0x2df6f5a0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x2091B565: 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) ==1133070== by 0x2091CA04: 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) ==1133070== by 0x207649EE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207649EE: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x2091B565: 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) ==1133070== by 0x2091CA04: 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) ==1133070== by 0x207649EE: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207649EE: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x20764B5D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x208394E6: 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:1971) ==1133070== by 0x20730C90: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20730C90: 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) ==1133070== by 0x20730C90: 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) ==1133070== by 0x20730C90: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Address 0x19691960 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x208394DC: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x208394DC: 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:1969) ==1133070== by 0x20730C90: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20730C90: 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) ==1133070== by 0x20730C90: 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) ==1133070== by 0x20730C90: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== by 0x49B3A39: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==1133070== by 0x49B3A39: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208391B3: 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:1859) ==1133070== by 0x20730C90: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20730C90: 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) ==1133070== by 0x20730C90: 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) ==1133070== by 0x20730C90: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B06D: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x207CA4A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==1133070== by 0x207CAB65: 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) ==1133070== by 0x207CCAB2: 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) ==1133070== by 0x207D03F6: 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) ==1133070== by 0x20849347: 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:1269) ==1133070== by 0x207B0ED8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==1133070== by 0x2076B294: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076B294: 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) ==1133070== by 0x2076B32D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2076B32D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== Address 0x196d9580 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x207CA4A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==1133070== by 0x207CAB65: 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) ==1133070== by 0x207CCAB2: 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) ==1133070== by 0x207D03F6: 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) ==1133070== by 0x20849347: 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:1269) ==1133070== by 0x207B0ED8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==1133070== by 0x2076B294: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076B294: 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) ==1133070== by 0x2076B32D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2076B32D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x207CA4A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==1133070== by 0x207CAB65: 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) ==1133070== by 0x207CCAB2: 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) ==1133070== by 0x207D03F6: 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) ==1133070== by 0x20849347: 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:1269) ==1133070== by 0x207B0ED8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==1133070== by 0x2076B294: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076B294: 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) ==1133070== by 0x2076B32D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2076B32D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B07A: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x207CA4A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==1133070== by 0x207CAB65: 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) ==1133070== by 0x207CCAB2: 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) ==1133070== by 0x207D03F6: 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) ==1133070== by 0x20849347: 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:1269) ==1133070== by 0x207B0ED8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==1133070== by 0x2076B294: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076B294: 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) ==1133070== by 0x2076B32D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2076B32D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== Address 0x196d9580 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x207CA4A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==1133070== by 0x207CAB65: 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) ==1133070== by 0x207CCAB2: 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) ==1133070== by 0x207D03F6: 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) ==1133070== by 0x20849347: 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:1269) ==1133070== by 0x207B0ED8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==1133070== by 0x2076B294: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076B294: 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) ==1133070== by 0x2076B32D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2076B32D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x207CA4A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==1133070== by 0x207CAB65: 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) ==1133070== by 0x207CCAB2: 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) ==1133070== by 0x207D03F6: 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) ==1133070== by 0x20849347: 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:1269) ==1133070== by 0x207B0ED8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==1133070== by 0x2076B294: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076B294: 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) ==1133070== by 0x2076B32D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2076B32D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B087: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x207CA4A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==1133070== by 0x207CAB65: 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) ==1133070== by 0x207CCAB2: 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) ==1133070== by 0x207D03F6: 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) ==1133070== by 0x20849347: 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:1269) ==1133070== by 0x207B0ED8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==1133070== by 0x2076B294: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076B294: 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) ==1133070== by 0x2076B32D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2076B32D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== Address 0x196d9580 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x207CA4A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==1133070== by 0x207CAB65: 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) ==1133070== by 0x207CCAB2: 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) ==1133070== by 0x207D03F6: 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) ==1133070== by 0x20849347: 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:1269) ==1133070== by 0x207B0ED8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==1133070== by 0x2076B294: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076B294: 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) ==1133070== by 0x2076B32D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2076B32D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x207CA4A9: split_dateline(SpatVector&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1092) ==1133070== by 0x207CAB65: 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) ==1133070== by 0x207CCAB2: 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) ==1133070== by 0x207D03F6: 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) ==1133070== by 0x20849347: 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:1269) ==1133070== by 0x207B0ED8: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1984) ==1133070== by 0x2076B294: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076B294: 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) ==1133070== by 0x2076B32D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2076B32D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841D54: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x20841D54: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x20841D54: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x20841D54: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x20841D54: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x20841D54: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20841D54: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3368) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x207B0F1D: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1985) ==1133070== by 0x2076B294: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076B294: 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) ==1133070== by 0x2076B32D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2076B32D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x1808f2c0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20841CB9: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20841CB9: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3364) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x207B0F1D: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1985) ==1133070== by 0x2076B294: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076B294: 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) ==1133070== by 0x2076B32D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2076B32D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841907: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20841907: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3351) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x207B0F1D: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1985) ==1133070== by 0x2076B294: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076B294: 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) ==1133070== by 0x2076B32D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2076B32D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841DD6: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x20841DD6: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x20841DD6: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x20841DD6: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x20841DD6: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x20841DD6: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20841DD6: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3368) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x207B0F1D: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1985) ==1133070== by 0x2076B294: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076B294: 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) ==1133070== by 0x2076B32D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2076B32D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x1808f2c0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20841CB9: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20841CB9: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3364) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x207B0F1D: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1985) ==1133070== by 0x2076B294: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076B294: 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) ==1133070== by 0x2076B32D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2076B32D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841907: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20841907: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3351) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x207B0F1D: SpatRaster::buffer(double, double, bool, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distRaster.cpp:1985) ==1133070== by 0x2076B294: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076B294: 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) ==1133070== by 0x2076B32D: call::operator()(SpatRaster*, SEXPREC**)::, SpatRaster, double, double, bool, SpatOptions&> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2076B32D: Rcpp::CppMethodImplN::operator()(SpatRaster*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20849A68: 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:1326) ==1133070== by 0x20764583: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20764583: 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) ==1133070== by 0x2076471D: 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) ==1133070== by 0x2076471D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x16d66ea0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x208499CE: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x208499CE: 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:1313) ==1133070== by 0x20764583: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20764583: 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) ==1133070== by 0x2076471D: 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) ==1133070== by 0x2076471D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208495F4: 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:1272) ==1133070== by 0x20764583: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20764583: 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) ==1133070== by 0x2076471D: 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) ==1133070== by 0x2076471D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20849A72: 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:1326) ==1133070== by 0x20764583: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20764583: 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) ==1133070== by 0x2076471D: 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) ==1133070== by 0x2076471D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x16d66ea0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x208499CE: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x208499CE: 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:1313) ==1133070== by 0x20764583: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20764583: 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) ==1133070== by 0x2076471D: 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) ==1133070== by 0x2076471D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208495F4: 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:1272) ==1133070== by 0x20764583: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20764583: 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) ==1133070== by 0x2076471D: 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) ==1133070== by 0x2076471D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20842304: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x20842304: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x20842304: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x20842304: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x20842304: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x20842304: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20842304: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3415) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Address 0x2daeeb10 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20842269: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20842269: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3409) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841EB7: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20841EB7: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3396) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084234C: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3415) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x2daeeb10 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20842269: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20842269: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3409) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841EB7: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20841EB7: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3396) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2083DEF5: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3345) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x18dd0e10 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2083DEB0: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2083DEB0: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3340) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2083DBC2: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2083DBC2: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3327) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2083DEFF: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3345) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x18dd0e10 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2083DEB0: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2083DEB0: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3340) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2083DBC2: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2083DBC2: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3327) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084E7FD: SpatVector::erase(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2983) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x2e66eb90 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084E938: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084E938: SpatVector::erase(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2981) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084E52F: SpatVector::erase(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2930) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B06D: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x2ea8a850 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B07A: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x2ea8a850 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B087: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x2ea8a850 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841D54: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x20841D54: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x20841D54: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x20841D54: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x20841D54: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x20841D54: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20841D54: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3368) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x2084C446: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2750) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x30489fd0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20841CB9: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20841CB9: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3364) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x2084C446: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2750) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841907: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20841907: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3351) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x2084C446: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2750) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841DD6: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x20841DD6: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x20841DD6: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x20841DD6: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x20841DD6: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x20841DD6: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20841DD6: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3368) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x2084C446: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2750) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x30489fd0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20841CB9: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20841CB9: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3364) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x2084C446: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2750) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841907: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20841907: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3351) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x2084C446: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2750) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084C862: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2785) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x2f687790 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084CA8E: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084CA8E: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2780) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084C40E: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2742) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084C88A: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2785) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x2f687790 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084CA8E: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084CA8E: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2780) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084C40E: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2742) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084C897: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2785) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x2f687790 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084CA8E: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084CA8E: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2780) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084C40E: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2742) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084461D: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:527) ==1133070== by 0x20845C73: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:715) ==1133070== by 0x2084616C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:652) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== Address 0x16b64210 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x208445CB: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x208445CB: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:524) ==1133070== by 0x20845C73: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:715) ==1133070== by 0x2084616C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:652) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20844388: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20844388: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:501) ==1133070== by 0x20845C73: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:715) ==1133070== by 0x2084616C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:652) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20844627: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:527) ==1133070== by 0x20845C73: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:715) ==1133070== by 0x2084616C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:652) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== Address 0x16b64210 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x208445CB: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x208445CB: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:524) ==1133070== by 0x20845C73: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:715) ==1133070== by 0x2084616C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:652) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20844388: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20844388: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:501) ==1133070== by 0x20845C73: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:715) ==1133070== by 0x2084616C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:652) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20845E99: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:722) ==1133070== by 0x2084616C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:652) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2e00e190 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20845CC2: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20845CC2: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:717) ==1133070== by 0x2084616C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:652) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20845874: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:655) ==1133070== by 0x2084616C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:652) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20845ED4: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:722) ==1133070== by 0x2084616C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:652) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2e00e190 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20845CC2: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20845CC2: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:717) ==1133070== by 0x2084616C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:652) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20845874: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:655) ==1133070== by 0x2084616C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:652) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20845EE1: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:722) ==1133070== by 0x2084616C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:652) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2e00e190 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20845CC2: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20845CC2: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:717) ==1133070== by 0x2084616C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:652) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20845874: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:655) ==1133070== by 0x2084616C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:652) ==1133070== by 0x20742C76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742C76: 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) ==1133070== by 0x20742D4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742D4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20848594: 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) ==1133070== by 0x20743D12: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20743D12: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x18c8f020 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20848517: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20848517: 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:1115) ==1133070== by 0x20743D12: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20743D12: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084834B: 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:1058) ==1133070== by 0x20743D12: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20743D12: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084859C: 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) ==1133070== by 0x20743D12: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20743D12: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x18c8f020 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20848517: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20848517: 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:1115) ==1133070== by 0x20743D12: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20743D12: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084834B: 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:1058) ==1133070== by 0x20743D12: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20743D12: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20848594: 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) ==1133070== by 0x20848048: 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:1027) ==1133070== by 0x20743D12: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20743D12: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x1687e460 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20848517: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20848517: 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:1115) ==1133070== by 0x20848048: 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:1027) ==1133070== by 0x20743D12: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20743D12: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084834B: 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:1058) ==1133070== by 0x20848048: 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:1027) ==1133070== by 0x20743D12: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20743D12: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084859C: 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) ==1133070== by 0x20848048: 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:1027) ==1133070== by 0x20743D12: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20743D12: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x1687e460 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20848517: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20848517: 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:1115) ==1133070== by 0x20848048: 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:1027) ==1133070== by 0x20743D12: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20743D12: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084834B: 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:1058) ==1133070== by 0x20848048: 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:1027) ==1133070== by 0x20743D12: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20743D12: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x20743E6D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084D303: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==1133070== by 0x2084E17D: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2705) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2b838160 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084D523: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084D523: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2846) ==1133070== by 0x2084E17D: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2705) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084CFCE: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2807) ==1133070== by 0x2084E17D: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2705) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084D30D: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==1133070== by 0x2084E17D: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2705) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2b838160 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084D523: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084D523: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2846) ==1133070== by 0x2084E17D: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2705) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084CFCE: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2807) ==1133070== by 0x2084E17D: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2705) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B06D: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x2084E25A: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2707) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2cf1ded0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x2084E25A: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2707) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x2084E25A: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2707) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B07A: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x2084E25A: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2707) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2cf1ded0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x2084E25A: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2707) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x2084E25A: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2707) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B087: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x2084E25A: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2707) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2cf1ded0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x2084E25A: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2707) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x2084E25A: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2707) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084D303: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==1133070== by 0x2084E2C1: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2710) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x1f936ce0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084D523: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084D523: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2846) ==1133070== by 0x2084E2C1: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2710) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084CFCE: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2807) ==1133070== by 0x2084E2C1: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2710) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084D30D: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==1133070== by 0x2084E2C1: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2710) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x1f936ce0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084D523: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084D523: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2846) ==1133070== by 0x2084E2C1: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2710) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084CFCE: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2807) ==1133070== by 0x2084E2C1: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2710) ==1133070== by 0x2074322F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2074322F: 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) ==1133070== by 0x2074330D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074330D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x208434FC: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:397) ==1133070== by 0x20842DEC: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:340) ==1133070== by 0x20742883: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742883: 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) ==1133070== by 0x2074291D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074291D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x168e8370 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20843399: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20843399: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:392) ==1133070== by 0x20842DEC: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:340) ==1133070== by 0x20742883: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742883: 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) ==1133070== by 0x2074291D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074291D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20842F34: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:367) ==1133070== by 0x20842DEC: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:340) ==1133070== by 0x20742883: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742883: 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) ==1133070== by 0x2074291D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074291D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20843506: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:397) ==1133070== by 0x20842DEC: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:340) ==1133070== by 0x20742883: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742883: 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) ==1133070== by 0x2074291D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074291D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x168e8370 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20843399: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20843399: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:392) ==1133070== by 0x20842DEC: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:340) ==1133070== by 0x20742883: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742883: 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) ==1133070== by 0x2074291D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074291D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20842F34: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:367) ==1133070== by 0x20842DEC: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:340) ==1133070== by 0x20742883: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742883: 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) ==1133070== by 0x2074291D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074291D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20835460: 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) ==1133070== by 0x207C5BA5: 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) ==1133070== by 0x207303C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207303C4: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x30322800 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20835591: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20835591: 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:2499) ==1133070== by 0x207C5BA5: 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) ==1133070== by 0x207303C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207303C4: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x208352FD: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208352FD: 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:2447) ==1133070== by 0x207C5BA5: 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) ==1133070== by 0x207303C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207303C4: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20835484: 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) ==1133070== by 0x207C5BA5: 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) ==1133070== by 0x207303C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207303C4: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x30322800 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20835591: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20835591: 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:2499) ==1133070== by 0x207C5BA5: 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) ==1133070== by 0x207303C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207303C4: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x208352FD: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208352FD: 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:2447) ==1133070== by 0x207C5BA5: 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) ==1133070== by 0x207303C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207303C4: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20835BA3: 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) ==1133070== by 0x207C990D: 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) ==1133070== by 0x2073011D: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2073011D: 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) ==1133070== by 0x2073011D: 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) ==1133070== by 0x2073011D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x19043690 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20835B08: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20835B08: 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:2544) ==1133070== by 0x207C990D: 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) ==1133070== by 0x2073011D: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2073011D: 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) ==1133070== by 0x2073011D: 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) ==1133070== by 0x2073011D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x208359EC: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208359EC: 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:2515) ==1133070== by 0x207C990D: 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) ==1133070== by 0x2073011D: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2073011D: 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) ==1133070== by 0x2073011D: 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) ==1133070== by 0x2073011D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20835460: 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) ==1133070== by 0x207C5A1E: 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) ==1133070== by 0x207303C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207303C4: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x30fba400 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20835591: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20835591: 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:2499) ==1133070== by 0x207C5A1E: 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) ==1133070== by 0x207303C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207303C4: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x208352FD: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208352FD: 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:2447) ==1133070== by 0x207C5A1E: 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) ==1133070== by 0x207303C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207303C4: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20835484: 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) ==1133070== by 0x207C5A1E: 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) ==1133070== by 0x207303C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207303C4: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x30fba400 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20835591: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20835591: 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:2499) ==1133070== by 0x207C5A1E: 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) ==1133070== by 0x207303C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207303C4: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x208352FD: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208352FD: 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:2447) ==1133070== by 0x207C5A1E: 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) ==1133070== by 0x207303C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207303C4: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x2073055D: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x208490A0: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1002) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x179a7270 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20848DF8: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20848DF8: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1000) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x208488E4: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208488E4: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:956) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x208490AD: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1002) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x179a7270 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20848DF8: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20848DF8: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1000) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x208488E4: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208488E4: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:956) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x208490BA: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1002) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x179a7270 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20848DF8: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20848DF8: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1000) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x208488E4: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208488E4: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:956) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B06D: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x2084BCDF: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1169) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2b345da0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x2084BCDF: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1169) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x2084BCDF: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1169) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B07A: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x2084BCDF: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1169) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2b345da0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x2084BCDF: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1169) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x2084BCDF: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1169) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B087: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x2084BCDF: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1169) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2b345da0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x2084BCDF: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1169) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x2084BCDF: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1169) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2083A51B: 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:2215) ==1133070== by 0x2084BEDC: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1172) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2e34bdb0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2083A511: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2083A511: 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:2213) ==1133070== by 0x2084BEDC: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1172) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2083A297: 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:2143) ==1133070== by 0x2084BEDC: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1172) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2083A525: 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:2215) ==1133070== by 0x2084BEDC: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1172) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2e34bdb0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2083A511: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2083A511: 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:2213) ==1133070== by 0x2084BEDC: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1172) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2083A297: 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:2143) ==1133070== by 0x2084BEDC: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1172) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084BD4B: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1185) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x3004f4a0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084BC11: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084BC11: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1161) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084BA9C: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084BA9C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1138) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084BD55: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1185) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x3004f4a0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084BC11: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084BC11: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1161) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084BA9C: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084BA9C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1138) ==1133070== by 0x207433BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x207433BC: 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) ==1133070== by 0x2074348D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x2074348D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084D303: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x178df6a0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084D523: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084D523: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2846) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084CFCE: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2807) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084D30D: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x178df6a0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084D523: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084D523: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2846) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084CFCE: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2807) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x208340BD: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x208340BD: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x208340BD: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x208340BD: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x208340BD: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x208340BD: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x208340BD: SpatVector::wkt[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:75) ==1133070== by 0x206AB498: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x206AB498: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1133070== by 0x206AB498: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x206AB498: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== by 0x49B3A39: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==1133070== by 0x49B3A39: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==1133070== Address 0x1a9392b0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2083407C: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2083407C: SpatVector::wkt[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:73) ==1133070== by 0x206AB498: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x206AB498: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1133070== by 0x206AB498: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x206AB498: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== by 0x49B3A39: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==1133070== by 0x49B3A39: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20833E5B: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20833E5B: SpatVector::wkt[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:63) ==1133070== by 0x206AB498: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x206AB498: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1133070== by 0x206AB498: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x206AB498: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841D54: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x20841D54: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x20841D54: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x20841D54: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x20841D54: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x20841D54: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20841D54: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3368) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x20840616: SpatVector::gaps() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2999) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x1f3f4d00 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20841CB9: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20841CB9: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3364) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x20840616: SpatVector::gaps() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2999) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841907: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20841907: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3351) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x20840616: SpatVector::gaps() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2999) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841DD6: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x20841DD6: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x20841DD6: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x20841DD6: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x20841DD6: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x20841DD6: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20841DD6: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3368) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x20840616: SpatVector::gaps() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2999) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x1f3f4d00 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20841CB9: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20841CB9: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3364) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x20840616: SpatVector::gaps() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2999) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841907: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20841907: SpatVector::unaryunion() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3351) ==1133070== by 0x209B3689: SpatVector::aggregate(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/vector_methods.cpp:175) ==1133070== by 0x20840616: SpatVector::gaps() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2999) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20835F8C: SpatVector::geos_isvalid() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:187) ==1133070== by 0x206C8B84: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x206C8B84: call_impl >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1133070== by 0x206C8B84: call >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x206C8B84: Rcpp::CppMethodImplN >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Address 0x18cfab80 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20835EB1: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20835EB1: SpatVector::geos_isvalid() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:185) ==1133070== by 0x206C8B84: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x206C8B84: call_impl >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1133070== by 0x206C8B84: call >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x206C8B84: Rcpp::CppMethodImplN >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== by 0x49B3A39: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==1133070== by 0x49B3A39: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20835D40: geos_init2 (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:223) ==1133070== by 0x20835D40: SpatVector::geos_isvalid() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:177) ==1133070== by 0x206C8B84: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x206C8B84: call_impl >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1133070== by 0x206C8B84: call >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x206C8B84: Rcpp::CppMethodImplN >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20834B64: SpatVector::geos_isvalid_msg[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:209) ==1133070== by 0x206AB498: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x206AB498: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1133070== by 0x206AB498: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x206AB498: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Address 0x2cfdc030 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20834AB9: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20834AB9: SpatVector::geos_isvalid_msg[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:207) ==1133070== by 0x206AB498: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x206AB498: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1133070== by 0x206AB498: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x206AB498: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== by 0x49B3A39: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==1133070== by 0x49B3A39: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2083468D: geos_init2 (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:223) ==1133070== by 0x2083468D: SpatVector::geos_isvalid_msg[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:190) ==1133070== by 0x206AB498: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x206AB498: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1133070== by 0x206AB498: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x206AB498: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20842C76: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x20842C76: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x20842C76: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x20842C76: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x20842C76: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x20842C76: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20842C76: SpatVector::make_valid2() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:247) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Address 0x1fd82ab0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20842BE3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20842BE3: SpatVector::make_valid2() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:238) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20842927: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20842927: SpatVector::make_valid2() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:218) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B06D: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x208B2C96: 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) ==1133070== by 0x2076C14B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076C14B: 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) ==1133070== by 0x2076C23D: 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) ==1133070== by 0x2076C23D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C4CC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2c650a50 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x208B2C96: 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) ==1133070== by 0x2076C14B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076C14B: 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) ==1133070== by 0x2076C23D: 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) ==1133070== by 0x2076C23D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C4CC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x208B2C96: 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) ==1133070== by 0x2076C14B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076C14B: 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) ==1133070== by 0x2076C23D: 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) ==1133070== by 0x2076C23D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C4CC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B07A: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x208B2C96: 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) ==1133070== by 0x2076C14B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076C14B: 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) ==1133070== by 0x2076C23D: 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) ==1133070== by 0x2076C23D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C4CC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2c650a50 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x208B2C96: 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) ==1133070== by 0x2076C14B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076C14B: 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) ==1133070== by 0x2076C23D: 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) ==1133070== by 0x2076C23D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C4CC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x208B2C96: 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) ==1133070== by 0x2076C14B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076C14B: 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) ==1133070== by 0x2076C23D: 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) ==1133070== by 0x2076C23D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C4CC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B087: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x208B2C96: 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) ==1133070== by 0x2076C14B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076C14B: 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) ==1133070== by 0x2076C23D: 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) ==1133070== by 0x2076C23D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C4CC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2c650a50 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x208B2C96: 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) ==1133070== by 0x2076C14B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076C14B: 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) ==1133070== by 0x2076C23D: 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) ==1133070== by 0x2076C23D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C4CC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x208B2C96: 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) ==1133070== by 0x2076C14B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x2076C14B: 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) ==1133070== by 0x2076C23D: 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) ==1133070== by 0x2076C23D: Rcpp::CppMethodImplN, std::allocator >, SpatOptions&>::operator()(SpatRasterCollection*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C4CC7: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x208434FC: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:397) ==1133070== by 0x20995363: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x7ec5790 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20843399: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20843399: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:392) ==1133070== by 0x20995363: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20842F34: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:367) ==1133070== by 0x20995363: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20843506: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:397) ==1133070== by 0x20995363: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x7ec5790 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20843399: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20843399: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:392) ==1133070== by 0x20995363: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20842F34: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:367) ==1133070== by 0x20995363: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084D303: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==1133070== by 0x20995422: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x19030620 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084D523: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084D523: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2846) ==1133070== by 0x20995422: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084CFCE: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2807) ==1133070== by 0x20995422: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084D30D: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2851) ==1133070== by 0x20995422: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x19030620 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084D523: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084D523: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2846) ==1133070== by 0x20995422: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084CFCE: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2807) ==1133070== by 0x20995422: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20843506: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:397) ==1133070== by 0x209954BF: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1361) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x2e474f50 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20843399: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20843399: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:392) ==1133070== by 0x209954BF: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1361) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20842F34: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:367) ==1133070== by 0x209954BF: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1361) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B06D: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x208DA8F6: 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) ==1133070== by 0x20772159: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20772159: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x17108870 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x208DA8F6: 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) ==1133070== by 0x20772159: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20772159: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x208DA8F6: 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) ==1133070== by 0x20772159: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20772159: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B07A: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x208DA8F6: 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) ==1133070== by 0x20772159: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20772159: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x17108870 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x208DA8F6: 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) ==1133070== by 0x20772159: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20772159: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x208DA8F6: 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) ==1133070== by 0x20772159: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20772159: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B087: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x208DA8F6: 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) ==1133070== by 0x20772159: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20772159: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x17108870 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x208DA8F6: 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) ==1133070== by 0x20772159: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20772159: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x208DA8F6: 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) ==1133070== by 0x20772159: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20772159: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x207722ED: 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) ==1133070== by 0x206C5087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x208381CD: 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:1843) ==1133070== by 0x20730A68: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20730A68: 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) ==1133070== by 0x20730BFD: 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) ==1133070== by 0x20730BFD: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x1efaaf20 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x208381C3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x208381C3: 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:1841) ==1133070== by 0x20730A68: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20730A68: 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) ==1133070== by 0x20730BFD: 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) ==1133070== by 0x20730BFD: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20837EF9: 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:1727) ==1133070== by 0x20730A68: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20730A68: 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) ==1133070== by 0x20730BFD: 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) ==1133070== by 0x20730BFD: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x208381D7: 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:1843) ==1133070== by 0x20730A68: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20730A68: 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) ==1133070== by 0x20730BFD: 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) ==1133070== by 0x20730BFD: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x1efaaf20 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x208381C3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x208381C3: 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:1841) ==1133070== by 0x20730A68: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20730A68: 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) ==1133070== by 0x20730BFD: 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) ==1133070== by 0x20730BFD: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20837EF9: 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:1727) ==1133070== by 0x20730A68: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20730A68: 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) ==1133070== by 0x20730BFD: 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) ==1133070== by 0x20730BFD: 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) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084461D: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:527) ==1133070== by 0x20844B18: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:635) ==1133070== by 0x20845097: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:571) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== Address 0x308f51a0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x208445CB: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x208445CB: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:524) ==1133070== by 0x20844B18: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:635) ==1133070== by 0x20845097: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:571) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20844388: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20844388: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:501) ==1133070== by 0x20844B18: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:635) ==1133070== by 0x20845097: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:571) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20844627: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:527) ==1133070== by 0x20844B18: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:635) ==1133070== by 0x20845097: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:571) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== Address 0x308f51a0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x208445CB: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x208445CB: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:524) ==1133070== by 0x20844B18: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:635) ==1133070== by 0x20845097: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:571) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20844388: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20844388: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:501) ==1133070== by 0x20844B18: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:635) ==1133070== by 0x20845097: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:571) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20844D1F: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:642) ==1133070== by 0x20845097: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:571) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x1a9b71c0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20844B3B: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20844B3B: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:637) ==1133070== by 0x20845097: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:571) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20844848: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:574) ==1133070== by 0x20845097: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:571) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20844D5A: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:642) ==1133070== by 0x20845097: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:571) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x1a9b71c0 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20844B3B: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20844B3B: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:637) ==1133070== by 0x20845097: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:571) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20844848: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:574) ==1133070== by 0x20845097: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:571) ==1133070== by 0x20741B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741B3C: 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) ==1133070== by 0x20741BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20846EBB: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x20846EBB: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x20846EBB: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x20846EBB: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x20846EBB: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x20846EBB: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20846EBB: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:564) ==1133070== by 0x20741F0B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741F0B: 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) ==1133070== by 0x20741F9D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741F9D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Address 0x1781ba50 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20846E25: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20846E25: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:561) ==1133070== by 0x20741F0B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741F0B: 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) ==1133070== by 0x20741F9D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741F9D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x208469F0: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208469F0: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:533) ==1133070== by 0x20741F0B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741F0B: 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) ==1133070== by 0x20741F9D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741F9D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20846CC6: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x20846CC6: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x20846CC6: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x20846CC6: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x20846CC6: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x20846CC6: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20846CC6: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:564) ==1133070== by 0x20741F0B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741F0B: 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) ==1133070== by 0x20741F9D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741F9D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Address 0x1781ba50 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20846E25: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20846E25: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:561) ==1133070== by 0x20741F0B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741F0B: 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) ==1133070== by 0x20741F9D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741F9D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x208469F0: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208469F0: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:533) ==1133070== by 0x20741F0B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741F0B: 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) ==1133070== by 0x20741F9D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741F9D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x208439BB: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x208439BB: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x208439BB: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x208439BB: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x208439BB: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x208439BB: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x208439BB: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:431) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Address 0x2d918180 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20843925: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20843925: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:428) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x208436B7: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208436B7: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:405) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20843A46: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x20843A46: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x20843A46: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x20843A46: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x20843A46: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x20843A46: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20843A46: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:431) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Address 0x2d918180 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20843925: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20843925: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:428) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x208436B7: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208436B7: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:405) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x208412DD: SpatVector::polygonize() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:857) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x2a67c550 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x20841277: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x20841277: SpatVector::polygonize() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:850) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20841167: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x20841167: SpatVector::polygonize() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:838) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x208474BD: SpatVector::snap(double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:900) ==1133070== by 0x20741A48: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741A48: 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) ==1133070== by 0x20741AED: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741AED: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Address 0x19691960 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x208473F6: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x208473F6: SpatVector::snap(double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:892) ==1133070== by 0x20741A48: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741A48: 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) ==1133070== by 0x20741AED: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741AED: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084706C: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084706C: SpatVector::snap(double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:869) ==1133070== by 0x20741A48: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741A48: 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) ==1133070== by 0x20741AED: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741AED: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B06D: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x2084DEFE: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2566) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x807c200 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x2084DEFE: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2566) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x2084DEFE: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2566) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B07A: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x2084DEFE: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2566) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x807c200 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x2084DEFE: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2566) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x2084DEFE: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2566) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FE21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x2084FE21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x2084FE21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x2084FE21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x2084FE21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x2084FE21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x2084B087: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1133070== by 0x2084DEFE: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2566) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== Address 0x807c200 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x2084A986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x2084A986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1133070== by 0x2084DEFE: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2566) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x2084FBC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x2084A1F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1133070== by 0x2084DEFE: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2566) ==1133070== by 0x20742B00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20742B00: 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) ==1133070== by 0x20742BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20742BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== ==1133070== ==1133070== More than 100 errors detected. Subsequent errors ==1133070== will still be recorded, but in less detail than before. ==1133070== Invalid read of size 8 ==1133070== at 0x2350A51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x20842844: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1133070== by 0x20842844: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1133070== by 0x20842844: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1133070== by 0x20842844: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1133070== by 0x20842844: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1133070== by 0x20842844: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1133070== by 0x20842844: SpatVector::clearance() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3443) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Address 0x1680ce00 is 1,072 bytes inside a block of size 1,120 free'd ==1133070== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1133070== by 0x208427A9: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1133070== by 0x208427A9: SpatVector::clearance() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3437) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1133070== Block was alloc'd at ==1133070== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1133070== by 0x23515E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1133070== by 0x208423E7: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1133070== by 0x208423E7: SpatVector::clearance() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3424) ==1133070== by 0x20741976: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1133070== by 0x20741976: 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) ==1133070== by 0x20741A05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1133070== by 0x20741A05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1133070== by 0x206C5807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1133070== by 0x1F4A35E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1133070== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1133070== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1133070== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1133070== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1133070== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1133070== ==1133070== ==1133070== HEAP SUMMARY: ==1133070== in use at exit: 169,433,404 bytes in 57,375 blocks ==1133070== total heap usage: 10,153,948 allocs, 10,096,573 frees, 5,540,647,688 bytes allocated ==1133070== ==1133070== LEAK SUMMARY: ==1133070== definitely lost: 161,113 bytes in 34 blocks ==1133070== indirectly lost: 328 bytes in 4 blocks ==1133070== possibly lost: 366,117 bytes in 73 blocks ==1133070== still reachable: 168,904,965 bytes in 57,261 blocks ==1133070== suppressed: 881 bytes in 3 blocks ==1133070== Rerun with --leak-check=full to see details of leaked memory ==1133070== ==1133070== For lists of detected and suppressed errors, rerun with: -s ==1133070== ERROR SUMMARY: 89662 errors from 101 contexts (suppressed: 0 from 0) File: tests/tinytest.Rout ==1137181== Memcheck, a memory error detector ==1137181== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al. ==1137181== Using Valgrind-3.25.1 and LibVEX; rerun with -h for copyright info ==1137181== Command: /home/hornik/tmp/R-d-gcc-valg/bin/exec/R -f tinytest.R --restore --save --no-readline --vanilla ==1137181== ==1137181== at 0x2311251C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x20457E21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1137181== by 0x20457E21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1137181== by 0x20457E21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1137181== by 0x20457E21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1137181== by 0x20457E21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1137181== by 0x20457E21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1137181== by 0x204510A0: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1002) ==1137181== by 0x204EAC72: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==1137181== by 0x203E8694: 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) ==1137181== by 0x2034740A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034740A: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x202CD087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== Address 0x169c0ae0 is 1,072 bytes inside a block of size 1,120 free'd ==1137181== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1137181== by 0x20450DF8: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1137181== by 0x20450DF8: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1000) ==1137181== by 0x204EAC72: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==1137181== by 0x203E8694: 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) ==1137181== by 0x2034740A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034740A: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x202CD087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== Block was alloc'd at ==1137181== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1137181== by 0x2311DE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x204508E4: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1137181== by 0x204508E4: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:956) ==1137181== by 0x204EAC72: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==1137181== by 0x203E8694: 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) ==1137181== by 0x2034740A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034740A: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x202CD087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== ==1137181== Invalid read of size 8 ==1137181== at 0x2311251C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x20457E21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1137181== by 0x20457E21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1137181== by 0x20457E21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1137181== by 0x20457E21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1137181== by 0x20457E21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1137181== by 0x20457E21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1137181== by 0x204510AD: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1002) ==1137181== by 0x204EAC72: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==1137181== by 0x203E8694: 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) ==1137181== by 0x2034740A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034740A: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x202CD087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== Address 0x169c0ae0 is 1,072 bytes inside a block of size 1,120 free'd ==1137181== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1137181== by 0x20450DF8: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1137181== by 0x20450DF8: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1000) ==1137181== by 0x204EAC72: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==1137181== by 0x203E8694: 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) ==1137181== by 0x2034740A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034740A: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x202CD087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== Block was alloc'd at ==1137181== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1137181== by 0x2311DE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x204508E4: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1137181== by 0x204508E4: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:956) ==1137181== by 0x204EAC72: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==1137181== by 0x203E8694: 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) ==1137181== by 0x2034740A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034740A: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x202CD087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== ==1137181== Invalid read of size 8 ==1137181== at 0x2311251C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x20457E21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1137181== by 0x20457E21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1137181== by 0x20457E21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1137181== by 0x20457E21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1137181== by 0x20457E21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1137181== by 0x20457E21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1137181== by 0x204510BA: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1002) ==1137181== by 0x204EAC72: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==1137181== by 0x203E8694: 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) ==1137181== by 0x2034740A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034740A: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x202CD087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== Address 0x169c0ae0 is 1,072 bytes inside a block of size 1,120 free'd ==1137181== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1137181== by 0x20450DF8: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1137181== by 0x20450DF8: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1000) ==1137181== by 0x204EAC72: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==1137181== by 0x203E8694: 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) ==1137181== by 0x2034740A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034740A: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x202CD087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== Block was alloc'd at ==1137181== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1137181== by 0x2311DE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x204508E4: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1137181== by 0x204508E4: SpatVector::crop(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:956) ==1137181== by 0x204EAC72: SpatRaster::rasterizeCellsExact(std::vector >&, std::vector >&, SpatVector&, SpatOptions&) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/rasterize.cpp:953) ==1137181== by 0x203E8694: 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) ==1137181== by 0x2034740A: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034740A: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x2034757D: 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) ==1137181== by 0x202CD087: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== ==1137181== at 0x2311251C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x20457E21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1137181== by 0x20457E21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1137181== by 0x20457E21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1137181== by 0x20457E21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1137181== by 0x20457E21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1137181== by 0x20457E21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1137181== by 0x20445EF5: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3345) ==1137181== by 0x20349B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x20349B3C: 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) ==1137181== by 0x20349BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x20349BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== Address 0x1f69c840 is 1,072 bytes inside a block of size 1,120 free'd ==1137181== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1137181== by 0x20445EB0: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1137181== by 0x20445EB0: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3340) ==1137181== by 0x20349B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x20349B3C: 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) ==1137181== by 0x20349BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x20349BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1137181== Block was alloc'd at ==1137181== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1137181== by 0x2311DE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x20445BC2: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1137181== by 0x20445BC2: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3327) ==1137181== by 0x20349B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x20349B3C: 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) ==1137181== by 0x20349BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x20349BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== ==1137181== Invalid read of size 8 ==1137181== at 0x2311251C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x20457E21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1137181== by 0x20457E21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1137181== by 0x20457E21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1137181== by 0x20457E21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1137181== by 0x20457E21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1137181== by 0x20457E21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1137181== by 0x20445EFF: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3345) ==1137181== by 0x20349B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x20349B3C: 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) ==1137181== by 0x20349BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x20349BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== Address 0x1f69c840 is 1,072 bytes inside a block of size 1,120 free'd ==1137181== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1137181== by 0x20445EB0: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1137181== by 0x20445EB0: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3340) ==1137181== by 0x20349B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x20349B3C: 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) ==1137181== by 0x20349BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x20349BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1137181== Block was alloc'd at ==1137181== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1137181== by 0x2311DE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x20445BC2: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1137181== by 0x20445BC2: SpatVector::point_on_surface(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3327) ==1137181== by 0x20349B3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x20349B3C: 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) ==1137181== by 0x20349BDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x20349BDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== ==1137181== at 0x2311251C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x204447C6: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1137181== by 0x204447C6: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1137181== by 0x204447C6: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1137181== by 0x204447C6: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1137181== by 0x204447C6: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1137181== by 0x204447C6: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1137181== by 0x204447C6: SpatVector::wkb_raw() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:111) ==1137181== by 0x2037DAC0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2037DAC0: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1137181== by 0x2037DAC0: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x2037DAC0: Rcpp::CppMethodImplN >, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1137181== by 0x49B3A39: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==1137181== by 0x49B3A39: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==1137181== Address 0x1f729fe0 is 1,072 bytes inside a block of size 1,120 free'd ==1137181== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1137181== by 0x20444781: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1137181== by 0x20444781: SpatVector::wkb_raw() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:109) ==1137181== by 0x2037DAC0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2037DAC0: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1137181== by 0x2037DAC0: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x2037DAC0: Rcpp::CppMethodImplN >, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1137181== by 0x49B3A39: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==1137181== by 0x49B3A39: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==1137181== Block was alloc'd at ==1137181== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1137181== by 0x2311DE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x2044457E: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1137181== by 0x2044457E: SpatVector::wkb_raw() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:98) ==1137181== by 0x2037DAC0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2037DAC0: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1137181== by 0x2037DAC0: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x2037DAC0: Rcpp::CppMethodImplN >, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1137181== ==1137181== at 0x2311251C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x2043C605: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1137181== by 0x2043C605: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1137181== by 0x2043C605: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1137181== by 0x2043C605: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1137181== by 0x2043C605: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1137181== by 0x2043C605: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1137181== by 0x2043C605: SpatVector::hex[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:127) ==1137181== by 0x202B3498: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x202B3498: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1137181== by 0x202B3498: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x202B3498: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1137181== by 0x49B3A39: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==1137181== by 0x49B3A39: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==1137181== Address 0x172896d0 is 1,072 bytes inside a block of size 1,120 free'd ==1137181== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1137181== by 0x2043C5C9: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1137181== by 0x2043C5C9: SpatVector::hex[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:125) ==1137181== by 0x202B3498: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x202B3498: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1137181== by 0x202B3498: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x202B3498: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1137181== by 0x49B3A39: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==1137181== by 0x49B3A39: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==1137181== Block was alloc'd at ==1137181== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1137181== by 0x2311DE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x2043C44B: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1137181== by 0x2043C44B: SpatVector::hex[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:114) ==1137181== by 0x202B3498: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x202B3498: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1137181== by 0x202B3498: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x202B3498: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1137181== ==1137181== at 0x2311251C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x20457E21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1137181== by 0x20457E21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1137181== by 0x20457E21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1137181== by 0x20457E21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1137181== by 0x20457E21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1137181== by 0x20457E21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1137181== by 0x204401CD: 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:1843) ==1137181== by 0x204522A2: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1374) ==1137181== by 0x2034AC76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034AC76: 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) ==1137181== by 0x2034AD4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x2034AD4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== Address 0x30295e90 is 1,072 bytes inside a block of size 1,120 free'd ==1137181== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1137181== by 0x204401C3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1137181== by 0x204401C3: 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:1841) ==1137181== by 0x204522A2: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1374) ==1137181== by 0x2034AC76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034AC76: 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) ==1137181== by 0x2034AD4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x2034AD4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== Block was alloc'd at ==1137181== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1137181== by 0x2311DE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x20457BC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1137181== by 0x2043FEF9: 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:1727) ==1137181== by 0x204522A2: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1374) ==1137181== by 0x2034AC76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034AC76: 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) ==1137181== by 0x2034AD4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x2034AD4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== ==1137181== Invalid read of size 8 ==1137181== at 0x2311251C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x20457E21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1137181== by 0x20457E21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1137181== by 0x20457E21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1137181== by 0x20457E21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1137181== by 0x20457E21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1137181== by 0x20457E21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1137181== by 0x204401D7: 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:1843) ==1137181== by 0x204522A2: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1374) ==1137181== by 0x2034AC76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034AC76: 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) ==1137181== by 0x2034AD4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x2034AD4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== Address 0x30295e90 is 1,072 bytes inside a block of size 1,120 free'd ==1137181== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1137181== by 0x204401C3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1137181== by 0x204401C3: 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:1841) ==1137181== by 0x204522A2: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1374) ==1137181== by 0x2034AC76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034AC76: 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) ==1137181== by 0x2034AD4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x2034AD4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== Block was alloc'd at ==1137181== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1137181== by 0x2311DE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x20457BC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1137181== by 0x2043FEF9: 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:1727) ==1137181== by 0x204522A2: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1374) ==1137181== by 0x2034AC76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034AC76: 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) ==1137181== by 0x2034AD4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x2034AD4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== ==1137181== Invalid read of size 8 ==1137181== at 0x2311251C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x20457E21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1137181== by 0x20457E21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1137181== by 0x20457E21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1137181== by 0x20457E21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1137181== by 0x20457E21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1137181== by 0x20457E21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1137181== by 0x2045307A: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1137181== by 0x2034AC76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034AC76: 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) ==1137181== by 0x2034AD4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x2034AD4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== Address 0x30c1d790 is 1,072 bytes inside a block of size 1,120 free'd ==1137181== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1137181== by 0x20452986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1137181== by 0x20452986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1137181== by 0x2034AC76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034AC76: 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) ==1137181== by 0x2034AD4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x2034AD4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1137181== Block was alloc'd at ==1137181== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1137181== by 0x2311DE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x20457BC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1137181== by 0x204521F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1137181== by 0x2034AC76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034AC76: 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) ==1137181== by 0x2034AD4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x2034AD4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== ==1137181== Invalid read of size 8 ==1137181== at 0x2311251C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x20457E21: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1137181== by 0x20457E21: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1137181== by 0x20457E21: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1137181== by 0x20457E21: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1137181== by 0x20457E21: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1137181== by 0x20457E21: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1137181== by 0x20453087: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1481) ==1137181== by 0x2034AC76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034AC76: 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) ==1137181== by 0x2034AD4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x2034AD4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== Address 0x30c1d790 is 1,072 bytes inside a block of size 1,120 free'd ==1137181== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1137181== by 0x20452986: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1137181== by 0x20452986: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1431) ==1137181== by 0x2034AC76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034AC76: 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) ==1137181== by 0x2034AD4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x2034AD4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== by 0x49B585D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1137181== by 0x49B6618: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1137181== Block was alloc'd at ==1137181== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1137181== by 0x2311DE13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1137181== by 0x20457BC5: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1137181== by 0x204521F4: SpatVector::intersect(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1365) ==1137181== by 0x2034AC76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1137181== by 0x2034AC76: 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) ==1137181== by 0x2034AD4D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1137181== by 0x2034AD4D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1137181== by 0x202CD807: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1137181== by 0x1F0AB5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYRjzr1/R.INSTALL1100db270635e9/Rcpp/src/module.cpp:220) ==1137181== by 0x49645D9: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1137181== by 0x49B3EF0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1137181== by 0x49B73C3: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1137181== by 0x49B3CDE: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1137181== ==1137181== ==1137181== HEAP SUMMARY: ==1137181== in use at exit: 169,299,724 bytes in 43,471 blocks ==1137181== total heap usage: 1,587,001 allocs, 1,543,530 frees, 2,053,501,548 bytes allocated ==1137181== ==1137181== LEAK SUMMARY: ==1137181== definitely lost: 4,112 bytes in 2 blocks ==1137181== indirectly lost: 538 bytes in 512 blocks ==1137181== possibly lost: 185,153 bytes in 37 blocks ==1137181== still reachable: 169,109,040 bytes in 42,917 blocks ==1137181== suppressed: 881 bytes in 3 blocks ==1137181== Rerun with --leak-check=full to see details of leaked memory ==1137181== ==1137181== For lists of detected and suppressed errors, rerun with: -s ==1137181== ERROR SUMMARY: 2393 errors from 11 contexts (suppressed: 0 from 0)