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

crash in write_viminfo_history after latest patches

Expand Messages
  • Ron Aaron
    (gdb) l 6220 if (i = 0) 6221 while (num_saved 0 6222 && !(round == 2 && i = viminfo_hisidx[type])) 6223 { 6224 p = round == 1 ?
    Message 1 of 2 , Apr 15, 2013
    • 0 Attachment
      (gdb) l
      6220 if (i >= 0)
      6221 while (num_saved > 0
      6222 && !(round == 2 && i >= viminfo_hisidx[type]))
      6223 {
      6224 p = round == 1 ? history[type][i].hisstr
      6225 : viminfo_history[type][i];
      6226 if (p != NULL && (round == 2 || !history[type][i].viminfo))
      6227 {
      6228 --num_saved;
      6229 fputc(hist_type2char(type, TRUE), fp);
      (gdb) p type
      $1 = 0
      (gdb) p i
      $2 = 0
      (gdb) p p
      $3 = (char_u *) 0x8613550 "b bin/makevim"
      (gdb) fr 0
      #0 0x080bf85c in write_viminfo_history (fp=0x840edc0) at ex_getln.c:6225
      6225 : viminfo_history[type][i];
      (gdb) p history[type]
      $4 = (histentry_T *) 0x8438800
      (gdb) p history[type][i]
      $5 = {hisnum = 202, viminfo = 1, hisstr = 0x8613550 "b bin/makevim"}
      (gdb) p history[type][i].hisstr
      $6 = (char_u *) 0x8613550 "b bin/makevim"
      (gdb) p viminfo_history
      $7 = {0x0, 0x0, 0x0, 0x0, 0x0}
      (gdb) p viminfo_history[type]
      $8 = (char_u **) 0x0
      (gdb) p viminfo_history[type][i]

      --
      --
      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 vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Bram Moolenaar
      ... Thanks for the debug output. I had also noticed crash at exit but was unable to pinpoint it. I ll make a patch. -- If Microsoft would build a car... ...
      Message 2 of 2 , Apr 15, 2013
      • 0 Attachment
        Ron Aaron wrote:

        > (gdb) l
        > 6220 if (i >= 0)
        > 6221 while (num_saved > 0
        > 6222 && !(round == 2 && i >= viminfo_hisidx[type]))
        > 6223 {
        > 6224 p = round == 1 ? history[type][i].hisstr
        > 6225 : viminfo_history[type][i];
        > 6226 if (p != NULL && (round == 2 || !history[type][i].viminfo))
        > 6227 {
        > 6228 --num_saved;
        > 6229 fputc(hist_type2char(type, TRUE), fp);
        > (gdb) p type
        > $1 = 0
        > (gdb) p i
        > $2 = 0
        > (gdb) p p
        > $3 = (char_u *) 0x8613550 "b bin/makevim"
        > (gdb) fr 0
        > #0 0x080bf85c in write_viminfo_history (fp=0x840edc0) at ex_getln.c:6225
        > 6225 : viminfo_history[type][i];
        > (gdb) p history[type]
        > $4 = (histentry_T *) 0x8438800
        > (gdb) p history[type][i]
        > $5 = {hisnum = 202, viminfo = 1, hisstr = 0x8613550 "b bin/makevim"}
        > (gdb) p history[type][i].hisstr
        > $6 = (char_u *) 0x8613550 "b bin/makevim"
        > (gdb) p viminfo_history
        > $7 = {0x0, 0x0, 0x0, 0x0, 0x0}
        > (gdb) p viminfo_history[type]
        > $8 = (char_u **) 0x0
        > (gdb) p viminfo_history[type][i]

        Thanks for the debug output. I had also noticed crash at exit but was
        unable to pinpoint it.

        I'll make a patch.

        --
        If Microsoft would build a car...
        ... You'd have to press the "Start" button to turn the engine off.

        /// 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

        ---
        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 vim_dev+unsubscribe@....
        For more options, visit https://groups.google.com/groups/opt_out.
      Your message has been successfully submitted and would be delivered to recipients shortly.