From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: alarm_signal_handler is called too frequently Date: Wed, 27 Oct 2004 06:47:39 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <7E7ABFB6-2693-11D9-9BC4-000D93505B76@swipnet.se> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1098874170 2838 80.91.229.6 (27 Oct 2004 10:49:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Oct 2004 10:49:30 +0000 (UTC) Cc: mituharu@math.s.chiba-u.ac.jp, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 27 12:49:15 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CMlMg-0000Iv-00 for ; Wed, 27 Oct 2004 12:49:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMlUQ-0003k6-CQ for ged-emacs-devel@m.gmane.org; Wed, 27 Oct 2004 06:57:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CMlTs-0003PH-0g for emacs-devel@gnu.org; Wed, 27 Oct 2004 06:56:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CMlTq-0003O0-NA for emacs-devel@gnu.org; Wed, 27 Oct 2004 06:56:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMlTq-0003Nx-Ke for emacs-devel@gnu.org; Wed, 27 Oct 2004 06:56:38 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CMlLp-0005cS-Dg for emacs-devel@gnu.org; Wed, 27 Oct 2004 06:48:21 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CMlL9-0000Zn-70; Wed, 27 Oct 2004 06:47:39 -0400 Original-To: "Jan D." In-reply-to: <7E7ABFB6-2693-11D9-9BC4-000D93505B76@swipnet.se> (jan.h.d@swipnet.se) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 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 Xref: main.gmane.org gmane.emacs.devel:29036 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29036 so popup_get_selection is not used for the non-toolkit build at all. That means item 3 is not a real problem. That is good. > 2. However, popup_get_selection is called inside BLOCK_INPUT, and it > calls timer_check, which can call Lisp code. This seems to be a bug. I still think that is a real problem. It craches, but directly at start before any interaction. Disabling the toolbar (./emacs -q -xrm '*toolBar: 0') makes it start OK, but it does not crash on any popup menu. 1. If it does not crash with popup menus, that could be because no timer was running. Were there any timers that should have run? Maybe something else disables the running of timers from popup_get_selection. In that case, there is no bug here, but the code to check timers is misleading. 2. Is popup_get_selection used, the way you compiled Emacs? 3. Can you debug the crash that does happen? I think anything that causes a crash with this patch has the potential to cause crashes occasionally even without this patch.