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

Attachment: hs.tar.bz2
Description: BZip2 compressed data

Raspunde prin e-mail lui