$ ./src/emacs ================================================================= ==74401==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0x7ffe72b89e70 in thread T0 #0 0x7fa972cb76a8 in __interceptor_free ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:52 #1 0x55dbfb6adcb7 in xfree /home/philip/Source/emacs/src/alloc.c:845 #2 0x55dbfb7158cc in safe_free /home/philip/Source/emacs/src/lisp.h:5409 #3 0x55dbfb72486b in apply_lambda /home/philip/Source/emacs/src/eval.c:3111 #4 0x55dbfb7211b3 in eval_sub /home/philip/Source/emacs/src/eval.c:2547 #5 0x55dbfb717052 in Fprogn /home/philip/Source/emacs/src/eval.c:436 #6 0x55dbfb6f889e in Fsave_current_buffer /home/philip/Source/emacs/src/editfns.c:869 #7 0x55dbfb7202af in eval_sub /home/philip/Source/emacs/src/eval.c:2451 #8 0x55dbfb717052 in Fprogn /home/philip/Source/emacs/src/eval.c:436 #9 0x55dbfb7202af in eval_sub /home/philip/Source/emacs/src/eval.c:2451 #10 0x55dbfb716dd8 in Fif /home/philip/Source/emacs/src/eval.c:391 #11 0x55dbfb7202af in eval_sub /home/philip/Source/emacs/src/eval.c:2451 #12 0x55dbfb717052 in Fprogn /home/philip/Source/emacs/src/eval.c:436 #13 0x55dbfb719c61 in Flet /home/philip/Source/emacs/src/eval.c:1026 #14 0x55dbfb7202af in eval_sub /home/philip/Source/emacs/src/eval.c:2451 #15 0x55dbfb717052 in Fprogn /home/philip/Source/emacs/src/eval.c:436 #16 0x55dbfb7250fe in funcall_lambda /home/philip/Source/emacs/src/eval.c:3235 #17 0x55dbfb7231d1 in funcall_general /home/philip/Source/emacs/src/eval.c:2959 #18 0x55dbfb7c0ab9 in exec_byte_code /home/philip/Source/emacs/src/bytecode.c:811 #19 0x55dbfb72446b in fetch_and_exec_byte_code /home/philip/Source/emacs/src/eval.c:3083 #20 0x55dbfb724c00 in funcall_lambda /home/philip/Source/emacs/src/eval.c:3155 #21 0x55dbfb7230ac in funcall_general /home/philip/Source/emacs/src/eval.c:2947 #22 0x55dbfb723553 in Ffuncall /home/philip/Source/emacs/src/eval.c:2997 #23 0x55dbfb72241c in run_hook_wrapped_funcall /home/philip/Source/emacs/src/eval.c:2775 #24 0x55dbfb72286b in run_hook_with_args /home/philip/Source/emacs/src/eval.c:2856 #25 0x55dbfb7224af in Frun_hook_wrapped /home/philip/Source/emacs/src/eval.c:2790 #26 0x55dbfb7242e9 in funcall_subr /home/philip/Source/emacs/src/eval.c:3061 #27 0x55dbfb7c0a90 in exec_byte_code /home/philip/Source/emacs/src/bytecode.c:809 #28 0x55dbfb72446b in fetch_and_exec_byte_code /home/philip/Source/emacs/src/eval.c:3083 #29 0x55dbfb724c00 in funcall_lambda /home/philip/Source/emacs/src/eval.c:3155 #30 0x55dbfb7230ac in funcall_general /home/philip/Source/emacs/src/eval.c:2947 #31 0x55dbfb723553 in Ffuncall /home/philip/Source/emacs/src/eval.c:2997 #32 0x55dbfb57b1a5 in call1 /home/philip/Source/emacs/src/lisp.h:3247 #33 0x55dbfb581f85 in Fkill_emacs /home/philip/Source/emacs/src/emacs.c:2884 #34 0x55dbfb723a9e in funcall_subr /home/philip/Source/emacs/src/eval.c:3038 #35 0x55dbfb7c0a90 in exec_byte_code /home/philip/Source/emacs/src/bytecode.c:809 #36 0x55dbfb72446b in fetch_and_exec_byte_code /home/philip/Source/emacs/src/eval.c:3083 #37 0x55dbfb724c00 in funcall_lambda /home/philip/Source/emacs/src/eval.c:3155 #38 0x55dbfb7230ac in funcall_general /home/philip/Source/emacs/src/eval.c:2947 #39 0x55dbfb723553 in Ffuncall /home/philip/Source/emacs/src/eval.c:2997 #40 0x55dbfb70f126 in Ffuncall_interactively /home/philip/Source/emacs/src/callint.c:250 #41 0x55dbfb7242e9 in funcall_subr /home/philip/Source/emacs/src/eval.c:3061 #42 0x55dbfb723060 in funcall_general /home/philip/Source/emacs/src/eval.c:2943 #43 0x55dbfb723553 in Ffuncall /home/philip/Source/emacs/src/eval.c:2997 #44 0x55dbfb7130fa in Fcall_interactively /home/philip/Source/emacs/src/callint.c:787 #45 0x55dbfb723b6b in funcall_subr /home/philip/Source/emacs/src/eval.c:3040 #46 0x55dbfb7c0a90 in exec_byte_code /home/philip/Source/emacs/src/bytecode.c:809 #47 0x55dbfb72446b in fetch_and_exec_byte_code /home/philip/Source/emacs/src/eval.c:3083 #48 0x55dbfb724c00 in funcall_lambda /home/philip/Source/emacs/src/eval.c:3155 #49 0x55dbfb7230ac in funcall_general /home/philip/Source/emacs/src/eval.c:2947 #50 0x55dbfb723553 in Ffuncall /home/philip/Source/emacs/src/eval.c:2997 #51 0x55dbfb58481a in call1 /home/philip/Source/emacs/src/lisp.h:3247 #52 0x55dbfb58b2d4 in command_loop_1 /home/philip/Source/emacs/src/keyboard.c:1494 #53 0x55dbfb71b9c0 in internal_condition_case /home/philip/Source/emacs/src/eval.c:1474 #54 0x55dbfb58985d in command_loop_2 /home/philip/Source/emacs/src/keyboard.c:1124 #55 0x55dbfb71a346 in internal_catch /home/philip/Source/emacs/src/eval.c:1197 #56 0x55dbfb589785 in command_loop /home/philip/Source/emacs/src/keyboard.c:1102 #57 0x55dbfb5880eb in recursive_edit_1 /home/philip/Source/emacs/src/keyboard.c:711 #58 0x55dbfb5884af in Frecursive_edit /home/philip/Source/emacs/src/keyboard.c:794 #59 0x55dbfb580b41 in main /home/philip/Source/emacs/src/emacs.c:2530 #60 0x7fa970438189 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #61 0x7fa970438244 in __libc_start_main_impl ../csu/libc-start.c:381 #62 0x55dbfb280830 in _start (/home/philip/Source/emacs/src/emacs+0x132830) Address 0x7ffe72b89e70 is located in stack of thread T0 SUMMARY: AddressSanitizer: bad-free ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:52 in __interceptor_free ==74401==ABORTING