all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Nicolaescu <dann@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: emacs 24 randomly hanging
Date: Tue, 21 Feb 2012 10:41:35 -0500	[thread overview]
Message-ID: <yxqty2kkxcg.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87sji4mpwn.fsf@this.that> (Adam's message of "Tue, 21 Feb 2012 11:43:48 +0100")

Adam <adam_w67@yahoo.com> writes:

> Adam <adam_w67@yahoo.com> writes:
>
>> I am using GNU Emacs 24.0.93.1 (x86_64-unknown-linux-gnu, GTK+ Version
>> 2.20.1) of 2012-02-15, built from sources.
>>
>> I am constantly experiencing my emacs hanging.  That is, C-g does not
>> work, and the screen is not updated.  It happens about twice a day or
>> so, which is very annoying, as I only have one emacs instance up
>> and running in which I am doing all my work.
>>
>> I am pretty sure emacs hanging has been discussed to death, and I am
>> pretty sure I just screwed my emacs configuration up somewhere.  What's
>> worring me is that C-g does not work, though.  In fact, nothing works.
>> I have to send a SIGKILL to my emacs process to get rid of it.
>>
>> Here's a backtrace:
>
> [...]
>
>> (I am running emacs in daemon mode with about three or five open X11
>> clients.  Although the backtrace references Fx_create_frame, I *did* not
>> create a frame.  I am using a tight intergration between my window
>> manager and emacs though, and my window manager spawns about two
>> `emacsclient -e' per second).
>>
>> Is this problem known?  Could this be fixed in emacs 24?
>
> I am able to reproduce my problem with emacs -q.
>
> #+BEGIN_SRC sh
> #!/bin/bash
>
> killall -9 emacsclient
>
> emacs -q --daemon || exit 1
>
> emacsclient -e "(progn (require 'cl)
> (defun walk-frames ()
>  (loop for frame being the frames))
> (add-hook 'window-configuration-change-hook 'walk-frames))"
>
> for I in {1..100}
> do
>     echo $I
>     emacsclient -e "(walk-frames)" >/dev/null &
>     emacsclient -c -e "(delete-frame)" >/dev/null &
> done
>
> wait
>
> emacsclient -e "(kill-emacs 0)"
> #+END_SRC

I can reproduce this.

It looks like there's an infinite loop in frame.c:next_frame.
Maybe the frame list is not completely initialized when this code is
run, there's a comment about looping forever in the function.
Unfortunately I don't have time to dig more.



  reply	other threads:[~2012-02-21 15:41 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-19  5:28 emacs 24 randomly hanging Adam
2012-02-19  9:45 ` Adam
2012-02-19  9:54 ` Andreas Schwab
2012-02-20  7:23   ` Adam
2012-02-20 15:34 ` Dan Nicolaescu
2012-02-21 10:10   ` Adam
2012-02-21 10:43 ` Adam
2012-02-21 15:41   ` Dan Nicolaescu [this message]
2012-02-21 16:54     ` martin rudalics
2012-02-21 18:42       ` Adam
2012-02-22  8:26         ` martin rudalics
2012-02-22  9:01           ` Andreas Schwab
2012-02-22  9:41             ` martin rudalics
2012-02-22 14:49               ` Stefan Monnier
2012-02-24 18:43                 ` martin rudalics
2012-02-22 10:55             ` Chong Yidong
2012-02-22 16:28               ` Eli Zaretskii
2012-02-23  8:05                 ` Chong Yidong
2012-02-23 14:03                   ` Christopher Schmidt
2012-02-23 16:39                     ` Christopher Schmidt
2012-02-23 17:42                     ` Chong Yidong
2012-02-24 18:43                   ` martin rudalics

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=yxqty2kkxcg.fsf@fencepost.gnu.org \
    --to=dann@gnu.org \
    --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.