From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: emacs 24 randomly hanging Date: Wed, 22 Feb 2012 10:01:31 +0100 Message-ID: References: <878vjzz920.fsf@earth.home> <87sji4mpwn.fsf@this.that> <4F43CC35.60407@gmx.at> <8762f0qbam.fsf@this.that> <4F44A6A2.8040701@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329901313 13971 80.91.229.3 (22 Feb 2012 09:01:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Feb 2012 09:01:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 22 10:01:50 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S0856-0008SW-2A for ged-emacs-devel@m.gmane.org; Wed, 22 Feb 2012 10:01:48 +0100 Original-Received: from localhost ([::1]:35594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0855-0000g3-Kv for ged-emacs-devel@m.gmane.org; Wed, 22 Feb 2012 04:01:47 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0853-0000fv-6v for emacs-devel@gnu.org; Wed, 22 Feb 2012 04:01:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S084w-0007Xf-Uy for emacs-devel@gnu.org; Wed, 22 Feb 2012 04:01:45 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.10]:39938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S084w-0007W4-QV for emacs-devel@gnu.org; Wed, 22 Feb 2012 04:01:38 -0500 Original-Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 92ACC18000F5; Wed, 22 Feb 2012 10:01:32 +0100 (CET) X-Auth-Info: L4AJQDKPhB0HgoJ/6oEhhYK/fXl831QMr1GKE43l1HQ= Original-Received: from igel.home (ppp-88-217-119-185.dynamic.mnet-online.de [88.217.119.185]) by mail.mnet-online.de (Postfix) with ESMTPA id 904B31C00124; Wed, 22 Feb 2012 10:01:32 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 501) id CF881CA29F; Wed, 22 Feb 2012 10:01:31 +0100 (CET) X-Yow: I was in a HOT TUB! I was NORMAL! I was ITALIAN!! I enjoyed th' EARTHQUAKE! In-Reply-To: <4F44A6A2.8040701@gmx.at> (martin rudalics's message of "Wed, 22 Feb 2012 09:26:10 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 212.18.0.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148703 Archived-At: martin rudalics writes: > what's going on here, IIUC it takes some time (at least a couple of > seconds) for a frame to show up on Vframe_list. It should not matter at all, because x_create_frame cannot make the new frame known to lisp before it is added to Vframe_alist. > In any case the patch I attached now tries to > > (1) Check whether the frame passed to next_frame is in Vframe_list and > quit if it isn't. > > (2) Put a maximum of 100 frames investigated on the loop in next_frame > so there should be no endless looping otherwise. This is just doctoring the symptoms. There is an invariant that *every* live frame is on Vframe_alist. If that invariant is violated then this is the bug that must be fixed. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."