Vim crashes with this script. :autocmd BufRead * let w:foo = 'bar' :vimgrep baz *
Backtrace is (gdb) bt #0 0x00c1b422 in __kernel_vsyscall () #1 0x00adb4d1 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #2 0x00ade932 in *__GI_abort () at abort.c:92 #3 0x00b11ee5 in __libc_message (do_abort=2, fmt=0xbd5438 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:189 #4 0x00b1bff1 in malloc_printerr (action=<value optimized out>, str=0x6 <Address 0x6 out of bounds>, ptr=0x826b298) at malloc.c:6217 #5 0x00b1d6f2 in _int_free (av=<value optimized out>, p=<value optimized out>) at malloc.c:4750 #6 0x00b2079d in *__GI___libc_free (mem=0x826b298) at malloc.c:3716 #7 0x08130664 in vim_free (x=0x826b298) at misc2.c:1639 #8 0x080a9002 in vars_clear_ext (ht=0x8266fb0, free_val=1) at eval.c:18973 #9 0x080a8f87 in vars_clear (ht=0x8266fb0) at eval.c:18943 #10 0x080e90ca in aucmd_restbuf (aco=0xbfffc2e0) at fileio.c:8578 #11 0x08171192 in load_dummy_buffer (fname=0x82518a0 "INSTALLami.txt") at quickfix.c:3447 #12 0x08170862 in ex_vimgrep (eap=0xbfffe53c) at quickfix.c:3146 #13 0x080c3c3d in do_one_cmd (cmdlinep=0xbfffe6f0, sourcing=1, cstack=0xbfffe6f8, fgetline=0x80bfb3c <getsourceline>, cookie=0xbfffea8c) at ex_docmd.c:2627 #14 0x080c1516 in do_cmdline (cmdline=0x8263810 "autocmd BufRead * let w:foo = 'bar'", getline=0x80bfb3c <getsourceline>, cookie=0xbfffea8c, flags=7) at ex_docmd.c:1096 #15 0x080bf859 in do_source (fname=0x826e16b "a.vim", check_other=0, is_vimrc=0) at ex_cmds2.c:3116 #16 0x080bf13c in cmd_source (fname=0x826e16b "a.vim", eap=0xbfffeb9c) at ex_cmds2.c:2737 #17 0x080bf094 in ex_source (eap=0xbfffeb9c) at ex_cmds2.c:2710 #18 0x080c3c3d in do_one_cmd (cmdlinep=0xbfffed50, sourcing=0, cstack=0xbfffed58, fgetline=0x80d6b30 <getexline>, cookie=0x0) at ex_docmd.c:2627 #19 0x080c1516 in do_cmdline (cmdline=0x0, getline=0x80d6b30 <getexline>, cookie=0x0, flags=0) at ex_docmd.c:1096 #20 0x081456a7 in nv_colon (cap=0xbffff0bc) at normal.c:5224 #21 0x0813ef40 in normal_cmd (oap=0xbffff178, toplevel=1) at normal.c:1188 #22 0x081033c2 in main_loop (cmdwin=0, noexmode=0) at main.c:1204 #23 0x08102eb9 in main (argc=3, argv=0xbffff3b4) at main.c:948 Please check the following patch. Index: fileio.c =================================================================== --- fileio.c (revision 1646) +++ fileio.c (working copy) @@ -8576,6 +8576,7 @@ curwin = firstwin; # ifdef FEAT_EVAL vars_clear(&aucmd_win->w_vars.dv_hashtab); /* free all w: variables */ + hash_init(&aucmd_win->w_vars.dv_hashtab); # endif #else curwin = aco->save_curwin; -- Yukihiro Nakadaira - yukihiro.nakada...@gmail.com --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---