Package check result: OK Post-processing issues found: File: terra-Ex.Rout ==1181046== Memcheck, a memory error detector ==1181046== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al. ==1181046== Using Valgrind-3.25.1 and LibVEX; rerun with -h for copyright info ==1181046== Command: /home/hornik/tmp/R-d-gcc-valg/bin/exec/R --vanilla --encoding=UTF-8 ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20843AC4: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20843AC4: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20843AC4: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20843AC4: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20843AC4: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20843AC4: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20843AC4: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3443) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Address 0x2c4e44d0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20843A29: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20843A29: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3437) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20843697: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20843697: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3424) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20843B0C: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3443) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Address 0x2c4e44d0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20843A29: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20843A29: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3437) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20843697: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20843697: SpatVector::width() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3424) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x208504BD: SpatVector::erase(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3003) ==1181046== by 0x20742F3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742F3C: 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) ==1181046== by 0x20742FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Address 0x18e7aee0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x208505F8: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x208505F8: SpatVector::erase(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:3001) ==1181046== by 0x20742F3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742F3C: 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) ==1181046== by 0x20742FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x208501EF: SpatVector::erase(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2950) ==1181046== by 0x20742F3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742F3C: 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) ==1181046== by 0x20742FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084E522: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2805) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Address 0x2d363d80 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084E73A: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084E73A: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2800) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084E0CE: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2762) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084E54A: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2805) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Address 0x2d363d80 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084E73A: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084E73A: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2800) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084E0CE: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2762) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084E557: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2805) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Address 0x2d363d80 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084E73A: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084E73A: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2800) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084E0CE: SpatVector::erase_agg(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2762) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20845EDD: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:532) ==1181046== by 0x20847533: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:720) ==1181046== by 0x20847A2C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==1181046== by 0x20744076: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20744076: 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) ==1181046== by 0x2074414D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074414D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== Address 0x311726d0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20845E8B: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20845E8B: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:529) ==1181046== by 0x20847533: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:720) ==1181046== by 0x20847A2C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==1181046== by 0x20744076: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20744076: 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) ==1181046== by 0x2074414D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074414D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20845C48: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20845C48: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:506) ==1181046== by 0x20847533: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:720) ==1181046== by 0x20847A2C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==1181046== by 0x20744076: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20744076: 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) ==1181046== by 0x2074414D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074414D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20845EE7: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:532) ==1181046== by 0x20847533: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:720) ==1181046== by 0x20847A2C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==1181046== by 0x20744076: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20744076: 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) ==1181046== by 0x2074414D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074414D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== Address 0x311726d0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20845E8B: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20845E8B: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:529) ==1181046== by 0x20847533: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:720) ==1181046== by 0x20847A2C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==1181046== by 0x20744076: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20744076: 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) ==1181046== by 0x2074414D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074414D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20845C48: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20845C48: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:506) ==1181046== by 0x20847533: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:720) ==1181046== by 0x20847A2C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==1181046== by 0x20744076: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20744076: 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) ==1181046== by 0x2074414D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074414D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20847759: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:727) ==1181046== by 0x20847A2C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==1181046== by 0x20744076: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20744076: 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) ==1181046== by 0x2074414D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074414D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x2d975870 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20847582: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20847582: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:722) ==1181046== by 0x20847A2C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==1181046== by 0x20744076: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20744076: 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) ==1181046== by 0x2074414D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074414D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20847134: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:660) ==1181046== by 0x20847A2C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==1181046== by 0x20744076: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20744076: 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) ==1181046== by 0x2074414D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074414D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20847794: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:727) ==1181046== by 0x20847A2C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==1181046== by 0x20744076: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20744076: 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) ==1181046== by 0x2074414D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074414D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x2d975870 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20847582: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20847582: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:722) ==1181046== by 0x20847A2C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==1181046== by 0x20744076: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20744076: 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) ==1181046== by 0x2074414D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074414D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20847134: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:660) ==1181046== by 0x20847A2C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==1181046== by 0x20744076: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20744076: 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) ==1181046== by 0x2074414D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074414D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x208477A1: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:727) ==1181046== by 0x20847A2C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==1181046== by 0x20744076: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20744076: 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) ==1181046== by 0x2074414D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074414D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x2d975870 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20847582: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20847582: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:722) ==1181046== by 0x20847A2C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==1181046== by 0x20744076: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20744076: 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) ==1181046== by 0x2074414D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074414D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20847134: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:660) ==1181046== by 0x20847A2C: SpatVector::shared_paths(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:657) ==1181046== by 0x20744076: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20744076: 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) ==1181046== by 0x2074414D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074414D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20849E54: 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:1131) ==1181046== by 0x20745112: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20745112: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Address 0x17902140 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20849DD7: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20849DD7: 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:1126) ==1181046== by 0x20745112: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20745112: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20849C0B: 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:1069) ==1181046== by 0x20745112: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20745112: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20849E5C: 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:1131) ==1181046== by 0x20745112: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20745112: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Address 0x17902140 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20849DD7: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20849DD7: 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:1126) ==1181046== by 0x20745112: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20745112: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20849C0B: 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:1069) ==1181046== by 0x20745112: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20745112: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20849E54: 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:1131) ==1181046== by 0x20849908: 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:1038) ==1181046== by 0x20745112: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20745112: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x174c70e0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20849DD7: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20849DD7: 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:1126) ==1181046== by 0x20849908: 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:1038) ==1181046== by 0x20745112: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20745112: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20849C0B: 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:1069) ==1181046== by 0x20849908: 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:1038) ==1181046== by 0x20745112: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20745112: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20849E5C: 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:1131) ==1181046== by 0x20849908: 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:1038) ==1181046== by 0x20745112: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20745112: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x174c70e0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20849DD7: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20849DD7: 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:1126) ==1181046== by 0x20849908: 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:1038) ==1181046== by 0x20745112: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20745112: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20849C0B: 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:1069) ==1181046== by 0x20849908: 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:1038) ==1181046== by 0x20745112: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20745112: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x2074526D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084EFC3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2871) ==1181046== by 0x2084FE3D: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2725) ==1181046== by 0x2074462F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074462F: 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) ==1181046== by 0x2074470D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074470D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x1eeda650 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084F1E3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084F1E3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2866) ==1181046== by 0x2084FE3D: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2725) ==1181046== by 0x2074462F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074462F: 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) ==1181046== by 0x2074470D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074470D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084EC8E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2827) ==1181046== by 0x2084FE3D: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2725) ==1181046== by 0x2074462F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074462F: 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) ==1181046== by 0x2074470D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074470D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084EFCD: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2871) ==1181046== by 0x2084FE3D: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2725) ==1181046== by 0x2074462F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074462F: 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) ==1181046== by 0x2074470D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074470D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x1eeda650 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084F1E3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084F1E3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2866) ==1181046== by 0x2084FE3D: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2725) ==1181046== by 0x2074462F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074462F: 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) ==1181046== by 0x2074470D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074470D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084EC8E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2827) ==1181046== by 0x2084FE3D: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2725) ==1181046== by 0x2074462F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074462F: 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) ==1181046== by 0x2074470D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074470D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084EFC3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2871) ==1181046== by 0x2084FF81: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2730) ==1181046== by 0x2074462F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074462F: 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) ==1181046== by 0x2074470D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074470D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x2a7fc1c0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084F1E3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084F1E3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2866) ==1181046== by 0x2084FF81: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2730) ==1181046== by 0x2074462F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074462F: 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) ==1181046== by 0x2074470D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074470D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084EC8E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2827) ==1181046== by 0x2084FF81: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2730) ==1181046== by 0x2074462F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074462F: 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) ==1181046== by 0x2074470D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074470D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084EFCD: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2871) ==1181046== by 0x2084FF81: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2730) ==1181046== by 0x2074462F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074462F: 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) ==1181046== by 0x2074470D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074470D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x2a7fc1c0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084F1E3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084F1E3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2866) ==1181046== by 0x2084FF81: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2730) ==1181046== by 0x2074462F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074462F: 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) ==1181046== by 0x2074470D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074470D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084EC8E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2827) ==1181046== by 0x2084FF81: SpatVector::cover(SpatVector, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2730) ==1181046== by 0x2074462F: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074462F: 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) ==1181046== by 0x2074470D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, bool, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074470D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20844DBC: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:402) ==1181046== by 0x208446AC: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:345) ==1181046== by 0x20743C83: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743C83: 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) ==1181046== by 0x20743D1D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743D1D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x174f61c0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20844C59: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20844C59: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:397) ==1181046== by 0x208446AC: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:345) ==1181046== by 0x20743C83: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743C83: 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) ==1181046== by 0x20743D1D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743D1D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x208447F4: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:372) ==1181046== by 0x208446AC: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:345) ==1181046== by 0x20743C83: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743C83: 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) ==1181046== by 0x20743D1D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743D1D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20844DC6: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:402) ==1181046== by 0x208446AC: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:345) ==1181046== by 0x20743C83: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743C83: 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) ==1181046== by 0x20743D1D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743D1D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x174f61c0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20844C59: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20844C59: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:397) ==1181046== by 0x208446AC: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:345) ==1181046== by 0x20743C83: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743C83: 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) ==1181046== by 0x20743D1D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743D1D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x208447F4: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:372) ==1181046== by 0x208446AC: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:345) ==1181046== by 0x20743C83: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743C83: 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) ==1181046== by 0x20743D1D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatExtent, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743D1D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x208369F0: 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:2524) ==1181046== by 0x207C6FA5: 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) ==1181046== by 0x207317C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207317C4: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x1f9e1ea0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20836B21: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20836B21: 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:2519) ==1181046== by 0x207C6FA5: 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) ==1181046== by 0x207317C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207317C4: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x2083688D: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2083688D: 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:2467) ==1181046== by 0x207C6FA5: 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) ==1181046== by 0x207317C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207317C4: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20836A14: 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:2524) ==1181046== by 0x207C6FA5: 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) ==1181046== by 0x207317C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207317C4: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x1f9e1ea0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20836B21: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20836B21: 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:2519) ==1181046== by 0x207C6FA5: 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) ==1181046== by 0x207317C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207317C4: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x2083688D: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2083688D: 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:2467) ==1181046== by 0x207C6FA5: 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) ==1181046== by 0x207317C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207317C4: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20837123: 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:2569) ==1181046== by 0x207CAD0D: 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) ==1181046== by 0x2073151D: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2073151D: 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) ==1181046== by 0x2073151D: 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) ==1181046== by 0x2073151D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Address 0x2bd120b0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20837088: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20837088: 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:2564) ==1181046== by 0x207CAD0D: 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) ==1181046== by 0x2073151D: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2073151D: 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) ==1181046== by 0x2073151D: 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) ==1181046== by 0x2073151D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20836F6C: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20836F6C: 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:2535) ==1181046== by 0x207CAD0D: 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) ==1181046== by 0x2073151D: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2073151D: 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) ==1181046== by 0x2073151D: 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) ==1181046== by 0x2073151D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x208369F0: 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:2524) ==1181046== by 0x207C6E1E: 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) ==1181046== by 0x207317C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207317C4: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x16c31c40 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20836B21: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20836B21: 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:2519) ==1181046== by 0x207C6E1E: 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) ==1181046== by 0x207317C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207317C4: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x2083688D: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2083688D: 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:2467) ==1181046== by 0x207C6E1E: 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) ==1181046== by 0x207317C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207317C4: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20836A14: 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:2524) ==1181046== by 0x207C6E1E: 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) ==1181046== by 0x207317C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207317C4: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x16c31c40 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20836B21: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20836B21: 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:2519) ==1181046== by 0x207C6E1E: 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) ==1181046== by 0x207317C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207317C4: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x2083688D: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2083688D: 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:2467) ==1181046== by 0x207C6E1E: 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) ==1181046== by 0x207317C4: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207317C4: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x2073195D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2083BA7B: 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:2233) ==1181046== by 0x2084DB9C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1183) ==1181046== by 0x207447BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207447BC: 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) ==1181046== by 0x2074488D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074488D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x19088610 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2083BA71: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2083BA71: 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:2231) ==1181046== by 0x2084DB9C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1183) ==1181046== by 0x207447BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207447BC: 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) ==1181046== by 0x2074488D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074488D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2083B7F7: 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:2161) ==1181046== by 0x2084DB9C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1183) ==1181046== by 0x207447BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207447BC: 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) ==1181046== by 0x2074488D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074488D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2083BA85: 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:2233) ==1181046== by 0x2084DB9C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1183) ==1181046== by 0x207447BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207447BC: 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) ==1181046== by 0x2074488D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074488D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x19088610 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2083BA71: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2083BA71: 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:2231) ==1181046== by 0x2084DB9C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1183) ==1181046== by 0x207447BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207447BC: 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) ==1181046== by 0x2074488D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074488D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2083B7F7: 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:2161) ==1181046== by 0x2084DB9C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1183) ==1181046== by 0x207447BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207447BC: 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) ==1181046== by 0x2074488D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074488D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084DA0B: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1196) ==1181046== by 0x207447BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207447BC: 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) ==1181046== by 0x2074488D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074488D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Address 0x30b77c90 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084D8D1: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084D8D1: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1172) ==1181046== by 0x207447BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207447BC: 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) ==1181046== by 0x2074488D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074488D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x2084D75C: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084D75C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1149) ==1181046== by 0x207447BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207447BC: 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) ==1181046== by 0x2074488D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074488D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084DA15: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1196) ==1181046== by 0x207447BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207447BC: 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) ==1181046== by 0x2074488D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074488D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Address 0x30b77c90 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084D8D1: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084D8D1: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1172) ==1181046== by 0x207447BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207447BC: 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) ==1181046== by 0x2074488D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074488D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x2084D75C: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084D75C: SpatVector::voronoi(SpatVector, double, int) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1149) ==1181046== by 0x207447BC: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x207447BC: 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) ==1181046== by 0x2074488D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector, double, int> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074488D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084EFC3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2871) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Address 0x17211700 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084F1E3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084F1E3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2866) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084EC8E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2827) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084EFCD: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2871) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Address 0x17211700 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084F1E3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084F1E3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2866) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084EC8E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2827) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2083750C: SpatVector::geos_isvalid() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:192) ==1181046== by 0x206C9F84: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x206C9F84: call_impl >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1181046== by 0x206C9F84: call >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x206C9F84: Rcpp::CppMethodImplN >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Address 0x313be650 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20837431: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20837431: SpatVector::geos_isvalid() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:190) ==1181046== by 0x206C9F84: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x206C9F84: call_impl >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1181046== by 0x206C9F84: call >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x206C9F84: Rcpp::CppMethodImplN >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== by 0x49B40F9: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==1181046== by 0x49B40F9: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x208372C0: geos_init2 (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:222) ==1181046== by 0x208372C0: SpatVector::geos_isvalid() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:182) ==1181046== by 0x206C9F84: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x206C9F84: call_impl >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1181046== by 0x206C9F84: call >::operator()(SpatVector*, SEXPREC**)::, std::vector > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x206C9F84: Rcpp::CppMethodImplN >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x208360F4: SpatVector::geos_isvalid_msg[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:214) ==1181046== by 0x206AC898: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x206AC898: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1181046== by 0x206AC898: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x206AC898: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Address 0x1efdcc10 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20836049: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20836049: SpatVector::geos_isvalid_msg[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:212) ==1181046== by 0x206AC898: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x206AC898: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1181046== by 0x206AC898: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x206AC898: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== by 0x49B40F9: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==1181046== by 0x49B40F9: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20835C1D: geos_init2 (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:222) ==1181046== by 0x20835C1D: SpatVector::geos_isvalid_msg[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:195) ==1181046== by 0x206AC898: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x206AC898: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1181046== by 0x206AC898: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x206AC898: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20844536: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20844536: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20844536: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20844536: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20844536: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20844536: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20844536: SpatVector::make_valid2() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:252) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Address 0x2a622d90 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x208444A3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x208444A3: SpatVector::make_valid2() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:243) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x208441E7: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x208441E7: SpatVector::make_valid2() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:223) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20844DBC: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:402) ==1181046== by 0x20998AD3: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x2c00dd40 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20844C59: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20844C59: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:397) ==1181046== by 0x20998AD3: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x208447F4: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:372) ==1181046== by 0x20998AD3: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20844DC6: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:402) ==1181046== by 0x20998AD3: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x2c00dd40 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20844C59: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20844C59: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:397) ==1181046== by 0x20998AD3: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x208447F4: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:372) ==1181046== by 0x20998AD3: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1353) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084EFC3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2871) ==1181046== by 0x20998B92: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x2c00e1e0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084F1E3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084F1E3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2866) ==1181046== by 0x20998B92: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084EC8E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2827) ==1181046== by 0x20998B92: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084EFCD: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2871) ==1181046== by 0x20998B92: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x2c00e1e0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084F1E3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084F1E3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2866) ==1181046== by 0x20998B92: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084EC8E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2827) ==1181046== by 0x20998B92: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1357) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20844DC6: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:402) ==1181046== by 0x20998C2F: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1361) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x2c05c9d0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20844C59: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20844C59: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:397) ==1181046== by 0x20998C2F: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1361) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x208447F4: SpatVector::crop(SpatExtent, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:372) ==1181046== by 0x20998C2F: SpatVector::normalize_longitude() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/spatVector.cpp:1361) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20845EDD: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:532) ==1181046== by 0x208463D8: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:640) ==1181046== by 0x20846957: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==1181046== by 0x20742F3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742F3C: 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) ==1181046== by 0x20742FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== Address 0x309eee80 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20845E8B: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20845E8B: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:529) ==1181046== by 0x208463D8: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:640) ==1181046== by 0x20846957: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==1181046== by 0x20742F3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742F3C: 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) ==1181046== by 0x20742FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20845C48: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20845C48: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:506) ==1181046== by 0x208463D8: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:640) ==1181046== by 0x20846957: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==1181046== by 0x20742F3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742F3C: 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) ==1181046== by 0x20742FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20845EE7: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:532) ==1181046== by 0x208463D8: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:640) ==1181046== by 0x20846957: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==1181046== by 0x20742F3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742F3C: 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) ==1181046== by 0x20742FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== Address 0x309eee80 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20845E8B: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20845E8B: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:529) ==1181046== by 0x208463D8: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:640) ==1181046== by 0x20846957: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==1181046== by 0x20742F3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742F3C: 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) ==1181046== by 0x20742FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20845C48: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20845C48: SpatVector::line_merge() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:506) ==1181046== by 0x208463D8: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:640) ==1181046== by 0x20846957: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==1181046== by 0x20742F3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742F3C: 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) ==1181046== by 0x20742FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x208465DF: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:647) ==1181046== by 0x20846957: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==1181046== by 0x20742F3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742F3C: 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) ==1181046== by 0x20742FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x1ec8e8a0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x208463FB: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x208463FB: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:642) ==1181046== by 0x20846957: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==1181046== by 0x20742F3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742F3C: 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) ==1181046== by 0x20742FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20846108: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:579) ==1181046== by 0x20846957: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==1181046== by 0x20742F3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742F3C: 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) ==1181046== by 0x20742FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084661A: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:647) ==1181046== by 0x20846957: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==1181046== by 0x20742F3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742F3C: 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) ==1181046== by 0x20742FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Address 0x1ec8e8a0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x208463FB: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x208463FB: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:642) ==1181046== by 0x20846957: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==1181046== by 0x20742F3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742F3C: 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) ==1181046== by 0x20742FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20846108: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:579) ==1181046== by 0x20846957: SpatVector::shared_paths(bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:576) ==1181046== by 0x20742F3C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742F3C: 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) ==1181046== by 0x20742FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x2084877B: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x2084877B: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x2084877B: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x2084877B: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x2084877B: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x2084877B: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084877B: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:569) ==1181046== by 0x2074330B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074330B: 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) ==1181046== by 0x2074339D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074339D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Address 0x16d4c540 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x208486E5: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x208486E5: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:566) ==1181046== by 0x2074330B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074330B: 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) ==1181046== by 0x2074339D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074339D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x208482B0: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x208482B0: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:538) ==1181046== by 0x2074330B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074330B: 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) ==1181046== by 0x2074339D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074339D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20848586: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20848586: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20848586: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20848586: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20848586: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20848586: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20848586: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:569) ==1181046== by 0x2074330B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074330B: 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) ==1181046== by 0x2074339D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074339D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Address 0x16d4c540 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x208486E5: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x208486E5: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:566) ==1181046== by 0x2074330B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074330B: 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) ==1181046== by 0x2074339D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074339D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x208482B0: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x208482B0: SpatVector::simplify(double, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:538) ==1181046== by 0x2074330B: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074330B: 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) ==1181046== by 0x2074339D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074339D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x2084527B: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x2084527B: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x2084527B: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x2084527B: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x2084527B: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x2084527B: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084527B: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:436) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Address 0x2f416000 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x208451E5: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x208451E5: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:433) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20844F77: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20844F77: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:410) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20845306: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20845306: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20845306: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20845306: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20845306: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20845306: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20845306: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:436) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Address 0x2f416000 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x208451E5: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x208451E5: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:433) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20844F77: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20844F77: SpatVector::make_nodes() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:410) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20842A5D: SpatVector::polygonize() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:862) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Address 0x30427f60 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x208429F7: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x208429F7: SpatVector::polygonize() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:855) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x208428E7: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x208428E7: SpatVector::polygonize() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:843) ==1181046== by 0x20742D76: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742D76: 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) ==1181046== by 0x20742E05: call::operator()(SpatVector*, SEXPREC**)::, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742E05: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20848D7D: SpatVector::snap(double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:905) ==1181046== by 0x20742E48: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742E48: 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) ==1181046== by 0x20742EED: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742EED: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Address 0x1aa085c0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20848CB6: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20848CB6: SpatVector::snap(double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:897) ==1181046== by 0x20742E48: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742E48: 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) ==1181046== by 0x20742EED: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742EED: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x2084892C: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084892C: SpatVector::snap(double) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:874) ==1181046== by 0x20742E48: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20742E48: 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) ==1181046== by 0x20742EED: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20742EED: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084EFC3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2871) ==1181046== by 0x2084F72A: SpatVector::symdif(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2649) ==1181046== by 0x2084FC9D: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2598) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== Address 0x1f9de130 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084F1E3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084F1E3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2866) ==1181046== by 0x2084F72A: SpatVector::symdif(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2649) ==1181046== by 0x2084FC9D: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2598) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084EC8E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2827) ==1181046== by 0x2084F72A: SpatVector::symdif(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2649) ==1181046== by 0x2084FC9D: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2598) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084EFCD: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2871) ==1181046== by 0x2084F72A: SpatVector::symdif(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2649) ==1181046== by 0x2084FC9D: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2598) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== Address 0x1f9de130 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084F1E3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084F1E3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2866) ==1181046== by 0x2084F72A: SpatVector::symdif(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2649) ==1181046== by 0x2084FC9D: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2598) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084EC8E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2827) ==1181046== by 0x2084F72A: SpatVector::symdif(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2649) ==1181046== by 0x2084FC9D: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2598) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084EFC3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2871) ==1181046== by 0x2084F775: SpatVector::symdif(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2653) ==1181046== by 0x2084FC9D: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2598) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== Address 0x2d31ff30 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084F1E3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084F1E3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2866) ==1181046== by 0x2084F775: SpatVector::symdif(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2653) ==1181046== by 0x2084FC9D: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2598) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084EC8E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2827) ==1181046== by 0x2084F775: SpatVector::symdif(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2653) ==1181046== by 0x2084FC9D: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2598) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x2084EFCD: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2871) ==1181046== by 0x2084F775: SpatVector::symdif(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2653) ==1181046== by 0x2084FC9D: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2598) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== Address 0x2d31ff30 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x2084F1E3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x2084F1E3: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2866) ==1181046== by 0x2084F775: SpatVector::symdif(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2653) ==1181046== by 0x2084FC9D: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2598) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x2084EC8E: SpatVector::erase(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2827) ==1181046== by 0x2084F775: SpatVector::symdif(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2653) ==1181046== by 0x2084FC9D: SpatVector::unite(SpatVector) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:2598) ==1181046== by 0x20743F00: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20743F00: 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) ==1181046== by 0x20743FDD: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, SpatVector> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x20743FDD: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20849E54: 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:1131) ==1181046== by 0x207CEBCA: hullify(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1332) ==1181046== by 0x207CF812: lonlat_buf(SpatVector, double, unsigned int, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1375) ==1181046== by 0x207D0D61: 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:1435) ==1181046== by 0x2084AD98: 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:1280) ==1181046== by 0x20765983: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20765983: 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) ==1181046== by 0x20765B1D: 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) ==1181046== by 0x20765B1D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== Address 0x17688db0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20849DD7: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20849DD7: 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:1126) ==1181046== by 0x207CEBCA: hullify(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1332) ==1181046== by 0x207CF812: lonlat_buf(SpatVector, double, unsigned int, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1375) ==1181046== by 0x207D0D61: 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:1435) ==1181046== by 0x2084AD98: 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:1280) ==1181046== by 0x20765983: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20765983: 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) ==1181046== by 0x20765B1D: 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) ==1181046== by 0x20765B1D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20849C0B: 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:1069) ==1181046== by 0x207CEBCA: hullify(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1332) ==1181046== by 0x207CF812: lonlat_buf(SpatVector, double, unsigned int, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1375) ==1181046== by 0x207D0D61: 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:1435) ==1181046== by 0x2084AD98: 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:1280) ==1181046== by 0x20765983: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20765983: 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) ==1181046== by 0x20765B1D: 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) ==1181046== by 0x20765B1D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20849E5C: 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:1131) ==1181046== by 0x207CEBCA: hullify(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1332) ==1181046== by 0x207CF812: lonlat_buf(SpatVector, double, unsigned int, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1375) ==1181046== by 0x207D0D61: 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:1435) ==1181046== by 0x2084AD98: 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:1280) ==1181046== by 0x20765983: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20765983: 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) ==1181046== by 0x20765B1D: 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) ==1181046== by 0x20765B1D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== Address 0x17688db0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20849DD7: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20849DD7: 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:1126) ==1181046== by 0x207CEBCA: hullify(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1332) ==1181046== by 0x207CF812: lonlat_buf(SpatVector, double, unsigned int, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1375) ==1181046== by 0x207D0D61: 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:1435) ==1181046== by 0x2084AD98: 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:1280) ==1181046== by 0x20765983: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20765983: 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) ==1181046== by 0x20765B1D: 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) ==1181046== by 0x20765B1D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851885: geos_init() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20849C0B: 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:1069) ==1181046== by 0x207CEBCA: hullify(SpatVector, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1332) ==1181046== by 0x207CF812: lonlat_buf(SpatVector, double, unsigned int, bool, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/distVector.cpp:1375) ==1181046== by 0x207D0D61: 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:1435) ==1181046== by 0x2084AD98: 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:1280) ==1181046== by 0x20765983: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x20765983: 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) ==1181046== by 0x20765B1D: 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) ==1181046== by 0x20765B1D: 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) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20842F56: SpatVector::delaunay(double, int, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1249) ==1181046== by 0x2074370C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074370C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(double, int, bool)#1}, SpatVector, double, int, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(double, int, 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) ==1181046== by 0x2074379D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, int, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074379D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Address 0x1f02c3c0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20842ED3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20842ED3: SpatVector::delaunay(double, int, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1240) ==1181046== by 0x2074370C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074370C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(double, int, bool)#1}, SpatVector, double, int, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(double, int, 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) ==1181046== by 0x2074379D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, int, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074379D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20842CCC: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20842CCC: SpatVector::delaunay(double, int, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1212) ==1181046== by 0x2074370C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074370C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(double, int, bool)#1}, SpatVector, double, int, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(double, int, 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) ==1181046== by 0x2074379D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, int, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074379D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== ==1181046== Invalid read of size 8 ==1181046== at 0x2350D51C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20851AE1: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1181046== by 0x20851AE1: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1181046== by 0x20851AE1: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1181046== by 0x20851AE1: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1181046== by 0x20851AE1: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1181046== by 0x20851AE1: std::vector >, std::allocator > > >::~vector() (/usr/include/c++/15/bits/stl_vector.h:802) ==1181046== by 0x20842F60: SpatVector::delaunay(double, int, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1249) ==1181046== by 0x2074370C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074370C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(double, int, bool)#1}, SpatVector, double, int, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(double, int, 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) ==1181046== by 0x2074379D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, int, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074379D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== Address 0x1f02c3c0 is 1,072 bytes inside a block of size 1,120 free'd ==1181046== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1181046== by 0x20842ED3: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1181046== by 0x20842ED3: SpatVector::delaunay(double, int, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1240) ==1181046== by 0x2074370C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074370C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(double, int, bool)#1}, SpatVector, double, int, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(double, int, 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) ==1181046== by 0x2074379D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, int, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074379D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1181046== Block was alloc'd at ==1181046== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1181046== by 0x23518E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1181046== by 0x20842CCC: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1181046== by 0x20842CCC: SpatVector::delaunay(double, int, bool) (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:1212) ==1181046== by 0x2074370C: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1181046== by 0x2074370C: SEXPREC* Rcpp::internal::call_impl::operator()(SpatVector*, SEXPREC**)::{lambda(double, int, bool)#1}, SpatVector, double, int, bool, 0, 1, 2, (void*)0>(Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**)::{lambda(double, int, 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) ==1181046== by 0x2074379D: call::operator()(SpatVector*, SEXPREC**)::, SpatVector, double, int, bool> (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1181046== by 0x2074379D: Rcpp::CppMethodImplN::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1181046== by 0x206C6C07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1181046== by 0x1F4A45E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1181046== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1181046== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1181046== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1181046== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1181046== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1181046== ==1181046== ==1181046== HEAP SUMMARY: ==1181046== in use at exit: 168,933,529 bytes in 52,535 blocks ==1181046== total heap usage: 10,056,419 allocs, 10,003,884 frees, 5,497,710,747 bytes allocated ==1181046== ==1181046== LEAK SUMMARY: ==1181046== definitely lost: 0 bytes in 0 blocks ==1181046== indirectly lost: 0 bytes in 0 blocks ==1181046== possibly lost: 366,117 bytes in 73 blocks ==1181046== still reachable: 168,566,531 bytes in 52,459 blocks ==1181046== suppressed: 881 bytes in 3 blocks ==1181046== Rerun with --leak-check=full to see details of leaked memory ==1181046== ==1181046== For lists of detected and suppressed errors, rerun with: -s ==1181046== ERROR SUMMARY: 9213 errors from 58 contexts (suppressed: 0 from 0) File: tests/tinytest.Rout ==1185126== Memcheck, a memory error detector ==1185126== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al. ==1185126== Using Valgrind-3.25.1 and LibVEX; rerun with -h for copyright info ==1185126== Command: /home/hornik/tmp/R-d-gcc-valg/bin/exec/R -f tinytest.R --restore --save --no-readline --vanilla ==1185126== ==1185126== at 0x2311551C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1185126== by 0x20445D46: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1185126== by 0x20445D46: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1185126== by 0x20445D46: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1185126== by 0x20445D46: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1185126== by 0x20445D46: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1185126== by 0x20445D46: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1185126== by 0x20445D46: SpatVector::wkb_raw() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:116) ==1185126== by 0x2037EEC0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1185126== by 0x2037EEC0: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1185126== by 0x2037EEC0: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1185126== by 0x2037EEC0: Rcpp::CppMethodImplN >, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1185126== by 0x202CEC07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1185126== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1185126== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1185126== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1185126== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1185126== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1185126== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1185126== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1185126== by 0x49B40F9: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==1185126== by 0x49B40F9: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==1185126== Address 0x2c076f60 is 1,072 bytes inside a block of size 1,120 free'd ==1185126== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1185126== by 0x20445D01: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1185126== by 0x20445D01: SpatVector::wkb_raw() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:114) ==1185126== by 0x2037EEC0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1185126== by 0x2037EEC0: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1185126== by 0x2037EEC0: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1185126== by 0x2037EEC0: Rcpp::CppMethodImplN >, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1185126== by 0x202CEC07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1185126== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1185126== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1185126== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1185126== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1185126== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1185126== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1185126== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1185126== by 0x49B40F9: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==1185126== by 0x49B40F9: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==1185126== Block was alloc'd at ==1185126== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1185126== by 0x23120E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1185126== by 0x20445AFE: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1185126== by 0x20445AFE: SpatVector::wkb_raw() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:103) ==1185126== by 0x2037EEC0: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1185126== by 0x2037EEC0: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1185126== by 0x2037EEC0: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1185126== by 0x2037EEC0: Rcpp::CppMethodImplN >, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1185126== by 0x202CEC07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1185126== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1185126== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1185126== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1185126== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1185126== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1185126== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1185126== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1185126== ==1185126== at 0x2311551C: GEOSGeom_destroy_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1185126== by 0x2043DB95: operator() (/usr/include/c++/15/bits/std_function.h:593) ==1185126== by 0x2043DB95: ~unique_ptr (/usr/include/c++/15/bits/unique_ptr.h:398) ==1185126== by 0x2043DB95: _Destroy > > (/usr/include/c++/15/bits/stl_construct.h:166) ==1185126== by 0x2043DB95: _Destroy >*> (/usr/include/c++/15/bits/stl_construct.h:226) ==1185126== by 0x2043DB95: _Destroy >*, std::unique_ptr > > (/usr/include/c++/15/bits/alloc_traits.h:1045) ==1185126== by 0x2043DB95: ~vector (/usr/include/c++/15/bits/stl_vector.h:802) ==1185126== by 0x2043DB95: SpatVector::hex[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:132) ==1185126== by 0x202B4898: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1185126== by 0x202B4898: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1185126== by 0x202B4898: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1185126== by 0x202B4898: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1185126== by 0x202CEC07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1185126== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1185126== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1185126== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1185126== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1185126== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1185126== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1185126== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1185126== by 0x49B40F9: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==1185126== by 0x49B40F9: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==1185126== Address 0x2b3b7cf0 is 1,072 bytes inside a block of size 1,120 free'd ==1185126== at 0x484D86D: operator delete(void*, unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:1181) ==1185126== by 0x2043DB59: geos_finish (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:207) ==1185126== by 0x2043DB59: SpatVector::hex[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:130) ==1185126== by 0x202B4898: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1185126== by 0x202B4898: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1185126== by 0x202B4898: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1185126== by 0x202B4898: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1185126== by 0x202CEC07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1185126== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1185126== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1185126== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1185126== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1185126== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1185126== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1185126== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1185126== by 0x49B40F9: Rf_applyClosure (/home/hornik/src/R/src/main/eval.c:2324) ==1185126== by 0x49B40F9: Rf_eval (/home/hornik/src/R/src/main/eval.c:1280) ==1185126== Block was alloc'd at ==1185126== at 0x4849F93: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:487) ==1185126== by 0x23120E13: GEOS_init_r (in /usr/lib/x86_64-linux-gnu/libgeos_c.so.1.20.5) ==1185126== by 0x2043D9DB: geos_init (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_spat.h:148) ==1185126== by 0x2043D9DB: SpatVector::hex[abi:cxx11]() (/home/hornik/tmp/CRAN_special_valgrind/terra.Rcheck/00_pkg_src/terra/src/geos_methods.cpp:119) ==1185126== by 0x202B4898: operator() (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:385) ==1185126== by 0x202B4898: call_impl > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:23) ==1185126== by 0x202B4898: call > >::operator()(SpatVector*, SEXPREC**)::, std::vector > > (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/internal/call.h:47) ==1185126== by 0x202B4898: Rcpp::CppMethodImplN, std::allocator >, std::allocator, std::allocator > > >>::operator()(SpatVector*, SEXPREC**) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/Module.h:387) ==1185126== by 0x202CEC07: Rcpp::class_::invoke_notvoid(SEXPREC*, SEXPREC*, SEXPREC**, int) (/home/hornik/tmp/CRAN_special_valgrind/Library/Rcpp/include/Rcpp/module/class.h:241) ==1185126== by 0x1F0AC5E7: CppMethod__invoke_notvoid(SEXPREC*) (/home/hornik/tmp/scratch/RtmpYhVTb6/R.INSTALL11ca0f23417b7b/Rcpp/src/module.cpp:220) ==1185126== by 0x4964659: do_External (/home/hornik/src/R/src/main/dotcode.c:576) ==1185126== by 0x49B45B0: Rf_eval (/home/hornik/src/R/src/main/eval.c:1260) ==1185126== by 0x49B7A83: do_begin (/home/hornik/src/R/src/main/eval.c:2992) ==1185126== by 0x49B439E: Rf_eval (/home/hornik/src/R/src/main/eval.c:1232) ==1185126== by 0x49B5F1D: R_execClosure (/home/hornik/src/R/src/main/eval.c:2389) ==1185126== by 0x49B6CD8: applyClosure_core (/home/hornik/src/R/src/main/eval.c:2302) ==1185126== ==1185126== ==1185126== HEAP SUMMARY: ==1185126== in use at exit: 169,486,404 bytes in 42,966 blocks ==1185126== total heap usage: 1,587,473 allocs, 1,544,507 frees, 2,055,916,968 bytes allocated ==1185126== ==1185126== LEAK SUMMARY: ==1185126== definitely lost: 0 bytes in 0 blocks ==1185126== indirectly lost: 0 bytes in 0 blocks ==1185126== possibly lost: 185,153 bytes in 37 blocks ==1185126== still reachable: 169,300,370 bytes in 42,926 blocks ==1185126== suppressed: 881 bytes in 3 blocks ==1185126== Rerun with --leak-check=full to see details of leaked memory ==1185126== ==1185126== For lists of detected and suppressed errors, rerun with: -s ==1185126== ERROR SUMMARY: 3 errors from 2 contexts (suppressed: 0 from 0)