delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/08/08/14:01:34

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=C9v/IDJQT284mhfu+vfaaEhk9imqhQh/QwMrP+bO4mM
eIVqH4UwyXta4L7y+1WzVAoe5rsA3ZumSDw+3EpmmEo1Li45i1MCB3Hqr4QVNw9M
HpeJ5znESItZX7OrvNTTtF3XhWRvgdey47dVFvzD+2j99hIE5Ok04U0Hxd50OPoo
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=YoGliWOOMpGnZ9fdT5InJyJXfLo=; b=BGF85OU3fsKGSrAnW
ItEmBHfz9QFBvHZC7Cx5PDor0pYzu8siMJE2R6zI6Hru6vzzgfi+ZX4CaEqXURUZ
3yzopS6VJsbzv5ogHFZRYeoTjGQle4ZJC7ZO6CvLDpbI6DOdvLh5Q21Bf1fI2WpG
V2nJbxryfn1dvzjAP4RIOHcd2Y=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_40,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RDNS_NONE,SPF_NEUTRAL autolearn=no version=3.3.1
Message-ID: <5203DCCA.1010105@cs.utoronto.ca>
Date: Thu, 08 Aug 2013 14:00:42 -0400
From: Ryan Johnson <ryan DOT johnson AT cs DOT utoronto DOT ca>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: 64-bit emacs crashes a lot
References: <51F3151D DOT 7040000 AT cs DOT utoronto DOT ca> <51F33565 DOT 1090406 AT cornell DOT edu> <51F33F52 DOT 4060405 AT cs DOT utoronto DOT ca> <51FB1D9E DOT 5090102 AT cs DOT utoronto DOT ca> <20130802080211 DOT GA18054 AT calimero DOT vinschen DOT de> <51FB9228 DOT 2020309 AT cornell DOT edu> <51FBA100 DOT 90005 AT cs DOT utoronto DOT ca> <51FD5462 DOT 5020400 AT cs DOT utoronto DOT ca> <51FFBDFF DOT 7040501 AT cornell DOT edu> <51FFC4F2 DOT 8080909 AT cs DOT utoronto DOT ca> <5203D89E DOT 6030801 AT cornell DOT edu>
In-Reply-To: <5203D89E.6030801@cornell.edu>

On 08/08/2013 1:42 PM, Ken Brown wrote:
> On 8/5/2013 11:29 AM, Ryan Johnson wrote:
>> On 05/08/2013 11:00 AM, Ken Brown wrote:
>>> On 8/3/2013 3:05 PM, Ryan Johnson wrote:
>>>> On 02/08/2013 8:07 AM, Ryan Johnson wrote:
>>>>> On 02/08/2013 7:04 AM, Ken Brown wrote:
>>>>>> On 8/2/2013 4:02 AM, Corinna Vinschen wrote:
>>>>>>> On Aug  1 22:46, Ryan Johnson wrote:
>>>>>>>> Here's a new one... I started a compilation, but before it 
>>>>>>>> actually
>>>>>>>> invoked the command it started pegging the CPU. After ^G^G^G, it
>>>>>>>> crashed with the following:
>>>>>>>>> Auto-save? (y or n) y
>>>>>>>>>       0 [main] emacs 5076 C:\cygwin64\bin\emacs-nox.exe: *** 
>>>>>>>>> fatal
>>>>>>>>> error - Internal error: TP_NUM_W_BUFS too small 2268032 >= 10.
>>>>>>>
>>>>>>> That looks like a memory overwrite.  2268032 is 0x229b80, which 
>>>>>>> looks
>>>>>>> suspiciously like a stack address.  And the overwritten value is
>>>>>>> on the
>>>>>>> stack, too, well within the cygwin TLS area.  If *this* value gets
>>>>>>> overwritten, the TLS is probbaly totally hosed at this point. 
>>>>>>> There's
>>>>>>> just no way to infer the culprit from this limited info.
>>>>>>
>>>>>> Could this be BLODA?  Ryan, I noticed that you wrote in a different
>>>>>> thread, "I recently migrated to 64-bit cygwin...and so far have not
>>>>>> had to disable Windows Defender; the latter was a recurring 
>>>>>> source of
>>>>>> trouble for my previous 32-bit cygwin install on Win7/64."
>>>>> This would be a whole new level of nasty from a BLODA... I thought
>>>>> they only interfered with fork()?
>>>>>
>>>>> However, this *is* Windows Defender we're talking about... service
>>>>> disabled and all cygwin processes restarted. I'll let you know in a
>>>>> day or so if the crashes go away.
>>>> Rats. I just had another crash, the "Fatal error 6" variety. Windows
>>>> Defender has not turned itself back on (it's been known to do 
>>>> that), and
>>>> a scan of the BLODA list didn't match anything else on my system.
>>>>
>>>> So I don't think it's BLODA...
>>>>
>>>> Ideas?
>>>
>>> Not really, other than the obvious: (a) Find a reproducible way of
>>> making emacs-nox crash.  (b) Catch the crash in gdb by setting a
>>> suitable break point.
>> I've had no luck with (a), but the latest version of gdb forwards
>> signals properly (thanks cgf!), so I've got it watching in the
>> background for anything to go wrong. If it's really a memory overwrite,
>> though, the stack trace is unlikely to give much insight into root 
>> causes.
>
> I had a couple of additional thoughts.  First, have you tried `emacs 
> -Q' to make sure there's nothing in your .emacs that triggers the 
> bug?  In the same vein, you might try not using the mouse, in case the 
> bug has something to do with the way emacs/mintty handle mouse 
> movements when emacs is running in non-GUI mode.
>
> Second, would you be willing to try emacs-w32 and/or emacs-X11 to see 
> if you have the same problem?  It might help narrow down the search if 
> we knew that the bug only occurs with emacs-nox.
The crashes are definitely less common now that Windows Defender is 
gone, which is both good and bad. Good because I can get work done, bad 
because it's harder to repro now. Makes me suspect that WinDef was 
tickling the bug rather than causing it. Crashes rare enough at this 
point that moving away from nox will only be helpful if I get lucky and 
w32/x11 crashes.

I imagine gdb will eventually catch this elusive call to abort(), let's 
see what the stack trace has to say and go from there. So far its 
presence seems to make a really effective talisman against the crashes: 
I've only had one crash in the last couple of days, and naturally it was 
an emacs session I forgot to attach a gdb to.

Ryan


--
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