This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Vim segv'ing


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]