From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: emacs-devel@gnu.org
Subject: Re: Emacs hangs on Mac OS X
Date: Thu, 04 Jan 2007 08:14:54 +0900 (JST) [thread overview]
Message-ID: <20070104.081454.81825763.mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <m2d55vhjt7.fsf@ordesa.cs.uu.nl>
>>>>> On Wed, 03 Jan 2007 22:39:00 +0100, Piet van Oostrum <piet@cs.uu.nl> said:
>>>>> YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> (YM) wrote:
YM> Unfortunately, the information about the interrupted library function
YM> call seems to be already broken somehow. Could you try to get
YM> backtraces for a few instances of the hang? Hopefully we will get
YM> more detailed information.
> Here is a complete one. The `lowest' malloc appears to be called
> from localtime(). Mallocs from system library functions of course
> are much more difficult to prevent, if at all.
Thanks. Actually it is in the list (*1) of such library functions
detected (*2) so far on Darwin:
localtime, gmtime, getc, getaddrinfo, fwrite, mkstemp, mktime,
fclose, freeaddrinfo
(*1) http://lists.gnu.org/archive/html/emacs-pretest-bug/2006-07/msg00070.html
(*2) http://lists.gnu.org/archive/html/emacs-devel/2004-09/msg00074.html
I'll put BLOCK_INPUT at least around localtime/gmtime/mktime calls.
Among them, we cannot simply put BLOCK_INPUT around getaddrinfo
because it is called with immediate_quit == 1.
> IMHO this shows that is it quite bad to run the event loop in a
> signal handler.
IIUC, many of us agree that SYNC_INPUT is the right direction, but
after the next release.
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
prev parent reply other threads:[~2007-01-03 23:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-03 10:47 Emacs hangs on Mac OS X Piet van Oostrum
2007-01-03 13:25 ` YAMAMOTO Mitsuharu
2007-01-03 21:39 ` Piet van Oostrum
2007-01-03 23:14 ` YAMAMOTO Mitsuharu [this message]
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=20070104.081454.81825763.mituharu@math.s.chiba-u.ac.jp \
--to=mituharu@math.s.chiba-u.ac.jp \
--cc=emacs-devel@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.