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

59046Re: VIM-7.3 SEGV (cygwin)

Expand Messages
  • Bram Moolenaar
    Sep 18, 2010
      SungHyun Nam wrote:

      > If I edit and write '/etc/hosts', vim died. I can edit other
      > files in /etc. And I found /etc/hosts is a symbolic link.
      >
      > $ l /etc/hosts
      > lrwxrwxrwx 1 37 2009-09-07 14:48 /etc/hosts ->
      > /c/WINDOWS/system32/drivers/etc/hosts
      >
      > $ gdb ./vim.exe
      > (gdb) r -u NONE --noplugin /etc/hosts
      > Go<esc>dd:w<cr>
      >
      > Program received signal SIGSEGV, Segmentation fault.
      > throw_exception (value=0x10c, type=1, cmdname=0x57d9e1 "write")
      > at ex_eval.c:455
      > 455 mesg = excp->messages->throw_msg;
      > (gdb) p excp
      > $1 = (except_T *) 0xe4c240
      > (gdb) p excp->messages
      > $2 = (struct msglist *) 0x10c
      > (gdb) bt
      > #0 throw_exception (value=0x10c, type=1, cmdname=0x57d9e1 "write")
      > at ex_eval.c:455
      > #1 0x00457b6f in do_errthrow (cstack=0x22c67c, cmdname=0x57d9e1 "write")
      > at ex_eval.c:348
      > #2 0x00451def in do_cmdline (cmdline=0x0, getline=0x461ee0 <getexline>,
      > cookie=0x0, flags=0) at ex_docmd.c:2701
      > #3 0x004c1dc0 in nv_colon (cap=0x22cad8) at normal.c:5319

      [...]

      The first argument of throw_exception() is wrong. It comes from the
      global msg_list. It works on all other platforms, I can't guess why it
      fails in this specific situation.

      > And I found if I build it with '--without-x --disable-gui' instead
      > of --with-x --enable-gui=gtk2', no SEGV.
      > But the VIM GTK2 version dies though I run it with '-X' option.

      I don't see a direct relation.

      --
      "The question of whether computers can think is just like the question
      of whether submarines can swim." -- Edsger W. Dijkstra

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ download, build and distribute -- http://www.A-A-P.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
    • Show all 2 messages in this topic