Loading ...
Sorry, an error occurred while loading the content.
 

Re: Vim crashes when loading autoload function is interrupted with CTRL-C.

Expand Messages
  • Bram Moolenaar
    ... Thanks for the patch. I ll put it near the top of the todo list. -- hundred-and-one symptoms of being an internet addict: 105. When someone asks you for
    Message 1 of 3 , Oct 27, 2011
      Yukihiro Nakadaira wrote:

      > Vim crashes when loading autoload function is interrupted with CTRL-C.
      >
      > Steps to reproduce:
      >
      > $ cat test.vim
      > " allocate globvarht.hi_array.
      > for i in range(1000)
      > let g:["x_" . i] = i
      > endfor
      > echo "Press CTRL-C after waiting several seconds"
      > call xxx#yyy#zzz()
      >
      > $ cat test/autoload/xxx/yyy.vim
      > " eat memory...
      > let i = 0
      > while 1
      > let g:["x_" . i] = repeat('x', i)
      > let i += 1
      > endwhile
      >
      > $ vim -u NONE -N --cmd "set runtimepath+=$PWD/test"
      > :source test.vim
      >
      > Then, press CTRL-C after waiting several seconds.
      >
      >
      > The following patch fixes this problem. Please check it.
      > hi may become invalid pointer while processing autoload script.

      Thanks for the patch. I'll put it near the top of the todo list.

      --
      hundred-and-one symptoms of being an internet addict:
      105. When someone asks you for your address, you tell them your URL.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.