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

Re: Crashing bug in 6.2f BETA in debug mode

Expand Messages
  • Dan Sharp
    To go along with this, the output I get from the same sequence with a MinGW-compiled gvim is: line 7: call TestMe( first , there ) ... function TestMe line 1:
    Message 1 of 7 , May 30 12:21 PM
    • 0 Attachment
      To go along with this, the output I get from the same sequence with a
      MinGW-compiled gvim is:

      line 7: call TestMe('first', 'there')
      >s
      function TestMe
      line 1: let i = a:hi
      >let a:hi
      a:hifunction testMe there

      The output from BCC 5.5-compiled gvim is:

      line 7: call TestMe('first', 'there')
      >s
      function TestMe
      line 1: let i = a:hi
      >let a:hi
      a:hi?????? there

      where ?????? looks like some garbage characters / random memory contents.

      The output from MVC-compiled gvim is:

      line 7: call TestMe('first', 'there')
      >s
      function TestMe
      line 1: let i = a:hi
      >let a:hi
      a:hifirst there


      Dan Sharp


      Ron Aaron wrote:
      > Here's the gdb information:
      >
      > (gdb) set args -f -u NONE
      > (gdb) run
      > Starting program: C:\vim\src/gvimd.exe -f -u NONE
      >
      > Program received signal SIGSEGV, Segmentation fault.
      > 0x00486ad0 in msg_puts_attr_len (str=0x4 <Address 0x4 out of bounds>,
      > maxlen=-1, attr=0) at message.c:1734
      > 1734 while (*s != NUL && (maxlen < 0 || (int)(s - str) < maxlen))
      > (gdb) p s
      > $1 = (char_u *) 0x4 <Address 0x4 out of bounds>
      >
      >
      > (gdb) bt
      > #0 0x00486ad0 in msg_puts_attr_len (str=0x4 <Address 0x4 out of bounds>,
      > maxlen=-1, attr=0) at message.c:1734
      > #1 0x004868f1 in msg_puts_attr (s=0x4 <Address 0x4 out of bounds>, attr=0)
      > at message.c:1618
      > #2 0x0048678a in msg_puts (s=0x4 <Address 0x4 out of bounds>)
      > at message.c:1555
      > #3 0x0042558d in list_one_var_a (prefix=0x77ccf59d "a:hi",
      > name=0x4 <Address 0x4 out of bounds>, type=2, string=0x77ccf6e0 "there")
      > at eval.c:8063
      > #4 0x004254a7 in list_one_var (v=0x22ed10, prefix=0x77ccf59d "a:hi")
      > at eval.c:8028
      > #5 0x0041b996 in ex_let (eap=0x22e340) at eval.c:996
      > #6 0x0043bf36 in do_one_cmd (cmdlinep=0x22e6f8, sourcing=1, cstack=0x22e434,
      > getline=0x44df5e <getexline>, cookie=0x0) at ex_docmd.c:2183
      > #7 0x00439877 in do_cmdline (cmdline=0x77ccf360 ":let a:hi",
      > getline=0x44df5e <getexline>, cookie=0x0, flags=17) at ex_docmd.c:869
      > #8 0x00432d4c in do_debug (cmd=0x77ccf6f1 "let i = a:hi") at ex_cmds2.c:201
      > #9 0x00432f58 in dbg_check_breakpoint (eap=0x22e7e0) at ex_cmds2.c:297
      > #10 0x0043a88e in do_one_cmd (cmdlinep=0x22eb98, sourcing=1, cstack=0x22e8d4,
      > getline=0x427d3a <get_func_line>, cookie=0x22ebc0) at ex_docmd.c:1483
      > #11 0x00439877 in do_cmdline (cmdline=0x0, getline=0x427d3a <get_func_line>,
      > cookie=0x22ebc0, flags=7) at ex_docmd.c:869
      > #12 0x0042770f in call_user_func (fp=0x77ccfa58, argcount=2, argvars=0x22ed04,
      > ---Type <return> to continue, or q <return> to quit---
      > retvar=0x22ee40, firstline=1, lastline=1) at eval.c:9134
      > #13 0x0041ef27 in call_func (name=0xcafc75 "TestMe", len=6, retvar=0x22ee40,
      > argcount=2, argvars=0x22ed04, firstline=1, lastline=1, doesrange=0x22ee34,
      > evaluate=1) at eval.c:3101
      > #14 0x0041eb2d in get_func_var (name=0xcafc75 "TestMe", len=6,
      > retvar=0x22ee40, arg=0x22ee5c, firstline=1, lastline=1,
      > doesrange=0x22ee34, evaluate=1) at eval.c:2960
      > #15 0x0041c1eb in ex_call (eap=0x22ee80) at eval.c:1295
      > #16 0x0043bf36 in do_one_cmd (cmdlinep=0x22f238, sourcing=1, cstack=0x22ef74,
      > getline=0, cookie=0x0) at ex_docmd.c:2183
      > #17 0x00439877 in do_cmdline (
      > cmdline=0x77cd040f "call TestMe('first','there')", getline=0, cookie=0x0,
      > flags=11) at ex_docmd.c:869
      > #18 0x00439126 in do_cmdline_cmd (
      > cmd=0x77cd040f "call TestMe('first','there')") at ex_docmd.c:547
      > #19 0x00432e20 in ex_debug (eap=0x22f290) at ex_cmds2.c:239
      > #20 0x0043bf36 in do_one_cmd (cmdlinep=0x22f648, sourcing=1, cstack=0x22f384,
      > getline=0x436518 <getsourceline>, cookie=0x22f670) at ex_docmd.c:2183
      > #21 0x00439877 in do_cmdline (cmdline=0x0, getline=0x436518 <getsourceline>,
      > cookie=0x22f670, flags=7) at ex_docmd.c:869
      > #22 0x0043631f in do_source (fname=0x77ccfda3 "func.vim", check_other=0,
      > is_vimrc=0) at ex_cmds2.c:2226
      > #23 0x00435df5 in cmd_source (fname=0x77ccfda3 "func.vim", eap=0x22f750)
    Your message has been successfully submitted and would be delivered to recipients shortly.