From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Perens Newsgroups: gmane.emacs.devel Subject: Re: Re: emacs21.2 freezes on hp when calling visible-bell Date: Wed, 27 Mar 2002 21:22:44 -0800 Sender: emacs-devel-admin@gnu.org Message-ID: <20020328052244.GA8846@perens.com> 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> <200203280456.g2S4uhL09617@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1017293073 9348 127.0.0.1 (28 Mar 2002 05:24:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 28 Mar 2002 05:24:33 +0000 (UTC) Cc: Maarten.Vergauwen@esat.kuleuven.ac.be, 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 16qSOn-0002Qf-00 for ; Thu, 28 Mar 2002 06:24:33 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16qSY1-0006yk-00 for ; Thu, 28 Mar 2002 06:34:05 +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 16qSOb-0004fx-00; Thu, 28 Mar 2002 00:24:21 -0500 Original-Received: from [67.114.175.138] (helo=perens.com) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16qSN4-0004Pp-00; Thu, 28 Mar 2002 00:22:46 -0500 Original-Received: by perens.com (Postfix, from userid 1000) id E4CEE1728; Wed, 27 Mar 2002 21:22:44 -0800 (PST) Original-To: Richard Stallman Content-Disposition: inline In-Reply-To: <200203280456.g2S4uhL09617@aztec.santafe.edu> User-Agent: Mutt/1.3.28i 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:2236 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2236 > 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); Select is being used to pause the process with finer granularity than sleep(). On return, the contents of timeout are _undefined_. Print timeout.tv_sec and timeout.tv_usec before the call and see if their value is sensible. It probably gets clobbered after the first call (or the first few) and sends you into a very long delay, thus the "hang". Tell me if that's not it, and I'll find an HP-UX pro. > I am amazed that gettimeofday can hang. Since this is emacs run under gdb, it could be a ptrace bug. Thanks Bruce _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel