Skip to content

Instantly share code, notes, and snippets.

@justinmk
Created December 9, 2018 15:06
Show Gist options
  • Save justinmk/cdba062b180e492c1d688cb4b3cb3f0f to your computer and use it in GitHub Desktop.
Save justinmk/cdba062b180e492c1d688cb4b3cb3f0f to your computer and use it in GitHub Desktop.
==22964==ERROR: AddressSanitizer: heap-use-after-free on address 0x60d000004490 at pc 0x0000007e96fc bp 0x7ffec5b02a30 sp 0x7ffec5b02a28
READ of size 8 at 0x60d000004490 thread T0
#0 0x7e96fb in ex_diffgetput /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:2566:9
#1 0x7e61c6 in nv_diffgetput /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:2415:3
#2 0x1249049 in nv_put /home/travis/build/neovim/neovim/build/../src/nvim/normal.c:7829:7
#3 0x122102b in normal_execute /home/travis/build/neovim/neovim/build/../src/nvim/normal.c:1137:3
#4 0x121737e in normal_cmd /home/travis/build/neovim/neovim/build/../src/nvim/normal.c:8047:9
#5 0xc6aed8 in exec_normal /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:8288:5
#6 0xc6abdb in exec_normal_cmd /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:8271:3
#7 0xca903b in ex_normal /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:8181:7
#8 0xc35450 in do_one_cmd /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:2238:5
#9 0xc13bf7 in do_cmdline /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:593:20
#10 0x8f3e77 in call_user_func /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:21567:3
#11 0x8be218 in call_func /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:6381:11
#12 0x8d3963 in get_func_tv /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:6142:11
#13 0x8cc4ee in ex_call /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:2742:9
#14 0xc35450 in do_one_cmd /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:2238:5
#15 0xc13bf7 in do_cmdline /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:593:20
#16 0x914950 in ex_execute /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:19703:7
#17 0xc35450 in do_one_cmd /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:2238:5
#18 0xc13bf7 in do_cmdline /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:593:20
#19 0x8f3e77 in call_user_func /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:21567:3
#20 0x8be218 in call_func /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:6381:11
#21 0x8d3963 in get_func_tv /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:6142:11
#22 0x8cc4ee in ex_call /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:2742:9
#23 0xc35450 in do_one_cmd /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:2238:5
#24 0xc13bf7 in do_cmdline /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:593:20
#25 0xbfbe10 in do_source /home/travis/build/neovim/neovim/build/../src/nvim/ex_cmds2.c:3010:3
#26 0xbf82d4 in cmd_source /home/travis/build/neovim/neovim/build/../src/nvim/ex_cmds2.c:2755:14
#27 0xbf8400 in ex_source /home/travis/build/neovim/neovim/build/../src/nvim/ex_cmds2.c:2736:3
#28 0xc35450 in do_one_cmd /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:2238:5
#29 0xc13bf7 in do_cmdline /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:593:20
#30 0xc19da5 in do_cmdline_cmd /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:269:10
#31 0xfabd9b in exe_commands /home/travis/build/neovim/neovim/build/../src/nvim/main.c:1707:5
#32 0xf9958e in main /home/travis/build/neovim/neovim/build/../src/nvim/main.c:550:5
#33 0x7f401412c82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#34 0x44f6c8 in _start (/home/travis/build/neovim/neovim/build/bin/nvim+0x44f6c8)
0x60d000004490 is located 16 bytes inside of 136-byte region [0x60d000004480,0x60d000004508)
freed by thread T0 here:
#0 0x507b90 in __interceptor_cfree.localalias.0 (/home/travis/build/neovim/neovim/build/bin/nvim+0x507b90)
#1 0x10c4284 in xfree /home/travis/build/neovim/neovim/build/../src/nvim/memory.c:135:3
#2 0x7cc10f in diff_clear /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:1711:5
#3 0x7cb525 in ex_diffupdate /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:884:3
#4 0x7e4fb2 in diff_infold /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:2371:5
#5 0xe4b0de in foldlevelDiff /home/travis/build/neovim/neovim/build/../src/nvim/fold.c:2868:7
#6 0xe2c68d in foldUpdateIEMS /home/travis/build/neovim/neovim/build/../src/nvim/fold.c:1975:7
#7 0xe2a554 in foldUpdate /home/travis/build/neovim/neovim/build/../src/nvim/fold.c:793:5
#8 0x112d204 in changed_common /home/travis/build/neovim/neovim/build/../src/nvim/misc1.c:2104:7
#9 0x111c288 in changed_lines /home/travis/build/neovim/neovim/build/../src/nvim/misc1.c:1974:3
#10 0x7ed3ac in ex_diffgetput /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:2689:7
#11 0x7e61c6 in nv_diffgetput /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:2415:3
#12 0x1249049 in nv_put /home/travis/build/neovim/neovim/build/../src/nvim/normal.c:7829:7
#13 0x122102b in normal_execute /home/travis/build/neovim/neovim/build/../src/nvim/normal.c:1137:3
#14 0x121737e in normal_cmd /home/travis/build/neovim/neovim/build/../src/nvim/normal.c:8047:9
#15 0xc6aed8 in exec_normal /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:8288:5
#16 0xc6abdb in exec_normal_cmd /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:8271:3
#17 0xca903b in ex_normal /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:8181:7
#18 0xc35450 in do_one_cmd /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:2238:5
#19 0xc13bf7 in do_cmdline /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:593:20
#20 0x8f3e77 in call_user_func /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:21567:3
#21 0x8be218 in call_func /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:6381:11
#22 0x8d3963 in get_func_tv /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:6142:11
#23 0x8cc4ee in ex_call /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:2742:9
#24 0xc35450 in do_one_cmd /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:2238:5
#25 0xc13bf7 in do_cmdline /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:593:20
#26 0x914950 in ex_execute /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:19703:7
#27 0xc35450 in do_one_cmd /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:2238:5
#28 0xc13bf7 in do_cmdline /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:593:20
#29 0x8f3e77 in call_user_func /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:21567:3
previously allocated by thread T0 here:
#0 0x507d48 in malloc (/home/travis/build/neovim/neovim/build/bin/nvim+0x507d48)
#1 0x10c3fb4 in try_malloc /home/travis/build/neovim/neovim/build/../src/nvim/memory.c:89:15
#2 0x10c4174 in xmalloc /home/travis/build/neovim/neovim/build/../src/nvim/memory.c:123:15
#3 0x7f3612 in diff_alloc_new /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:509:18
#4 0x7fc687 in diff_read /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:1647:12
#5 0x7cdb29 in diff_try_update /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:834:5
#6 0x7cbc30 in ex_diffupdate /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:916:3
#7 0x7d7254 in diff_check /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:1740:5
#8 0x7c2948 in diff_redraw /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:648:13
#9 0x7c434c in diff_buf_add /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:163:7
#10 0x7c3d1f in diff_buf_adjust /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:138:5
#11 0x135eb85 in set_bool_option /home/travis/build/neovim/neovim/build/../src/nvim/option.c:3923:5
#12 0x133fef4 in set_option_value /home/travis/build/neovim/neovim/build/../src/nvim/option.c:4894:18
#13 0x7d3bba in set_diff_option /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:1325:5
#14 0x7d29bd in diff_win_options /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:1392:3
#15 0x7d3917 in ex_diffthis /home/travis/build/neovim/neovim/build/../src/nvim/diff.c:1315:3
#16 0xc35450 in do_one_cmd /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:2238:5
#17 0xc13bf7 in do_cmdline /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:593:20
#18 0x8f3e77 in call_user_func /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:21567:3
#19 0x8be218 in call_func /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:6381:11
#20 0x8d3963 in get_func_tv /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:6142:11
#21 0x8cc4ee in ex_call /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:2742:9
#22 0xc35450 in do_one_cmd /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:2238:5
#23 0xc13bf7 in do_cmdline /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:593:20
#24 0x914950 in ex_execute /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:19703:7
#25 0xc35450 in do_one_cmd /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:2238:5
#26 0xc13bf7 in do_cmdline /home/travis/build/neovim/neovim/build/../src/nvim/ex_docmd.c:593:20
#27 0x8f3e77 in call_user_func /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:21567:3
#28 0x8be218 in call_func /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:6381:11
#29 0x8d3963 in get_func_tv /home/travis/build/neovim/neovim/build/../src/nvim/eval.c:6142:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment