From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dobler@kis.uni-freiburg.de Newsgroups: gmane.emacs.bugs Subject: Emacs 21 hangs in vm if scroll-margin=5 and Emacs.LineSpacing=1 Date: 16 Nov 2002 17:18:10 +0100 Organization: Linux Private Site Sender: bug-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037464569 14882 80.91.224.249 (16 Nov 2002 16:36:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 16 Nov 2002 16:36:09 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18D5vT-0003rj-00 for ; Sat, 16 Nov 2002 17:36:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18D5tr-0007Gk-00; Sat, 16 Nov 2002 11:34:27 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18D5eC-0007yn-00 for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2002 11:18:16 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18D5eA-0007yT-00 for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2002 11:18:15 -0500 Original-Received: from cincinnatus.kis.uni-freiburg.de ([132.230.90.37]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18D5e9-0007xz-00 for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2002 11:18:13 -0500 Original-Received: from cincinnatus.kis.uni-freiburg.de (localhost [127.0.0.1]) by cincinnatus.kis.uni-freiburg.de (8.12.3/8.12.3/SuSE Linux 0.6) with ESMTP id gAGGIBAU024351; Sat, 16 Nov 2002 17:18:11 +0100 Original-Received: (from dobler@localhost) by cincinnatus.kis.uni-freiburg.de (8.12.3/8.12.3/Submit) id gAGGIB8Q024348; Sat, 16 Nov 2002 17:18:11 +0100 X-Authentication-Warning: cincinnatus.kis.uni-freiburg.de: dobler set sender to Wolfgang.Dobler@kis.uni-freiburg.de using -f Original-Newsgroups: gnu.emacs.vm.bug Original-Lines: 110 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Posted-To: gnu.emacs.vm.bug Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3888 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3888 The following message is a courtesy copy of an article that has been posted to gnu.emacs.vm.bug as well. I am not perfectly sure where to post this -- it might be a problem of Emacs or of VM -- but I want problem and workaround to be documented somewhere on the web. I am using VM to read my email and had it hang up Emacs every now and then; the X window was still updated, but Emacs wouldn't react to any key press and just run at 99% CPU usage for at least 10 minutes (after which I killed the process). According to strace, it was doing --- SIGALRM (Alarm clock) --- gettimeofday({1037458979, 140315}, NULL) = 0 gettimeofday({1037458979, 149317}, NULL) = 0 gettimeofday({1037458979, 149872}, NULL) = 0 setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 90443}}, NULL) = 0 sigreturn() = ? (mask now []) and so on. I found that the problem was caused by setting (setq scroll-margin 5) and at closer inspection the hang occured (reproducibly) when I was in the following situation: +-------------------------------------------------------------+ | 86 Some@sender Nov 15 8/389 "Some subject" | | 87 Some@sender Nov 15 13/472 "Some subject" | | 88 Some@sender Nov 15 17/676 "Some subject" | | 89 Some@sender Nov 15 74/162 "Some subject" | | 90 Some@sender Nov 15 16/488 "Some subject" | |-> 91 Some@sender Nov 16 41/139 "Some subject" | | 92 Some@sender Nov 16 908/369 "Some subject" | | 93 U Some@sender Nov 16 23/996 "Some subject" | | 94 U Some@sender Nov 16 8/229 "Some subject" | | 95 U Some@sender Nov 16 9/275 "Some subject" | | 96 U Some@sender Nov 16 8/363 "Some subject" | | 97 D Some@sender Nov 16 21/777 "Some subject" | |__--_VM_7.07:_INBOX_Summary_92_(of_98)__read___85%___16:49___| |From: Some@body | |Sender: Some@body | |To: me@here | |Subject: Some subject | |Date: Some date | | | |Some | |content | |... | |... | |... | |... | |... | |... | |... | |... | |... | |... | |... | |... | |... | |... | |... | |... | |... | |... | |... | |... | |... | |... | |... | |__**_VM_7.07:_INBOX_________91_(of_98)__read___All___16:49___| +-------------------------------------------------------------+ and pressed `n' to get to the next message. This is the point where the last message line (that for message No.98) would appear in the INBOX-Summary buffer -- but instead Emacs just hung up. This problem does not occur with Xemacs and at closer inspection it only occurs when I set the X11 resource Emacs.LineSpacing: 1 (I never got Xemacs to use an extra line spacing). Setting Emacs.LineSpacing to 0 or not setting 'scroll-margin makes the problem disappear. Also, I found no problem in a console window, only uner X. Is that a bug of the rendering engine? W o l f g a n g System: SuSE Linux 8.0, kernel 2.4.18-4GB, Pentium 4 @ 1700MHz XFree86 v. 4.2.0 Fvwm2 v.2.4.5 GNU Emacs 21.1.1 VM 7.07 (had the same problem with 7.05) Xresources: Emacs*background: grey95 Emacs*font: -*-courier-medium-r-*-*-12-*-*-*-*-*-iso8859-1 Emacs.ToolBar: 0 Emacs.TopToolBarHeight: 0 Emacs.geometry: 81x69+10+0 Emacs.mode-line.AttributeBox: off emacs.waitForWM: false -- ------------------------------------------------------------------------- | Wolfgang Dobler Kiepenheuer Institute for Solar Physics | -------------------------------------------------------------------------