public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: "emacs -nw" hangs in a terminal
Date: Fri, 25 May 2012 10:12:00 -0000	[thread overview]
Message-ID: <20120525100321.GF4225@calimero.vinschen.de> (raw)
In-Reply-To: <4FBE26C8.1000008@cornell.edu>

On May 24 08:17, Ken Brown wrote:
> On 5/23/2012 12:02 PM, Corinna Vinschen wrote:
> >On May 23 11:56, Ken Brown wrote:
> >>Based on the emacs code, I think that's right.  But maybe I need to
> >>download the source for the snapshot I'm using (or build cygwin1.dll
> >>myself) so that I can step through the first call to select after
> >>the longjmp and see exactly where the crash is happening.
> >
> >That would be most helpful.  I don't grok this crash.  It's one of
> >the "this should never possibly happen" kind...
> 
> I'm now using an unoptimized build of the 20120523 snapshot.  The
> gdb session is below.  I first started emacs and started the shell
> process; this guarantees that when emacs calls select, one of the
> descriptors is a pty master.  Then I attached gdb and put a
> breakpoint at the emacs function unwind_to_catch, which is triggered
> when I press C-g.  It took two presses of C-g to get the crash.  I
> think the rest is self-explanatory.

Just to let you know, I looked into this on and off yesterday, but I
still don't understand what's going on.

In theory starting the new thread should be harmless.  The threads in
Cygwin are "cygthreads", which is our own thread pool implementation.
It doesn't stop existing threads but reuses them.  Only if all
cygthreads are still in use, another one is started and added to the
pool.

I'll look further into this, but I am wondering about this:  Is the
new Fsignal/Fthrow implementation so much different than the old one
in emacs 23.x?  If not, why does it work in 23.x?  Any chance 24.x
produces a stack or heap corruption?  Double free or something?

And then again, do we know if 24.x works on older Cygwin release or
snapshots?  If it's a Cygwin problem, it might help to nail it down.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

  reply	other threads:[~2012-05-25 10:04 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-14 12:31 cygwin
2012-05-14 13:58 ` Ken Brown
2012-05-15 11:00   ` Filipp Gunbin
2012-05-15 11:47     ` Ken Brown
2012-05-15 12:17       ` Filipp Gunbin
2012-05-15 12:27         ` Filipp Gunbin
2012-05-15 13:37           ` Ken Brown
2012-05-15 14:28             ` Filipp Gunbin
2012-05-16 16:04               ` Ken Brown
2012-05-21  8:12                 ` Filipp Gunbin
2012-05-21  8:50                   ` Filipp Gunbin
2012-05-21 10:03                     ` Ken Brown
2012-05-21 15:32                       ` Ken Brown
2012-05-21 16:29                         ` Corinna Vinschen
2012-05-21 18:51                           ` Ken Brown
2012-05-22 11:29                             ` Corinna Vinschen
2012-05-22 11:42                               ` Ken Brown
2012-05-22 13:42                                 ` Corinna Vinschen
2012-05-22 13:50                                   ` Corinna Vinschen
2012-05-23 12:01                                     ` Ken Brown
2012-05-23 13:24                                       ` Ken Brown
2012-05-23 15:54                                       ` Corinna Vinschen
2012-05-23 16:03                                         ` Ken Brown
2012-05-23 16:07                                           ` Corinna Vinschen
2012-05-24 12:19                                             ` Ken Brown
2012-05-25 10:12                                               ` Corinna Vinschen [this message]
2012-05-25 10:39                                                 ` Noel Grandin
2012-05-25 12:46                                                 ` Ken Brown
2012-05-25 13:05                                                   ` Corinna Vinschen
2012-05-25 14:49                                                     ` Corinna Vinschen
2012-05-25 19:44                                                       ` Ken Brown
2012-05-25 20:10                                                         ` Ken Brown
2012-06-03  3:08                                                           ` Christopher Faylor
2012-06-03 12:55                                                             ` Ken Brown
2012-06-03 16:53                                                               ` Christopher Faylor
2012-06-03 21:26                                                                 ` Ken Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120525100321.GF4225@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).