delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/07/19/02:48:32

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,TVD_RCVD_IP
X-Spam-Check-By: sourceware.org
Date: Mon, 18 Jul 2011 23:47:44 -0700 (PDT)
From: "Peter A. Castro" <doctor AT fruitbat DOT org>
To: Russell Harmon <russ AT eatnumber1 DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Random Crashes
In-Reply-To: <CA+zrezQedUJP4kR+4zm0Pw-RP7nikO5-MabvY88G_id4vyF2zw@mail.gmail.com>
Message-ID: <alpine.LNX.2.00.1107182340350.3594@gremlin.fruitbat.org>
References: <CA+zrezS-iJcAofzt5RwK=xx9fjWm7VNShtv9Ao+KwZB4NqDvwA AT mail DOT gmail DOT com> <CA+zrezQedUJP4kR+4zm0Pw-RP7nikO5-MabvY88G_id4vyF2zw AT mail DOT gmail DOT com>
User-Agent: Alpine 2.00 (LNX 1167 2008-08-23)
MIME-Version: 1.0
X-IsSubscribed: yes
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

---1463811017-708755359-1311058064=:3594
Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT

On Tue, 19 Jul 2011, Russell Harmon wrote:

Greetings, Russell,

> For some time now, I've been getting random crashes from different
> applications. Mostly, gvim, but zsh sometimes crashes too. In fact,
> I've got a zsh script that if I add a blank line in a particular
> place, it triggers a crash.

Have you tried using bash for your initial shell instead of zsh?  Under
this scenario, does gvim still crash?

> For zsh, it seems to happen fairly deterministically; if it's
> crashing, it keeps crashing. If I add an empty line in the right spot,
> it works and keeps working.

Hmm...that sounds suspiciously line-termination related.

> For gvim, it seems to happen randomly; often times even if gvim starts
> successfully, it fails I assume after forking but before exec. I've
> pasted the error printed when it fails below.
>
> 0 [main] gvim 3008 exception::handle: Exception: STATUS_ACCESS_VIOLATION
> *** starting debugger for pid 3008, tid 6748
>
> Coredumps for both zsh and gvim can be found at
> http://files.eatnumber1.com/zsh.exe.core
> http://files.eatnumber1.com/gvim.exe.core
> These coredumps however weren't helpful to me. I've pasted my
> interaction with gdb below so you can see why.
>
> $ gdb -q -core gvim.exe.core
> [New process 1]
> [New process 0]
> [New process 0]
> #0  0x777efb8a in ?? ()
> (gdb) bt
> #0  0x777efb8a in ?? ()
> (gdb) quit
>
> Any thoughts on how I can debug this problem?

Switch shells to bash and see if the gvim failure still occurs.  If not,
then it's likely zsh internals related.
As with most problems, please collect the information as per:

http://cygwin.com/problems.html

But, before that, are you on a fairly recent version of all (or most)
packages?

> --
> Russell Harmon

-- 
Peter A. Castro <doctor AT fruitbat DOT org> or <Peter DOT Castro AT oracle DOT com>
 	"Cats are just autistic Dogs" -- Dr. Tony Attwood

---1463811017-708755359-1311058064=:3594
Content-Type: text/plain; charset=us-ascii

--
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
---1463811017-708755359-1311058064=:3594--

- Raw text -


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