GNU bug report logs - #5723
23.1.94; make-network-process and emacs hangs

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Mon, 15 Mar 2010 16:02:01 UTC

Severity: normal

Done: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
To: Helmut Eller <eller.helmut <at> gmail.com>
Cc: 5723 <at> debbugs.gnu.org, Leo <sdl.web <at> gmail.com>, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: bug#5723: 23.1.94; make-network-process and emacs hangs
Date: Tue, 16 Mar 2010 09:45:12 +0900
>>>>> On Mon, 15 Mar 2010 23:49:25 +0100, Helmut Eller <eller.helmut <at> gmail.com> said:

> * Stefan Monnier [2010-03-15 20:22+0100] writes:
>>> Could this be improved i.e. by wrapping it in with-local-quit?
>> 
>> If it's called somewhere where C-g doesn't work, yes it's a bug.

> make-network-process calls getaddrinfo and C-g doesn't work properly
> during that call.  It's only observable if the name server is slow
> or misconfigured.

> glibc has a asynchronous variant getaddrinfo_a (in libanl.so) which
> uses threads internally and quickly passes control back to the
> caller.  That could be used on GNU/Linux but the OP uses a Mac.

I guess OP's case is about `connect' rather than `getaddrinfo'.

  http://lists.gnu.org/archive/html/emacs-devel/2009-08/msg00148.html

Leo, can you check where it blocks (using GDB), and whether giving
--without-sync-input as a configure option changes the situation
(using the X11 build, preferably)?

				     YAMAMOTO Mitsuharu
				mituharu <at> math.s.chiba-u.ac.jp




This bug report was last modified 15 years and 67 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.