Christian wrote:

> Comment #3 on issue 230 by [email protected]: "Vim: Caught deadly  
> signal SEGV"
> http://code.google.com/p/vim/issues/detail?id=230
> 
> I can sometimes reproduce it. This patch fixes the crash for me:
> diff --git a/src/window.c b/src/window.c
> --- a/src/window.c
> +++ b/src/window.c
> @@ -4721,6 +4721,8 @@ win_alloc_lines(wp)
>   win_free_lsize(wp)
>       win_T      *wp;
>   {
> +    if (wp == NULL)
> +       return;
>       vim_free(wp->w_lines);
>       wp->w_lines = NULL;
>   }
> 
> There is however some other strange going on. Half of the times I run
> ./vim -N -g -f --noplugin -u /tmp/vimrc file.c
> the window opens fine, but Vim seems to get confused about the screensize.  
> The last line is not drawn correctly. If I do :set number, it jumps from 26  
> in the second last line to 32 in the last line.

Yes, it looks like we are fixing a symptom, not the cause.  I'll include
this patch to avoid the crash, but we should keep looking for the cause.

-- 
       Bravely bold Sir Robin, rode forth from Camelot,
       He was not afraid to die, Oh Brave Sir Robin,
       He was not at all afraid to be killed in nasty ways
       Brave, brave, brave, brave Sir Robin.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui