delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/05/22/07:43:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,SPF_NEUTRAL,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4FBB7BA6.9000409@cornell.edu>
Date: Tue, 22 May 2012 07:42:30 -0400
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: "emacs -nw" hangs in a terminal
References: <7rfwb1hbp2 DOT fsf AT ws796-of-spb DOT ru DOT yotateam DOT com> <4FB25C08 DOT 5010907 AT cornell DOT edu> <7rd365bjtn DOT fsf AT ws796-of-spb DOT ru DOT yotateam DOT com> <4FB3CFCC DOT 6030407 AT cornell DOT edu> <7r7gw6kl6r DOT fsf AT ws796-of-spb DOT ru DOT yotateam DOT com> <7rmx513ol1 DOT fsf AT ws796-of-spb DOT ru DOT yotateam DOT com> <4FBA12C7 DOT 4070305 AT cornell DOT edu> <4FBA5FDA DOT 7080801 AT cornell DOT edu> <20120521162908 DOT GP7763 AT calimero DOT vinschen DOT de> <4FBA8EA0 DOT 4040905 AT cornell DOT edu> <20120522112828 DOT GA9200 AT calimero DOT vinschen DOT de>
In-Reply-To: <20120522112828.GA9200@calimero.vinschen.de>
X-PMX-CORNELL-SPAM-CHECKED: Pawpaw
X-Original-Sender: kbrown AT cornell DOT edu - Tue May 22 07:42:30 2012
X-PMX-CORNELL-REASON: CU_White_List_Override
X-IsSubscribed: yes
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

On 5/22/2012 7:28 AM, Corinna Vinschen wrote:
> On May 21 14:51, Ken Brown wrote:
>> On 5/21/2012 12:29 PM, Corinna Vinschen wrote:
>>> On May 21 11:31, Ken Brown wrote:
>>>> On 5/21/2012 6:02 AM, Ken Brown wrote:
>>>>> On 5/21/2012 4:50 AM, Filipp Gunbin wrote:
>>>>>> emacs-24.0.96-2 crashes when I am doing the following:
>>>>>>
>>>>>> 1) emacs -Q -nw
>>>>>> 2) M-x shell
>>>>>> 3) C-x C-f C-g
>>>>>
>>>>> I can reproduce this. I'll try again to fix it.
>>>>
>>>> I've discovered something strange by running emacs under gdb.  If I
>>>> start emacs-24 in a terminal (but not under X) and start a shell as
>>>> you did, then every press of C-g creates a new thread, and these are
>>>> never destroyed.  I'm pretty sure the threads are created by Cygwin,
>>>> not by emacs.
>>>
>>> What does C-g mean in Emacs?  What's it supposed to do?  Does it
>>> call select or poll?
>>
>> It's supposed to quit whatever operation is in progress.  It doesn't
>> call select or poll.  In the situation of Filipp's instructions
>> above, C-x C-f has caused emacs to prompt for a file name, and C-g
>> should interrupt that.  It also rings the the terminal bell and
>> prints "Quit" in the echo area at the bottom of the screen.
>>
>> The situation in my instructions is slightly different.  Prior to
>> the user pressing C-g, emacs is running its idle loop, in which it
>> repeatedly calls select to see if there's any event it needs to
>> respond  to.  When C-g is pressed, select returns and emacs reacts
>> to the keypress.  In this case there's nothing to do but ring the
>> terminal bell and print "Quit".
>
> Somehow I'm not able to test this.  When I start `emacs -Q -nw' in cmd
> or mintty, emacs takes 100% CPU for some reason.  It doesn't matter if I
> try it under Cygwin 1.7.15 or current CVS.

That's strange.  All my tests were done in mintty.  Would it help if I 
sent some strace output and/or a gdb backtrace?  I assumed you could get 
those (or at least the strace output) yourself, and I didn't want to 
spam the list.

Ken

P.S. BTW, I tested today's snapshot, and the problem is still there.


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