================================================================= ==24557==ERROR: AddressSanitizer: heap-use-after-free on address 0x61a00001d4e0 at pc 0x4b6d4a bp 0x7fff593464b0 sp 0x7fff593464a8 WRITE of size 1350 at 0x61a00001d4e0 thread T0 #0 0x4b6d49 in _ZN5coderI8countersI7tcp_hdrI15tcp_sock_clientI11buffer_poolI10buffer_pkt11final_layerEEEEE16rlnc_enc_processERSt10shared_ptrIS4_Ei rlnc_multipath.cpp:352 #1 0x4ac406 in _ZN5coderI8countersI7tcp_hdrI15tcp_sock_clientI11buffer_poolI10buffer_pkt11final_layerEEEEE9recv_peerEi rlnc_multipath.cpp:404 #2 0x4ad9a3 in _ZNSt5_BindIFSt7_Mem_fnIM5coderI8countersI7tcp_hdrI15tcp_sock_clientI11buffer_poolI10buffer_pkt11final_layerEEEEEFviEEPSC_St12_PlaceholderILi1EEEEclIJiEvEET0_DpOT_ include/c++/4.8.2/functional:1354 #3 0x4ad645 in _ZNSt17_Function_handlerIFviESt5_BindIFSt7_Mem_fnIM5coderI8countersI7tcp_hdrI15tcp_sock_clientI11buffer_poolI10buffer_pkt11final_layerEEEEEFviEEPSE_St12_PlaceholderILi1EEEEE9_M_invokeERKSt9_Any_datai include/c++/4.8.2/functional:2072 #4 0x4a8a70 in _ZNKSt8functionIFviEEclEi include/c++/4.8.2/functional:2464 #5 0x4a8699 in _ZN2io4waitEi io.hpp:183 #6 0x4a8443 in _ZN5coderI8countersI7tcp_hdrI15tcp_sock_clientI11buffer_poolI10buffer_pkt11final_layerEEEEE3runEm rlnc_multipath.cpp:504 #7 0x4a7ef2 in main rlnc_multipath.cpp:632 #8 0x7f5a44c40bc4 in __libc_start_main ??:? #9 0x4a79cc in _start ??:? 0x61a00001d9f8 is located 0 bytes to the right of 1400-byte region [0x61a00001d480,0x61a00001d9f8) freed by thread T0 here: #0 0x499eb4 in _ZdlPv ??:? #1 0x4c0550 in _ZNSt6vectorIhSaIhEE17_M_default_appendEm include/c++/4.8.2/bits/vector.tcc:570 #2 0x4c0397 in _ZN10buffer_pkt5resetEm buffer_pkt.hpp:75 #3 0x4c0317 in _ZN11buffer_poolI10buffer_pkt11final_layerE4pool3getEm buffer_pool.hpp:41 #4 0x4b77a1 in _ZN11buffer_poolI10buffer_pkt11final_layerE6bufferEm buffer_pool.hpp:64 #5 0x4b676f in _ZN5coderI8countersI7tcp_hdrI15tcp_sock_clientI11buffer_poolI10buffer_pkt11final_layerEEEEE16rlnc_enc_processERSt10shared_ptrIS4_Ei rlnc_multipath.cpp:316 #6 0x4ac406 in _ZN5coderI8countersI7tcp_hdrI15tcp_sock_clientI11buffer_poolI10buffer_pkt11final_layerEEEEE9recv_peerEi rlnc_multipath.cpp:404 #7 0x4ad9a3 in _ZNSt5_BindIFSt7_Mem_fnIM5coderI8countersI7tcp_hdrI15tcp_sock_clientI11buffer_poolI10buffer_pkt11final_layerEEEEEFviEEPSC_St12_PlaceholderILi1EEEEclIJiEvEET0_DpOT_ include/c++/4.8.2/functional:1354 #8 0x4ad645 in _ZNSt17_Function_handlerIFviESt5_BindIFSt7_Mem_fnIM5coderI8countersI7tcp_hdrI15tcp_sock_clientI11buffer_poolI10buffer_pkt11final_layerEEEEEFviEEPSE_St12_PlaceholderILi1EEEEE9_M_invokeERKSt9_Any_datai include/c++/4.8.2/functional:2072 #9 0x4a8a70 in _ZNKSt8functionIFviEEclEi include/c++/4.8.2/functional:2464 #10 0x4a8699 in _ZN2io4waitEi io.hpp:183 #11 0x4a8443 in _ZN5coderI8countersI7tcp_hdrI15tcp_sock_clientI11buffer_poolI10buffer_pkt11final_layerEEEEE3runEm rlnc_multipath.cpp:504 #12 0x4a7ef2 in main rlnc_multipath.cpp:632 #13 0x7f5a44c40bc4 in __libc_start_main ??:? previously allocated by thread T0 here: #0 0x499cf4 in _Znwm ??:? #1 0x4b3e31 in _ZNSt12_Vector_baseIhSaIhEE17_M_create_storageEm include/c++/4.8.2/bits/stl_vector.h:181 #2 0x4b3bdf in _Vector_base include/c++/4.8.2/bits/stl_vector.h:136 #3 0x4b3ba1 in vector include/c++/4.8.2/bits/stl_vector.h:271 #4 0x4b3929 in buffer_pkt buffer_pkt.hpp:25 #5 0x4c0331 in _ZN11buffer_poolI10buffer_pkt11final_layerE4pool3getEm buffer_pool.hpp:37 #6 0x4b77a1 in _ZN11buffer_poolI10buffer_pkt11final_layerE6bufferEm buffer_pool.hpp:64 #7 0x4c42c8 in _ZN5coderI8countersI7tcp_hdrI15tcp_sock_clientI11buffer_poolI10buffer_pkt11final_layerEEEEE8recv_tunEi rlnc_multipath.cpp:381 #8 0x4ad9a3 in _ZNSt5_BindIFSt7_Mem_fnIM5coderI8countersI7tcp_hdrI15tcp_sock_clientI11buffer_poolI10buffer_pkt11final_layerEEEEEFviEEPSC_St12_PlaceholderILi1EEEEclIJiEvEET0_DpOT_ include/c++/4.8.2/functional:1354 #9 0x4ad645 in _ZNSt17_Function_handlerIFviESt5_BindIFSt7_Mem_fnIM5coderI8countersI7tcp_hdrI15tcp_sock_clientI11buffer_poolI10buffer_pkt11final_layerEEEEEFviEEPSE_St12_PlaceholderILi1EEEEE9_M_invokeERKSt9_Any_datai include/c++/4.8.2/functional:2072 #10 0x4a8a70 in _ZNKSt8functionIFviEEclEi include/c++/4.8.2/functional:2464 #11 0x4a8699 in _ZN2io4waitEi io.hpp:183 #12 0x4a8443 in _ZN5coderI8countersI7tcp_hdrI15tcp_sock_clientI11buffer_poolI10buffer_pkt11final_layerEEEEE3runEm rlnc_multipath.cpp:504 #13 0x4a7ef2 in main rlnc_multipath.cpp:632 #14 0x7f5a44c40bc4 in __libc_start_main ??:? Shadow bytes around the buggy address: 0x0c347fffba40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c347fffba50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c347fffba60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c347fffba70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c347fffba80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x0c347fffba90: fd fd fd fd fd fd fd fd fd fd fd fd[fd]fd fd fd 0x0c347fffbaa0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c347fffbab0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c347fffbac0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c347fffbad0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c347fffbae0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Heap right redzone: fb Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 ASan internal: fe ==24557==ABORTING