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: Re: emacs21.2 freezes on hp when calling visible-bell Date: Wed, 27 Mar 2002 21:56:43 -0700 (MST) Sender: emacs-devel-admin@gnu.org Message-ID: <200203280456.g2S4uhL09617@aztec.santafe.edu> References: <200203201517.QAA07702@demer.esat.kuleuven.ac.be> <200203221225.g2MCPoE01638@aztec.santafe.edu> <200203221226.NAA05825@barbar.esat.kuleuven.ac.be> <15520.21118.37291.222389@vaire.esat.kuleuven.ac.be> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1017292985 9277 127.0.0.1 (28 Mar 2002 05:23:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 28 Mar 2002 05:23:05 +0000 (UTC) Cc: bruce@perens.com, emacs-devel@gnu.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16qSNN-0002PW-00 for ; Thu, 28 Mar 2002 06:23:05 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16qSWb-0006yg-00 for ; Thu, 28 Mar 2002 06:32:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16qS0J-00035Y-00; Wed, 27 Mar 2002 23:59:15 -0500 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16qRxt-0002jF-00; Wed, 27 Mar 2002 23:56:45 -0500 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g2S4uha18723; Wed, 27 Mar 2002 21:56:43 -0700 (MST) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g2S4uhL09617; Wed, 27 Mar 2002 21:56:43 -0700 (MST) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: Maarten.Vergauwen@esat.kuleuven.ac.be In-Reply-To: <15520.21118.37291.222389@vaire.esat.kuleuven.ac.be> (message from Maarten Vergauwen on Tue, 26 Mar 2002 11:50:38 +0100) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2235 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2235 I am amazed that gettimeofday can hang. I have no idea why. Perhaps you need to find an HP wizard for this. Maybe Bruce Perens can help. From: Maarten Vergauwen Date: Tue, 26 Mar 2002 11:50:38 +0100 To: rms@santafe.edu Subject: Re: Re: emacs21.2 freezes on hp when calling visible-bell In-Reply-To: <200203221226.NAA05825@barbar.esat.kuleuven.ac.be> Richard Stallman writes: > This happens only on hp, using X and only for 21.2. No problems > encountered for 21.1 on hp, nor for 21.2 on hp without X, nor for 21.2 > on SGI, linux-i386, alpha, solaris or ultrix with X. > > Unfortunately that means I can't even try to debug it. > Can you please try to debug it? etc/DEBUG gives some advice. OK, here goes. 1. If emacs is run under gdb, it hangs when trying to "flash" the visible bell. 2. kill -TSTP pid in another shell 3. gdb tells me that it's hanging in gettimeofday() (gdb) bt #0 0x7f7aeac8 in gettimeofday () from /usr/lib/libc.2 #1 0x179948 in alarm_signal_handler (signo=14) at atimer.c:372 #2 #3 0x7f794384 in fwrite () from /usr/lib/libc.2 #4 0xd0158 in main (argc=2139029609, argv=0x7f7f061c, envp=0x8) at emacs.c:1547 4. I added lots of fprintf(stderr,...) stuff to the code in xterm.c (function XTflash) and in this way I could determine that emacs was hanging on the line that says: select (0, NULL, NULL, NULL, &timeout); A strange thing is that the loop with "select" is sometimes executed 1, 2, 3 times before it hangs at this line. 5. I reconfigured and recompiled emacs-21.1 on the same system, with the same compiler and here the problem doesn't occur. I'm at a loss here. Could you tell me what else I could try to find the source of the problem ? kind regards, Maarten -- MAARTEN VERGAUWEN K.U.Leuven - ESAT-PSI tel: +32-16-32.10.64 fax: +32-16-32.17.23 Kasteelpark Arenberg 10 e-mail:Maarten.Vergauwen@esat.kuleuven.ac.be B-3001 Heverlee http://www.esat.kuleuven.ac.be/~vergauwe _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel