Hi,

On 11/11/06, Marc Weber <[EMAIL PROTECTED]> wrote:
On Sat, Nov 11, 2006 at 04:27:50PM +0100, A.J.Mechelynck wrote:
> Marc Weber wrote:
> >How would you try to track this error down?
> >Causing vimscript code:
> >
> >     echo "tag_text is"
> >     echo tag_text
> >     echo "if"
> >     echo len(tag_text)
> >             if len(tag_text)>0
> >             echo "in if"
> >
> >output:
> >
> >     tag_text is
> >     []
> >     if
> >     0
> >
> >Then vim either hangs, crashes and occasionally shows some internal error..
> >the shell shows this ugly string:
> >*** glibc detected *** free(): invalid pointer: 0x084b1f0f ***
> >
> >This might be caused anywhere, right?
> >Would a calling stack trace or output of gvim -Vfile help?
> >
> >Marc
> >
>
> Your script terminates unexpectedly, before the "endif" corresponding to
> "if len(tag_text)>0".

Sorry,
I've forgotten to paste one line

        echo "tag_text is"
        echo tag_text
        echo "if"
        echo len(tag_text)
        if len(tag_text)>0
                echo "in if"
                [...]
        endif
        echo "after if"
after if isn't printed any more.
The problem is this comparison:
  if len(tag_text)>0

this line causes the same error
  if tag_text!=[]

So I assume the problem is caused somwhere in vim C source code?


You need to build Vim with debug information and run Vim from gdb
and execute the above code. When Vim crashes, you should be in
the gdb prompt and you can get additional information about this crash.

- Yegappan

Reply via email to