SUMMARY: AddressSanitizer: 4921174 byte(s) leaked in 4181 allocation(s). ================================================================= ==71771==ERROR: AddressSanitizer: heap-use-after-free on address 0x6030009551b0 at pc 0x0000164bd0ec bp 0x7fd09bf994b0 sp 0x7fd09bf994a8 READ of size 8 at 0x6030009551b0 thread T21 #0 0x164bd0eb in operator()<__gnu_cxx::__normal_iterator<(anonymous namespace)::Local**, std::vector<(anonymous namespace)::Local*> > > /usr/include/c++/12/bits/predefined_ops.h:270 #1 0x164bc8fc in __find_if<__gnu_cxx::__normal_iterator<(anonymous namespace)::Local**, std::vector<(anonymous namespace)::Local*> >, __gnu_cxx::__ops::_Iter_equals_val<(anonymous namespace)::Local* const> > /usr/include/c++/12/bits/stl_algobase.h:2097 #2 0x164bba05 in __find_if<__gnu_cxx::__normal_iterator<(anonymous namespace)::Local**, std::vector<(anonymous namespace)::Local*> >, __gnu_cxx::__ops::_Iter_equals_val<(anonymous namespace)::Local* const> > /usr/include/c++/12/bits/stl_algobase.h:2112 #3 0x164baf5f in find<__gnu_cxx::__normal_iterator<(anonymous namespace)::Local**, std::vector<(anonymous namespace)::Local*> >, (anonymous namespace)::Local*> /usr/include/c++/12/bits/stl_algo.h:3851 #4 0x164b9ab3 in ~Local /home/sergey/Developer/blender/blender/intern/guardedalloc/intern/memory_usage.cc:134 #5 0x7fd0b5e5d16e in __GI___call_tls_dtors stdlib/cxa_thread_atexit_impl.c:159 #6 0x7fd0b5ea7e4f in start_thread nptl/pthread_create.c:450 #7 0x7fd0b5f2866b in clone3 ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 0x6030009551b0 is located 0 bytes inside of 32-byte region [0x6030009551b0,0x6030009551d0) freed by thread T0 here: #0 0x7fd0c54ba3c8 in operator delete(void*, unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:164 #1 0x164bcb00 in deallocate /usr/include/c++/12/bits/new_allocator.h:158 #2 0x164bbfd5 in deallocate /usr/include/c++/12/bits/alloc_traits.h:496 #3 0x164bb3b9 in _M_deallocate /usr/include/c++/12/bits/stl_vector.h:387 #4 0x164baa64 in ~_Vector_base /usr/include/c++/12/bits/stl_vector.h:366 #5 0x164baafd in ~vector /usr/include/c++/12/bits/stl_vector.h:733 #6 0x164b94d1 in ~Global /home/sergey/Developer/blender/blender/intern/guardedalloc/intern/memory_usage.cc:54 #7 0x7fd0b5e5d434 in __run_exit_handlers stdlib/exit.c:113