On 26 December 2013 17:54, Dominique Pellé wrote: > You need to: > > - build vim with -g -O0 > - make sure vim is not stripped (uncomment #STRIP = /bin/true > in vim/src/Makefile). Or run vim from the vim/src/. directory, > as it is not stripped there. > - start vim with gdb: > $ cd vim/src > $ gdb ./vim > (gdb) run > ... and when it crashes... > (gdb) backtrace
Vim doesn't crash when compiled with -g -O0 so I don't get a stack trace, although it's impossible to edit the buffer as Lech said. > $ cd vim/src > $ valgrind --log-file=valgrind.log \ > --track-origins=yes \ > --num-callers=50 ./vim Attached is the Valgrind log. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
==29719== Memcheck, a memory error detector ==29719== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. ==29719== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info ==29719== Command: ./vim ==29719== Parent PID: 29274 ==29719== ==29719== Invalid free() / delete / delete[] / realloc() ==29719== at 0x4C27D4E: free (vg_replace_malloc.c:427) ==29719== by 0x4CEC94: vim_free (misc2.c:1744) ==29719== by 0x46AB3B: post_chdir (ex_docmd.c:8230) ==29719== by 0x46AD5F: ex_cd (ex_docmd.c:8324) ==29719== by 0x461B8D: do_one_cmd (ex_docmd.c:2695) ==29719== by 0x45F20C: do_cmdline (ex_docmd.c:1127) ==29719== by 0x48B9AC: apply_autocmds_group (fileio.c:9511) ==29719== by 0x48B25D: apply_autocmds_retval (fileio.c:9130) ==29719== by 0x4048A4: open_buffer (buffer.c:266) ==29719== by 0x451E35: do_ecmd (ex_cmds.c:3717) ==29719== by 0x46A484: do_exedit (ex_docmd.c:7923) ==29719== by 0x46A141: ex_edit (ex_docmd.c:7819) ==29719== by 0x461B8D: do_one_cmd (ex_docmd.c:2695) ==29719== by 0x45F20C: do_cmdline (ex_docmd.c:1127) ==29719== by 0x44677F: ex_execute (eval.c:21116) ==29719== by 0x461B8D: do_one_cmd (ex_docmd.c:2695) ==29719== by 0x45F20C: do_cmdline (ex_docmd.c:1127) ==29719== by 0x449E82: call_user_func (eval.c:22886) ==29719== by 0x433F2A: call_func (eval.c:8507) ==29719== by 0x433B3D: get_func_tv (eval.c:8349) ==29719== by 0x42F50E: eval7 (eval.c:5158) ==29719== by 0x42ED88: eval6 (eval.c:4810) ==29719== by 0x42E952: eval5 (eval.c:4626) ==29719== by 0x42DEC9: eval4 (eval.c:4319) ==29719== by 0x42DD25: eval3 (eval.c:4231) ==29719== by 0x42DBA4: eval2 (eval.c:4160) ==29719== by 0x42D9E3: eval1 (eval.c:4085) ==29719== by 0x433AA1: get_func_tv (eval.c:8334) ==29719== by 0x42C937: ex_call (eval.c:3465) ==29719== by 0x461B8D: do_one_cmd (ex_docmd.c:2695) ==29719== by 0x45F20C: do_cmdline (ex_docmd.c:1127) ==29719== by 0x4E59DE: nv_colon (normal.c:5459) ==29719== by 0x4DF014: normal_cmd (normal.c:1197) ==29719== by 0x5B054B: main_loop (main.c:1329) ==29719== by 0x5AFF79: main (main.c:1020) ==29719== Address 0x6b1d410 is not stack'd, malloc'd or (recently) free'd ==29719== ==29719== ==29719== HEAP SUMMARY: ==29719== in use at exit: 2,216,657 bytes in 24,072 blocks ==29719== total heap usage: 110,184 allocs, 86,113 frees, 246,569,564 bytes allocated ==29719== ==29719== LEAK SUMMARY: ==29719== definitely lost: 0 bytes in 0 blocks ==29719== indirectly lost: 0 bytes in 0 blocks ==29719== possibly lost: 489,300 bytes in 10,334 blocks ==29719== still reachable: 1,727,357 bytes in 13,738 blocks ==29719== suppressed: 0 bytes in 0 blocks ==29719== Rerun with --leak-check=full to see details of leaked memory ==29719== ==29719== For counts of detected and suppressed errors, rerun with: -v ==29719== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 4 from 4)
