X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
X-IronPort-AV: E=Sophos;i="4.27,653,1204520400";     d="scan'208";a="20181340"
Message-ID: <485698AD.9000302@ptc.com>
Date: Mon, 16 Jun 2008 09:45:33 -0700
From: Alex Shturm <shturm@ptc.com>
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Problem with tags in vim 7.1
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Corina,

Unfortunately generation of tags is beyond my control. They are using 
environment variables so our source tree could be accessible the same 
way from Unix and Windows (cygwin) machines, where the root environment 
variable is different.

This issue looks like a buffer overflow to me.

Is there anybody willing to take a deeper look?

Thanks,
Alex
> On Jun 16 01:13, Alex Shturm wrote:
> > Hello,
> >
> > I'm having a strange problem with tags in vim 7.1 that I've just installed.
> > My Cygwin version is 1.5.25-14.
> > [...]
> > *** Case (1)
> > tagfile:
> > ------------------------
> > my_function    $TESTDIR/test.c    /^int my_function (int aaa)$/
> > ------------------------
> > [...]
> > E434: Can't find tag pattern
> > *** Case (2)
> > tagfile:
> > ------------------------
> > my_function    c:/temp/test.c    /^int my_function (int aaa)$/
> > ------------------------
> > Command "vim -t my_function" CRASHES vim (segmentation fault) ....
> > *** Case (3)
> > tagfile:
> > ------------------------
> > my_function    /cygdrive/c/temp/test.c    /^int my_function (int aaa)$/
> > ------------------------
> > Only here the command "vim -t my_function" correctly loads test.c and finds 
> > the tag.
>
> I never heard about vim being able to use variables in tags files.
> As for case 2, use POSIX paths.
>
>
> Corinna
>
> -- 
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Project Co-Leader          cygwin AT cygwin DOT com
> Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

