Dominique Pelle wrote:

> Aliaksandr Rahalevich wrote:
> > It works with
> > set regexpengine=1
> > but fails to open file with regexpengine=2.
> >
> > It's definitely working with 1242 patchset, but fails with latest.
> 
> Hi
> 
> You explanations are not detailed and the attached files
> are not useful: a core file is useless without your vim
> executable.  Nevetherless, I can see a bug when using
> a ruby file (attached) with re=2 and Vim-7.3.1270:
> 
> $ valgrind --num-callers=50 --track-origins=yes \
>    vim -u NONE \
>    -c 'syntax on' \
>    -c ':norm G' \
>    /usr/share/inkscape/extensions/simplepath.rb
> 
> ==5196== Memcheck, a memory error detector
> ==5196== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
> ==5196== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
> ==5196== Command: ./vim -u NONE -c syntax\ on -c :norm\ G
> /usr/share/inkscape/extensions/simplepath.rb
> ==5196== Parent PID: 4616
> ==5196==
> ==5196== Invalid write of size 8
> ==5196==    at 0x4C2CB05: memcpy@GLIBC_2.2.5 (in
> /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==5196==    by 0x573D44: addstate_here (regexp_nfa.c:4233)
> ==5196==    by 0x5755AA: nfa_regmatch (regexp_nfa.c:5265)
> ==5196==    by 0x577AB7: nfa_regtry (regexp_nfa.c:6217)

[...]

Thanks.  That pinpoints the problem.  I'll add this Ruby file to my
collection.

I'll send out a patch.

-- 
WOMAN:   Dennis, there's some lovely filth down here.  Oh -- how d'you do?
ARTHUR:  How do you do, good lady.  I am Arthur, King of the Britons.
         Who's castle is that?
WOMAN:   King of the who?
                                  The Quest for the Holy Grail (Monty Python)

 /// 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/groups/opt_out.


Raspunde prin e-mail lui