Skip to content

Instantly share code, notes, and snippets.

@levouh
Created June 16, 2020 16:39
Show Gist options
  • Save levouh/5fcea6739ba892d1dbd6007c6af8120f to your computer and use it in GitHub Desktop.
Save levouh/5fcea6739ba892d1dbd6007c6af8120f to your computer and use it in GitHub Desktop.
SEGV Vim 8.2.0974
==12195== Memcheck, a memory error detector
==12195== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==12195== Using Valgrind-3.16.0 and LibVEX; rerun with -h for copyright info
==12195== Command: ./vim
==12195== Parent PID: 2134
==12195==
==12195== Invalid write of size 4
==12195== at 0x664D14: erase_internal (screen.c:286)
==12195== by 0x664E3D: erase (screen.c:307)
==12195== by 0x667115: erase (state.c:57)
==12195== by 0x66A07F: on_csi (state.c:1165)
==12195== by 0x661AA0: do_csi (parser.c:36)
==12195== by 0x6621FA: vterm_input_write (parser.c:240)
==12195== by 0x5EE583: term_write_job_output (terminal.c:1075)
==12195== by 0x5EE756: write_to_term (terminal.c:1146)
==12195== by 0x67992C: may_invoke_callback (channel.c:2964)
==12195== by 0x67C5A7: channel_parse_messages (channel.c:4656)
==12195== by 0x4C2388: parse_queued_messages (getchar.c:2188)
==12195== by 0x608940: inchar_loop (ui.c:290)
==12195== by 0x54445E: mch_inchar (os_unix.c:388)
==12195== by 0x60888D: ui_inchar (ui.c:224)
==12195== by 0x4C4332: inchar (getchar.c:3514)
==12195== by 0x4C3F43: vgetorpeek (getchar.c:3293)
==12195== by 0x4C1744: vgetc (getchar.c:1687)
==12195== by 0x4C1DF8: safe_vgetc (getchar.c:1914)
==12195== by 0x51CB19: normal_cmd (normal.c:569)
==12195== by 0x68F1AC: main_loop (main.c:1508)
==12195== by 0x68E517: vim_main2 (main.c:898)
==12195== by 0x68DC60: main (main.c:442)
==12195== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12195==
==12195==
==12195== Process terminating with default action of signal 11 (SIGSEGV)
==12195== at 0x556392B: kill (in /usr/lib64/libc-2.30.so)
==12195== by 0x546DF5: may_core_dump (os_unix.c:3423)
==12195== by 0x546D99: mch_exit (os_unix.c:3389)
==12195== by 0x68F577: getout (main.c:1716)
==12195== by 0x50C28E: preserve_exit (misc1.c:2189)
==12195== by 0x5449BE: deathtrap (os_unix.c:1108)
==12195== by 0x55636AF: ??? (in /usr/lib64/libc-2.30.so)
==12195== by 0x664D13: erase_internal (screen.c:286)
==12195== by 0x664E3D: erase (screen.c:307)
==12195== by 0x667115: erase (state.c:57)
==12195== by 0x66A07F: on_csi (state.c:1165)
==12195== by 0x661AA0: do_csi (parser.c:36)
==12195== by 0x6621FA: vterm_input_write (parser.c:240)
==12195== by 0x5EE583: term_write_job_output (terminal.c:1075)
==12195== by 0x5EE756: write_to_term (terminal.c:1146)
==12195== by 0x67992C: may_invoke_callback (channel.c:2964)
==12195== by 0x67C5A7: channel_parse_messages (channel.c:4656)
==12195== by 0x4C2388: parse_queued_messages (getchar.c:2188)
==12195== by 0x608940: inchar_loop (ui.c:290)
==12195== by 0x54445E: mch_inchar (os_unix.c:388)
==12195== by 0x60888D: ui_inchar (ui.c:224)
==12195== by 0x4C4332: inchar (getchar.c:3514)
==12195== by 0x4C3F43: vgetorpeek (getchar.c:3293)
==12195== by 0x4C1744: vgetc (getchar.c:1687)
==12195== by 0x4C1DF8: safe_vgetc (getchar.c:1914)
==12195== by 0x51CB19: normal_cmd (normal.c:569)
==12195== by 0x68F1AC: main_loop (main.c:1508)
==12195== by 0x68E517: vim_main2 (main.c:898)
==12195== by 0x68DC60: main (main.c:442)
==12195==
==12195== HEAP SUMMARY:
==12195== in use at exit: 4,259,316 bytes in 32,565 blocks
==12195== total heap usage: 91,624 allocs, 59,059 frees, 58,693,735 bytes allocated
==12195==
==12195== LEAK SUMMARY:
==12195== definitely lost: 468,165 bytes in 525 blocks
==12195== indirectly lost: 7,618 bytes in 416 blocks
==12195== possibly lost: 286,003 bytes in 5,115 blocks
==12195== still reachable: 3,497,530 bytes in 26,509 blocks
==12195== of which reachable via heuristic:
==12195== newarray : 1,536 bytes in 16 blocks
==12195== suppressed: 0 bytes in 0 blocks
==12195== Rerun with --leak-check=full to see details of leaked memory
==12195==
==12195== For lists of detected and suppressed errors, rerun with: -s
==12195== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment