X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Thu, 30 Jun 2011 17:05:02 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Vim segv'ing
Message-ID: <20110630150502.GJ9552@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20110630072012.GB9552@calimero.vinschen.de> <2BF01EB27B56CC478AD6E5A0A28931F202CFAFF7@A1DAL1SWPES19MB.ams.acs-inc.net> <20110630142353.GH9552@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <20110630142353.GH9552@calimero.vinschen.de>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

On Jun 30 16:23, Corinna Vinschen wrote:
> On Jun 30 07:30, Nellis, Kenneth wrote:
> > > From: Corinna Vinschen
> > > Works fine for me.  If I'm admin, writing works, if I'm not admin,
> > > writing fails with permission denied.  Could you please send your
> > > cygcheck output per http://cygwin.com/problems.html as well as an
> > > strace which shows what happens, like this:
> > > 
> > >   $ strace -o vim.trace vim-nox /etc/hosts
> > >   :wq!
> > 
> > FWIW, I see the same problem as the OP. The strace command interferes
> > with vim so that it won't recognize ESC to allow the ":" to be
> > recognized, so I can't ":wq!" as requested. strace output nevertheless
> > attached as is cygcheck -svr output.
> 
> You strace shows nothing, it just stops at one point.  Are you running
> from a console or from mintty?  When running in a console in default
> notty mode, :w! or :wq! works fine.  Can you try again?  Perhaps with
> other strace flags?
> 
>   strace -o vim.trace -m 0xffff vim-nox /etc/hosts

I suddenly can reproduce the problem.  For some reason it occurs only if
both, vim and the Cygwin DLL, are compiled with -O2.  Darn.  This does
not make debugging exactly easier :-P  All I can say at this point is
that the stack gets overwritten at one point.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

