Получение heap-use-after-free с трассировкой, указывающей на
Код: Выделить всё
#0 0x102b82868 in int std::__1::__cxx_atomic_fetch_sub[abi:ue170006](std::__1::__cxx_atomic_base_impl*, int, std::__1::memory_order) cxx_atomic_impl.h:464
Код: Выделить всё
==23049==ERROR: AddressSanitizer: heap-use-after-free on address 0x000105004578 at pc 0x00010236f3a4 bp 0x00016dc36930 sp 0x00016dc36928
Подробнее здесь: https://stackoverflow.com/questions/790 ... e-counting