==16779==ERROR: AddressSanitizer: heap-use-after-free on address 0x61f0000739ac at pc 0x69161a bp 0x7ffc378ec460 sp 0x7ffc378ec458 READ of size 2 at 0x61f0000739ac thread T0 #0 0x691619 in clif_bl_type /home/testing/evol-all/server-code/src/map/clif.c:291 #1 0x646ad2 in clif_set_unit_walking /home/testing/evol-all/server-code/src/map/clif.c:1281 #2 0x7f0e41b08ae6 in HP_clif_set_unit_walking HPMHooking/HPMHooking_map.Hooks.inc:8144 #3 0xf5b23d in status_damage /home/testing/evol-all/server-code/src/map/status.c:1416 #4 0x43e604 in atkillmonster_sub /home/testing/evol-all/server-code/src/map/atcommand.c:2073 #5 0x9601ef in bl_vforeach /home/testing/evol-all/server-code/src/map/map.c:534 #6 0x999d7f in map_vforeachinmap /home/testing/evol-all/server-code/src/map/map.c:586 #7 0x95df36 in map_foreachinmap /home/testing/evol-all/server-code/src/map/map.c:607 #8 0x479309 in atcommand_killmonster /home/testing/evol-all/server-code/src/map/atcommand.c:2092 #9 0x4f07b0 in atcommand_exec /home/testing/evol-all/server-code/src/map/atcommand.c:10012 #10 0x7f0e410e0c6f in epc_process_chat_message_pre ../../src/emap/pc.c:742 #11 0x7f0e41c350d2 in HP_pc_process_chat_message HPMHooking/HPMHooking_map.Hooks.inc:58928 #12 0x6862c3 in clif_process_chat_message /home/testing/evol-all/server-code/src/map/clif.c:9216 #13 0x66ac7a in clif_parse_GlobalMessage /home/testing/evol-all/server-code/src/map/clif.c:10057 #14 0x630581 in clif_parse /home/testing/evol-all/server-code/src/map/clif.c:19345 #15 0x10669c6 in do_sockets /home/testing/evol-all/server-code/src/common/socket.c:1026 #16 0x43999c in main /home/testing/evol-all/server-code/src/common/core.c:560 #17 0x7f0e45879b44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44) #18 0x43a2b1 (/home/testing/evol-all/server-data/map-server+0x43a2b1) 0x61f0000739ac is located 300 bytes inside of 3000-byte region [0x61f000073880,0x61f000074438) freed by thread T0 here: #0 0x7f0e47a0d527 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x54527) #1 0x9fa55e in mob_destroy_mob_db /home/testing/evol-all/server-code/src/map/mob.c:5198 #2 0x9f80a8 in mob_clone_delete /home/testing/evol-all/server-code/src/map/mob.c:3634 #3 0xfbce7b in unit_free /home/testing/evol-all/server-code/src/map/unit.c:2874 #4 0xf5d3f6 in status_damage /home/testing/evol-all/server-code/src/map/status.c:1505 #5 0x43e604 in atkillmonster_sub /home/testing/evol-all/server-code/src/map/atcommand.c:2073 #6 0x9601ef in bl_vforeach /home/testing/evol-all/server-code/src/map/map.c:534 #7 0x999d7f in map_vforeachinmap /home/testing/evol-all/server-code/src/map/map.c:586 #8 0x95df36 in map_foreachinmap /home/testing/evol-all/server-code/src/map/map.c:607 #9 0x479309 in atcommand_killmonster /home/testing/evol-all/server-code/src/map/atcommand.c:2092 #10 0x4f07b0 in atcommand_exec /home/testing/evol-all/server-code/src/map/atcommand.c:10012 #11 0x7f0e410e0c6f in epc_process_chat_message_pre ../../src/emap/pc.c:742 #12 0x7f0e41c350d2 in HP_pc_process_chat_message HPMHooking/HPMHooking_map.Hooks.inc:58928 #13 0x6862c3 in clif_process_chat_message /home/testing/evol-all/server-code/src/map/clif.c:9216 #14 0x66ac7a in clif_parse_GlobalMessage /home/testing/evol-all/server-code/src/map/clif.c:10057 #15 0x630581 in clif_parse /home/testing/evol-all/server-code/src/map/clif.c:19345 #16 0x10669c6 in do_sockets /home/testing/evol-all/server-code/src/common/socket.c:1026 #17 0x43999c in main /home/testing/evol-all/server-code/src/common/core.c:560 #18 0x7f0e45879b44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44) previously allocated by thread T0 here: #0 0x7f0e47a0d885 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x54885) #1 0x1052518 in aCalloc_ /home/testing/evol-all/server-code/src/common/memmgr.c:131 #2 0xa175d9 in mob_clone_spawn /home/testing/evol-all/server-code/src/map/mob.c:3441 #3 0x4dfd01 in atcommand_clone /home/testing/evol-all/server-code/src/map/atcommand.c:7920 #4 0x4f07b0 in atcommand_exec /home/testing/evol-all/server-code/src/map/atcommand.c:10012 #5 0x7f0e410e0c6f in epc_process_chat_message_pre ../../src/emap/pc.c:742 #6 0x7f0e41c350d2 in HP_pc_process_chat_message HPMHooking/HPMHooking_map.Hooks.inc:58928 #7 0x6862c3 in clif_process_chat_message /home/testing/evol-all/server-code/src/map/clif.c:9216 #8 0x66ac7a in clif_parse_GlobalMessage /home/testing/evol-all/server-code/src/map/clif.c:10057 #9 0x630581 in clif_parse /home/testing/evol-all/server-code/src/map/clif.c:19345 #10 0x10669c6 in do_sockets /home/testing/evol-all/server-code/src/common/socket.c:1026 #11 0x43999c in main /home/testing/evol-all/server-code/src/common/core.c:560 #12 0x7f0e45879b44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44) SUMMARY: AddressSanitizer: heap-use-after-free /home/testing/evol-all/server-code/src/map/clif.c:291 clif_bl_type Shadow bytes around the buggy address: 0x0c3e800066e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c3e800066f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c3e80006700: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c3e80006710: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c3e80006720: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd =>0x0c3e80006730: fd fd fd fd fd[fd]fd fd fd fd fd fd fd fd fd fd 0x0c3e80006740: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c3e80006750: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c3e80006760: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c3e80006770: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c3e80006780: 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 Contiguous container OOB:fc ASan internal: fe ==16779==ABORTING Returned 1. Probably error in server