[ ETA~=45m Remaining=5787 Active=200 ] 67%mempool.c:61:3: runtime error: store to address 0x502000a8be50 with insufficient space for an object of type 'struct mementry *'
0x502000a8be50: note: pointer points here
02 00 00 00 be 00 00 00 27 00 00 00 03 02 03 5f 3d 0a 0b db 00 11 00 00 10 00 00 00 11 00 00 00
^
=================================================================
==1882078==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x502000a8be50 at pc 0x6296dd8832e9 bp 0x75eee18e16b0 sp 0x75eee18e16a0
WRITE of size 8 at 0x502000a8be50 thread T2
#0 0x6296dd8832e8 in mempool_alloc /home/fia8kif/work/tup-0.8-man10/src/tup/mempool.c:61
#1 0x6296dd869acc in new_entry /home/fia8kif/work/tup-0.8-man10/src/tup/file.c:552
#2 0x6296dd869acc in handle_open_file /home/fia8kif/work/tup-0.8-man10/src/tup/file.c:203
#3 0x6296dd8e9b81 in tup_fuse_handle_file /home/fia8kif/work/tup-0.8-man10/src/tup/server/fuse_fs.c:305
#4 0x6296dd8e9b81 in tup_fuse_handle_file /home/fia8kif/work/tup-0.8-man10/src/tup/server/fuse_fs.c:296
#5 0x6296dd8eb9f6 in tup_fs_getattr /home/fia8kif/work/tup-0.8-man10/src/tup/server/fuse_fs.c:432
#6 0x75eeee9e2b58 (/lib/x86_64-linux-gnu/libfuse3.so.3+0x13b58) (BuildId: 747993b4849470a581bf53f4ed361337f40a031b)
#7 0x75eeee9e0889 (/lib/x86_64-linux-gnu/libfuse3.so.3+0x11889) (BuildId: 747993b4849470a581bf53f4ed361337f40a031b)
#8 0x75eeee9ee7c2 (/lib/x86_64-linux-gnu/libfuse3.so.3+0x1f7c2) (BuildId: 747993b4849470a581bf53f4ed361337f40a031b)
#9 0x75eeee9de16d in fuse_session_loop (/lib/x86_64-linux-gnu/libfuse3.so.3+0xf16d) (BuildId: 747993b4849470a581bf53f4ed361337f40a031b)
#10 0x75eeee9ef595 in fuse_main_real (/lib/x86_64-linux-gnu/libfuse3.so.3+0x20595) (BuildId: 747993b4849470a581bf53f4ed361337f40a031b)
#11 0x6296dd8f0681 in fuse_thread /home/fia8kif/work/tup-0.8-man10/src/tup/server/fuse_server.c:100
#12 0x75eeee25ea41 in asan_thread_start ../../../../src/libsanitizer/asan/asan_interceptors.cpp:234
#13 0x75eeed69caa3 in start_thread nptl/pthread_create.c:447
#14 0x75eeed729c6b in clone3 ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
0x502000a8be51 is located 0 bytes after 1-byte region [0x502000a8be50,0x502000a8be51)
allocated by thread T2 here:
#0 0x75eeee2fd9c7 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
#1 0x6296dd88328d in mempool_alloc /home/fia8kif/work/tup-0.8-man10/src/tup/mempool.c:55
Thread T2 created by T0 here:
#0 0x75eeee2f51f9 in pthread_create ../../../../src/libsanitizer/asan/asan_interceptors.cpp:245
#1 0x6296dd8eeab5 in server_init /home/fia8kif/work/tup-0.8-man10/src/tup/server/fuse_server.c:305
#2 0x6296ddc468e2 (/opt/tup/usr/bin/tup+0xbd58e2) (BuildId: f0825cc5244780f27b73398567d408e9880731ea)
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/fia8kif/work/tup-0.8-man10/src/tup/mempool.c:61 in mempool_alloc
Shadow bytes around the buggy address:
0x502000a8bb80: fa fa 04 fa fa fa fa fa fa fa fa fa fa fa fd fd
0x502000a8bc00: fa fa fa fa fa fa fa fa fa fa 04 fa fa fa 00 03
0x502000a8bc80: fa fa 00 01 fa fa 06 fa fa fa fa fa fa fa 00 03
0x502000a8bd00: fa fa fa fa fa fa 00 06 fa fa 00 06 fa fa fa fa
0x502000a8bd80: fa fa fd fd fa fa fa fa fa fa fa fa fa fa 00 06
=>0x502000a8be00: fa fa 00 06 fa fa fa fa fa fa[01]fa fa fa fa fa
0x502000a8be80: fa fa 07 fa fa fa fa fa fa fa fa fa fa fa fa fa
0x502000a8bf00: fa fa fa fa fa fa fd fd fa fa fa fa fa fa fa fa
0x502000a8bf80: fa fa 00 03 fa fa fa fa fa fa 07 fa fa fa 00 06
0x502000a8c000: fa fa 00 06 fa fa 04 fa fa fa 00 02 fa fa 00 06
0x502000a8c080: fa fa fa fa fa fa fa fa fa fa 00 03 fa fa fa fa
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
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==1882078==ABORTING
On a project with around 60000 rules: