Crash in 7.3

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Crash in 7.3

Björn Winckler
Hi,

I can reliably reproduce a crashing bug in the 7.3 branch (but I don't
have a fix, sorry).  Here's how:

1. Unpack the attached file. It contains two Haskell files: Main.hs and More.hs
2. gvim -u NONE -U NONE --noplugin Main.hs
3. :syntax enable
4. :vimgrep where *.hs

The last step crashes every time for me (the line numbers may be off,
I'm using MacVim source code) with:

Vim: Caught deadly signal SEGV
Vim: Finished.

Running through gdb I see the following:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00000000000002d4
0x0000000100189a11 in syn_cmd_clear (eap=0x7fff5fbfb530, syncing=0) at
syntax.c:3525
3525    if (curwin->w_s->b_syn_topgrp != 0)
(gdb) p curwin
$1 = (win_T *) 0x10189d800
(gdb) p curwin->w_s
$2 = (synblock_T *) 0x0

There's the problem.

According to a comment in a header curwin->w_s often points to
curbuf->b_s, but the latter is non-NULL (if that is of any help).

Let me know if I can provide any more info.

Björn

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

hs.tar.bz2 (306 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Crash in 7.3

James Vega-3
On Wed, Jun 9, 2010 at 12:36 PM, björn <[hidden email]> wrote:

> I can reliably reproduce a crashing bug in the 7.3 branch (but I don't
> have a fix, sorry).  Here's how:
>
> 1. Unpack the attached file. It contains two Haskell files: Main.hs and More.hs
> 2. gvim -u NONE -U NONE --noplugin Main.hs
> 3. :syntax enable
> 4. :vimgrep where *.hs
>
> The last step crashes every time for me (the line numbers may be off,
> I'm using MacVim source code) with:
>
> Vim: Caught deadly signal SEGV
> Vim: Finished.
>
> Running through gdb I see the following:
>
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_INVALID_ADDRESS at address: 0x00000000000002d4
> 0x0000000100189a11 in syn_cmd_clear (eap=0x7fff5fbfb530, syncing=0) at
> syntax.c:3525
> 3525        if (curwin->w_s->b_syn_topgrp != 0)
> (gdb) p curwin
> $1 = (win_T *) 0x10189d800
> (gdb) p curwin->w_s
> $2 = (synblock_T *) 0x0

Are you using the latest code from Mercurial?  Bram committed a fix for
a similar crash on Monday:

http://code.google.com/p/vim/source/detail?r=772bfca06c18d559c651645dee633b629e862516

--
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[hidden email]>

--
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
Reply | Threaded
Open this post in threaded view
|

Re: Crash in 7.3

Björn Winckler
On 9 June 2010 18:42, James Vega wrote:
>
> Are you using the latest code from Mercurial?  Bram committed a fix for
> a similar crash on Monday:

My source was a day too old.  That patch did indeed fix this problem.

Thanks,
Björn

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