delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/06/30/11:05:46

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 30 Jun 2011 17:05:02 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Vim segv'ing
Message-ID: <20110630150502.GJ9552@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20110630072012 DOT GB9552 AT calimero DOT vinschen DOT de> <2BF01EB27B56CC478AD6E5A0A28931F202CFAFF7 AT A1DAL1SWPES19MB DOT ams DOT acs-inc DOT net> <20110630142353 DOT GH9552 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20110630142353.GH9552@calimero.vinschen.de>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019