delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/05/23/08:01:38

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_05,KHOP_THREADED,SPF_NEUTRAL,TW_GJ,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4FBCD166.8080101@cornell.edu>
Date: Wed, 23 May 2012 08:00:38 -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: <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> <4FBB7BA6 DOT 9000409 AT cornell DOT edu> <20120522134119 DOT GB9200 AT calimero DOT vinschen DOT de> <20120522134932 DOT GC9200 AT calimero DOT vinschen DOT de>
In-Reply-To: <20120522134932.GC9200@calimero.vinschen.de>
X-PMX-CORNELL-SPAM-CHECKED: Pawpaw
X-Original-Sender: kbrown AT cornell DOT edu - Wed May 23 08:00:53 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

--------------040001040409090201070803
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

On 5/22/2012 9:49 AM, Corinna Vinschen wrote:
> On May 22 15:41, Corinna Vinschen wrote:
>> On May 22 07:42, Ken Brown wrote:
>>> 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:
>>>>>>> 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.

I've gotten some more information from gdb.  The crash occurs after a 
call to _longjmp, and gdb shows a new thread created right at that 
point.  This doesn't happen when I run emacs under X instead of in 
mintty.  Here's an excerpt from the gdb session, with the strange thread 
marked:

$ gdb -p 6492
[...]
Attaching to process 6048
[New Thread 6048.0x668]
[New Thread 6048.0x1a5c]
[New Thread 6048.0x2630]
[New Thread 6048.0x1d14]
Reading symbols from /home/kbrown/src/emacs/test-nox/src/emacs.exe...done.
[...]
(gdb) b unwind_to_catch
Breakpoint 3 at 0x52aca2: file eval.c, line 1234.
(gdb) c
Continuing.
[Switching to Thread 6048.0x668]
[...]
Breakpoint 3, unwind_to_catch (catch=0x28a8d0, value=12985830) at 
eval.c:1234
1234      catch->val = value;
(gdb) n
[...]
1272      _longjmp (catch->jmp, 1);
(gdb)
[New Thread 6048.0x1e04]   <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Program received signal SIGSEGV, Segmentation fault.
0x76f3f8b1 in ntdll!RtlUpdateClonedSRWLock () from 
/c/windows/SysWOW64/ntdll.dll
(gdb) thread apply all bt full

[compressed output attached]

And here's the stackdump:

Exception: STATUS_ACCESS_VIOLATION at eip=610CFA77
eax=80106D50 ebx=34322D73 ecx=766231E7 edx=00000000 esi=00000001 
edi=00000050
ebp=048FACC8 esp=048FACA0 
program=C:\cygwin\home\kbrown\src\emacs\test-nox\src\emacs.exe, pid 
6492, thread pipesel

Ken




--------------040001040409090201070803
Content-Type: application/octet-stream;
 name="bt.out.bz2"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="bt.out.bz2"

QlpoOTFBWSZTWQmaR1MADfj/xG1VQAB69//3v+//5b////oAAIABYA3/eA+7
ufTHoNtioAA097t117xvZFKoiAqlCgQ8JKKnpMym0n6UGxGoaGQGjQAAAAAa
NGjQHA0GmQ00aGEDIaGCNDTJo0AyDEAAaCUhomkIeoaBoaaD1AAA0AANA0AN
BoCTSiEmmpPJHimmgyGnpDQANNAAAAAAAioUyaBkCp/o0p4VPZU8yU9T1Nqe
UaMj1NqGmnqaNpAAeQIoiAE0BAAgRPU8mKP1E0GgYg00DQNB6hiqc4hAIG9B
5kIEJYAOEtX39dvb3fTyOz43zduZxxdopnhrwsHFprS9Sf4jEFMWhcDcDFjj
BjAjilxLYnKSTpIcpJuQ4kA2SHDNk60jvasGPTZmaWsnVYXScZr5XCB9xIgw
EVRIKKI6DZGKhSixVVNmTWRlMlKLbW2y2ttW2o23EgSdoIDAkAwQkDlh22PQ
m+PBV588M3LNM6559dprpz9/uC0RUVYzaYDjFbcq+WljEO0kn49z+id5GMCA
aOg/8/wZdIB/cECu/iXYy6oIKF/gJirpCMOaOnLLjVWzWypSipRTE6FHyKnQ
AQvaC2Qncpse+dkcN5JEARGNnDfOJCGm83678nM70FN8dm3bjuMwnMwDhGNo
a405FGdUtK2xAOIwE9cK/l2Wacz0G7nyunefLiD1GEKwe6wR1QiPeNfIwlxi
gq2nINjElX+ca614reECHT4hSSjBOpJJC0AiHwiFN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2ZzE2eywj4
zsFIwUTxc8+86sLCtOIevWBy2wCL1gkBDbIUyyYBAMRyBkhKORInTbL5Wqp2
1fCW0WcsFRfqQfKsBYmaIUEBUrcZMqpz71E4PpLkC4tqZqnE+P4wN9vf4eNT
AfycQk8hPuROY6RsYjumzs8645ojSJBSVVJAA84BCQvASoQsyUgzVUyj4wlV
SIUB8B6ivlGDstToMDpoiP7oAAyQ6DAdgF1WRIU8nIPHv4IjYQcDkbTVL1+F
VTeVvL+NVGZIGJM7RROmwHK2LRUXpIFSpDAR3wyfmDNRNNgBgtpoJAqXUgZ1
uhadABQxQB9YwQHuJ1E88NNiiZT++begaQRBoFoAaABmolbdpqPNzEQqp6UA
dBhXzjxB5Rkcya47lVIKjvnWoE8uIy+X9CJconqfBjaPwDpvUTQAgw08h0on
kyF46bhUw5nzcZO1AnIgkeQFmXeSOBRMY7RzbBmjMT+yglMUDvG8N6cnKKKQ
CSid6JmhaFPcdNThLO9blEkqsvwFF9B2TaIanYqZKJAucBt7BOW/UA7hkd4l
Mwh5H6e3APoOL14BK4CDKidtg4OPFEfAsUTC8VOOI4l9tJsGOgKyNLSEx3r3
PhtFSSZQJxzjygBP65JZsL2fZeMg38WCWGgAo7csYiPfMse/6ila0rV1LAnH
w9fxAGwNi0APOUG0jsjexf+xx3XJJ8A2nWgdQt6qnJRIUTQXmHAAi2Ic47lE
2qJwkAinw1RM7xqFOwvK+sC1S4UTNVTAcAAML70YqlVErxn8AF28iPSDIYOA
V2GONo7kS4SA1CE+lBxE5VuvtNoB5flduca6D5NpiBQwcC6m2IFe1DwHUJd+
PkGqDb4L4rDCgTjlGRXSU6lpUSZExTyq6sqqmjMFrpC5Is1BJXkQP3YKlCiU
qrawuQW9IVLx1nYKgylqQhBDOUFlaQWGiSVoAX0RTOAEBcoCU0M/6bojL4s6
TgnCS3AhB9uKPUb/Tf4u5IpwoSATNI6m


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

- Raw text -


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