ERROR: AddressSanitizer: heap-use-after-free on address 0x60800000a1d0 at pc 0x449d56 bp 0x7fffeee7c6c0 sp 0x7fffeee7c6b8
==3140==ERROR: AddressSanitizer: heap-use-after-free on address 0x60800000a1d0 at pc 0x449d56 bp 0x7fffeee7c6c0 sp 0x7fffeee7c6b8
READ of size 8 at 0x60800000a1d0 thread T17
#0 0x449d55 (/usr/sbin/knotd+0x449d55)
#1 0x444cb9 (/usr/sbin/knotd+0x444cb9)
#2 0x441ffc (/usr/sbin/knotd+0x441ffc)
#3 0x4415b3 (/usr/sbin/knotd+0x4415b3)
#4 0x4e2de5 (/usr/sbin/knotd+0x4e2de5)
#5 0x429083 (/usr/sbin/knotd+0x429083)
#6 0x7ffff7145b4f (/lib/x86_64-linux-gnu/libpthread-2.13.so+0x6b4f)
#7 0x7ffff686da7c (/lib/x86_64-linux-gnu/libc-2.13.so+0xdaa7c)
0x60800000a1d0 is located 48 bytes inside of 96-byte region [0x60800000a1a0,0x60800000a200)
freed by thread T0 here:
#0 0x422a04 (/usr/sbin/knotd+0x422a04)
#1 0x434f37 (/usr/sbin/knotd+0x434f37)
#2 0x43446a (/usr/sbin/knotd+0x43446a)
#3 0x436033 (/usr/sbin/knotd+0x436033)
#4 0x43c54d (/usr/sbin/knotd+0x43c54d)
#5 0x4388c6 (/usr/sbin/knotd+0x4388c6)
#6 0x439468 (/usr/sbin/knotd+0x439468)
#7 0x4319c3 (/usr/sbin/knotd+0x4319c3)
#8 0x7ffff67b1eac (/lib/x86_64-linux-gnu/libc-2.13.so+0x1eeac)
previously allocated by thread T0 here:
#0 0x422ae4 (/usr/sbin/knotd+0x422ae4)
#1 0x4e08fb (/usr/sbin/knotd+0x4e08fb)
#2 0x4dce56 (/usr/sbin/knotd+0x4dce56)
#3 0x434785 (/usr/sbin/knotd+0x434785)
#4 0x435ed6 (/usr/sbin/knotd+0x435ed6)
#5 0x43c54d (/usr/sbin/knotd+0x43c54d)
#6 0x4388c6 (/usr/sbin/knotd+0x4388c6)
#7 0x439468 (/usr/sbin/knotd+0x439468)
#8 0x4319c3 (/usr/sbin/knotd+0x4319c3)
#9 0x7ffff67b1eac (/lib/x86_64-linux-gnu/libc-2.13.so+0x1eeac)
Thread T17 created by T0 here:
#0 0x41ea50 (/usr/sbin/knotd+0x41ea50)
#1 0x4e2bbf (/usr/sbin/knotd+0x4e2bbf)
#2 0x4e2aa3 (/usr/sbin/knotd+0x4e2aa3)
#3 0x43c1db (/usr/sbin/knotd+0x43c1db)
#4 0x431568 (/usr/sbin/knotd+0x431568)
#5 0x7ffff67b1eac (/lib/x86_64-linux-gnu/libc-2.13.so+0x1eeac)
Shadow bytes around the buggy address:
0x0c107fff93e0: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd
0x0c107fff93f0: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd
0x0c107fff9400: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd
0x0c107fff9410: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd
0x0c107fff9420: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd
=>0x0c107fff9430: fa fa fa fa fd fd fd fd fd fd[fd]fd fd fd fd fd
0x0c107fff9440: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd
0x0c107fff9450: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd
0x0c107fff9460: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd
0x0c107fff9470: fa fa fa fa fd fd fd fd fd fd fd fd fd fd fd fd
0x0c107fff9480: fa fa fa fa 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
==3140==ABORTING