X-Recipient: archive-cygwin@delorie.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: <4FBA5FDA.7080801@cornell.edu>
Date: Mon, 21 May 2012 11:31:38 -0400
From: Ken Brown <kbrown@cornell.edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: "emacs -nw" hangs in a terminal
References: <4fb0fa8e.rJrV+YAHilzqMHCX%cygwin@jackson.io>	<4FB10F7F.3090209@cornell.edu>	<7r1umlyaml.fsf@ws796-of-spb.ru.yotateam.com>	<4FB2424F.2090701@cornell.edu>	<7robpphc6i.fsf@ws796-of-spb.ru.yotateam.com> <7rfwb1hbp2.fsf@ws796-of-spb.ru.yotateam.com> <4FB25C08.5010907@cornell.edu> <7rd365bjtn.fsf@ws796-of-spb.ru.yotateam.com> <4FB3CFCC.6030407@cornell.edu> <7r7gw6kl6r.fsf@ws796-of-spb.ru.yotateam.com> <7rmx513ol1.fsf@ws796-of-spb.ru.yotateam.com> <4FBA12C7.4070305@cornell.edu>
In-Reply-To: <4FBA12C7.4070305@cornell.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-PMX-CORNELL-SPAM-CHECKED: Pawpaw
X-Original-Sender: kbrown@cornell.edu - Mon May 21 11:31:51 2012
X-PMX-CORNELL-REASON: CU_White_List_Override
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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.

cgf and/or Corinna, could you take a look?  I wonder if this is related 
to the pthread problems that have been reported in a different 
(mailing-list) thread.  Here are simplified steps for reproducing:

1. Install emacs-24.0.96-2.

2. In a Cygwin terminal with DISPLAY not set, run 'emacs -Q'.

3. Type <Alt-x>shell<return>

4. Repeatedly press C-g until emacs crashes.

Thanks.

Ken

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

