From unknown Sun Jun 22 17:18:22 2025 X-Loop: don@donarmstrong.com Subject: bug#1295: Segfault with `M-- M-r' when `scroll-margin' > 0 Reply-To: Teemu Likonen , 1295@debbugs.gnu.org Resent-From: Teemu Likonen Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 02 Nov 2008 13:55:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1295 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122563370315697 (code B ref -1); Sun, 02 Nov 2008 13:55:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 2 Nov 2008 13:48:23 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA2DmISd015691 for ; Sun, 2 Nov 2008 05:48:20 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KwdJS-0003zE-KW for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 08:48:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KwdJO-0003z2-VA for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 08:48:17 -0500 Received: from [199.232.76.173] (port=33182 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwdJO-0003yz-QU for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 08:48:14 -0500 Received: from mta-out.inet.fi ([195.156.147.13]:39256 helo=kirsi2.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KwdJO-0008Js-D1 for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 08:48:15 -0500 Received: from mithlond.arda.local (80.220.180.181) by kirsi2.inet.fi (8.5.014) id 48FC5B8900AF8D41 for bug-gnu-emacs@gnu.org; Sun, 2 Nov 2008 15:48:05 +0200 To: bug-gnu-emacs@gnu.org From: Teemu Likonen Date: Sun, 02 Nov 2008 15:48:04 +0200 Message-ID: <874p2qxmqz.fsf@iki.fi> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Emacs crashes with segmentation fault when I type command `M-- M-r' while variable `scroll-margin' has value 1 more more. Steps to reproduce: 1. Start Emacs from text terminal: $ emacs -Q 2. Move to Emacs reference manual buffer: C-h r 3. Don't move the cursor. Set the `scroll-margin' variable: M-x set-variable RET scroll-margin RET 4 RET 4. Run command `move-to-window-line' with negative argument: M-- M-r 5. You should see the Emacs frame disappearing and the following error message in terminal: Fatal error (11)Segmentation fault I have tried with Emacs version GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-10-17 on raven, modified by Debian and development snapshot version GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-10-18 on elegiac, modified by Debian (I'm writing this bug report with 22.2.1 as you can see from the following automatically inserted information.) In GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-10-17 on raven, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: en_US.UTF-8 value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fi_FI.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Info Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-h r C-s r e p o u u M-x m e m a c s - v e r s i o n M-x C-g C-x 5 2 M-x r e p o r t - b u e m a Recent messages: Loading info...done Loading jka-compr...done uncompressing emacs.gz...done uncompressing emacs-1.gz...done Mark saved where search started uncompressing emacs-5.gz...done byte-code: Beginning of buffer [6 times] GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-10-17 on raven, modified by Debian Quit Loading emacsbug...done From unknown Sun Jun 22 17:18:22 2025 X-Loop: don@donarmstrong.com Subject: bug#1295: Segfault with `M-- M-r' when `scroll-margin' > 0 Reply-To: Chong Yidong , 1295@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 03 Nov 2008 02:30:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1295 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1295-submit@emacsbugs.donarmstrong.com id=B1295.122567902012070 (code B ref 1295); Mon, 03 Nov 2008 02:30:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.7 required=4.0 tests=AWL,BAYES_00,MONEY autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1295) by emacsbugs.donarmstrong.com; 3 Nov 2008 02:23:40 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA32NbAU012064 for <1295@emacsbugs.donarmstrong.com>; Sun, 2 Nov 2008 18:23:38 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 6F1C157E1BA; Sun, 2 Nov 2008 21:23:45 -0500 (EST) From: Chong Yidong To: Martin Rudalics Cc: 1295@debbugs.gnu.org Date: Sun, 02 Nov 2008 21:23:45 -0500 Message-ID: <87fxm9lf7y.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > Emacs crashes with segmentation fault when I type command `M-- M-r' > while variable `scroll-margin' has value 1 more more. > > 1. $ emacs -Q > > 2. C-h r > > 3. Don't move the cursor. Set the `scroll-margin' variable: > > M-x set-variable RET scroll-margin RET 4 RET > > 4. M-- M-r > > Fatal error (11)Segmentation fault Hi Martin, I think this may be a consequence of your 2008-11-02 checkin to src (I didn't pinpoint the exact change that caused it, though). Could you check? From unknown Sun Jun 22 17:18:22 2025 X-Loop: don@donarmstrong.com Subject: bug#1295: Segfault with `M-- M-r' when `scroll-margin' > 0 Reply-To: martin rudalics , 1295@debbugs.gnu.org Resent-From: martin rudalics Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 03 Nov 2008 07:25:06 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1295 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1295-submit@emacsbugs.donarmstrong.com id=B1295.122569680421103 (code B ref 1295); Mon, 03 Nov 2008 07:25:06 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.0 required=4.0 tests=AWL,BAYES_00,MONEY autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1295) by emacsbugs.donarmstrong.com; 3 Nov 2008 07:20:04 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id mA37JxZ9021037 for <1295@emacsbugs.donarmstrong.com>; Sun, 2 Nov 2008 23:20:00 -0800 Received: (qmail invoked by alias); 03 Nov 2008 07:19:52 -0000 Received: from 62-47-33-150.adsl.highway.telekom.at (EHLO [62.47.33.150]) [62.47.33.150] by mail.gmx.net (mp034) with SMTP; 03 Nov 2008 08:19:52 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18R4ocG1zYRKmnJB2tkC+BAm6B0qEkQhSP7EoERFb ODTAvqQV0KEKLS Message-ID: <490EA561.7@gmx.at> Date: Mon, 03 Nov 2008 08:16:49 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Chong Yidong CC: 1295@debbugs.gnu.org References: <87fxm9lf7y.fsf@cyd.mit.edu> In-Reply-To: <87fxm9lf7y.fsf@cyd.mit.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6 >> Emacs crashes with segmentation fault when I type command `M-- M-r' >> while variable `scroll-margin' has value 1 more more. >> >> 1. $ emacs -Q >> >> 2. C-h r >> >> 3. Don't move the cursor. Set the `scroll-margin' variable: >> >> M-x set-variable RET scroll-margin RET 4 RET >> >> 4. M-- M-r >> >> Fatal error (11)Segmentation fault > > Hi Martin, > > I think this may be a consequence of your 2008-11-02 checkin to src (I > didn't pinpoint the exact change that caused it, though). > > Could you check? The report was for Emacsen built as GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-10-17 on raven, modified by Debian and development snapshot version GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-10-18 on elegiac, modified by Debian and I verified here that it crashes with a negative argument for all versions I keep personally. BTW, Richard apparently once tried to make `move-to-window-line' handle scroll margins but failed somehow. martin From unknown Sun Jun 22 17:18:22 2025 X-Loop: don@donarmstrong.com Subject: bug#1295: Segfault with `M-- M-r' when `scroll-margin' > 0 Reply-To: Chong Yidong , 1295@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 03 Nov 2008 19:50:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1295 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1295-submit@emacsbugs.donarmstrong.com id=B1295.122574122912556 (code B ref 1295); Mon, 03 Nov 2008 19:50:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1295) by emacsbugs.donarmstrong.com; 3 Nov 2008 19:40:29 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA3JeQlK012550 for <1295@emacsbugs.donarmstrong.com>; Mon, 3 Nov 2008 11:40:27 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 967C157E1D1; Mon, 3 Nov 2008 14:40:34 -0500 (EST) From: Chong Yidong To: martin rudalics Cc: 1295@debbugs.gnu.org References: <87fxm9lf7y.fsf@cyd.mit.edu> <490EA561.7@gmx.at> Date: Mon, 03 Nov 2008 14:40:34 -0500 In-Reply-To: <490EA561.7@gmx.at> (martin rudalics's message of "Mon, 03 Nov 2008 08:16:49 +0100") Message-ID: <87mygg1tu5.fsf@cyd.mit.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii martin rudalics writes: > The report was for Emacsen built as > > GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of > 2008-10-17 on raven, modified by Debian > > and development snapshot version > > GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of > 2008-10-18 on elegiac, modified by Debian > > and I verified here that it crashes with a negative argument for all > versions I keep personally. Sorry, my bad. For some reason, reproducing this bug needs a full bootstrap after reversion. A simple make recompile/make doesn't track the bug accurately, which is why it mistakenly pointed to your checkin. After some more investigation, it looks to me like the bug was introduced between 2008-10-06 (no crash) and 2008-10-07 (crash). Weird---there weren't any redisplay changes made at this time. From unknown Sun Jun 22 17:18:22 2025 X-Loop: don@donarmstrong.com Subject: bug#1295: Segfault with `M-- M-r' when `scroll-margin' > 0 Reply-To: Chong Yidong , 1295@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 03 Nov 2008 20:00:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1295 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1295-submit@emacsbugs.donarmstrong.com id=B1295.122574209315007 (code B ref 1295); Mon, 03 Nov 2008 20:00:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1295) by emacsbugs.donarmstrong.com; 3 Nov 2008 19:54:53 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA3JsoiR014999 for <1295@emacsbugs.donarmstrong.com>; Mon, 3 Nov 2008 11:54:51 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id F3FD257E1D1; Mon, 3 Nov 2008 14:54:58 -0500 (EST) From: Chong Yidong To: Teemu Likonen Cc: martin rudalics , 1295@debbugs.gnu.org References: <87fxm9lf7y.fsf@cyd.mit.edu> <490EA561.7@gmx.at> Date: Mon, 03 Nov 2008 14:54:58 -0500 In-Reply-To: <490EA561.7@gmx.at> (martin rudalics's message of "Mon, 03 Nov 2008 08:16:49 +0100") Message-ID: <87abcgbn59.fsf@cyd.mit.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Interesting. This bug appears to be due to an interaction between Emacs and the window manager's size hints. At least, I can't reproduce it with the latest CVS changes from today, in which a correction has been made to how Emacs sends size hints to the window manager: 2008-11-03 Chong Yidong * term/x-win.el (x-initialize-window-system): Call x-wm-set-size-hint after initialization. Could you see whether the problem is fixed for you? From unknown Sun Jun 22 17:18:22 2025 X-Loop: don@donarmstrong.com Subject: bug#1295: Segfault with `M-- M-r' when `scroll-margin' > 0 Reply-To: Teemu Likonen , 1295@debbugs.gnu.org Resent-From: Teemu Likonen Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 03 Nov 2008 21:50:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1295 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1295-submit@emacsbugs.donarmstrong.com id=B1295.122574845910507 (code B ref 1295); Mon, 03 Nov 2008 21:50:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.0 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1295) by emacsbugs.donarmstrong.com; 3 Nov 2008 21:40:59 +0000 Received: from jenni1.inet.fi (mta-out.inet.fi [195.156.147.13]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA3LesdM010501 for <1295@emacsbugs.donarmstrong.com>; Mon, 3 Nov 2008 13:40:56 -0800 Received: from mithlond.arda.local (80.220.180.181) by jenni1.inet.fi (8.5.014) id 48FC59C700C0EED5; Mon, 3 Nov 2008 23:40:53 +0200 To: Chong Yidong Cc: martin rudalics , 1295@debbugs.gnu.org In-Reply-To: <87abcgbn59.fsf@cyd.mit.edu> (Chong Yidong's message of "Mon\, 03 Nov 2008 14\:54\:58 -0500") References: <87fxm9lf7y.fsf@cyd.mit.edu> <490EA561.7@gmx.at> <87abcgbn59.fsf@cyd.mit.edu> From: Teemu Likonen Date: Mon, 03 Nov 2008 23:40:51 +0200 Message-ID: <874p2o5vz0.fsf@iki.fi> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Chong Yidong (2008-11-03 14:54 -0500) wrote: > Interesting. This bug appears to be due to an interaction between Emacs > and the window manager's size hints. At least, I can't reproduce it > with the latest CVS changes from today, in which a correction has been > made to how Emacs sends size hints to the window manager: > > 2008-11-03 Chong Yidong > > * term/x-win.el (x-initialize-window-system): Call > x-wm-set-size-hint after initialization. > > Could you see whether the problem is fixed for you? I'm not able to compile Emacs myself. For development versions I depend on prepackaged snapshots[1]. Sorry. I'll try it when a new snapshot becomes available. ---------- 1. http://emacs.orebokech.com/ From unknown Sun Jun 22 17:18:22 2025 X-Loop: don@donarmstrong.com Subject: bug#1295: Segfault with `M-- M-r' when `scroll-margin' > 0 Reply-To: martin rudalics , 1295@debbugs.gnu.org Resent-From: martin rudalics Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 04 Nov 2008 07:45:07 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1295 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1295-submit@emacsbugs.donarmstrong.com id=B1295.122578426129718 (code B ref 1295); Tue, 04 Nov 2008 07:45:07 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.2 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1295) by emacsbugs.donarmstrong.com; 4 Nov 2008 07:37:41 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id mA47bbZ6029712 for <1295@emacsbugs.donarmstrong.com>; Mon, 3 Nov 2008 23:37:38 -0800 Received: (qmail invoked by alias); 04 Nov 2008 07:37:32 -0000 Received: from 62-47-49-96.adsl.highway.telekom.at (EHLO [62.47.49.96]) [62.47.49.96] by mail.gmx.net (mp031) with SMTP; 04 Nov 2008 08:37:32 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/7RpceyzP79sIwSegllZxlISNfghE+88dlpl18Xw vkrZVNCjq8/PDb Message-ID: <490FFB70.8030302@gmx.at> Date: Tue, 04 Nov 2008 08:36:16 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Chong Yidong CC: Teemu Likonen , 1295@debbugs.gnu.org References: <87fxm9lf7y.fsf@cyd.mit.edu> <490EA561.7@gmx.at> <87abcgbn59.fsf@cyd.mit.edu> In-Reply-To: <87abcgbn59.fsf@cyd.mit.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.67 > Interesting. This bug appears to be due to an interaction between Emacs > and the window manager's size hints. At least, I can't reproduce it > with the latest CVS changes from today, in which a correction has been > made to how Emacs sends size hints to the window manager: > > 2008-11-03 Chong Yidong > > * term/x-win.el (x-initialize-window-system): Call > x-wm-set-size-hint after initialization. > > Could you see whether the problem is fixed for you? Still crashes here. But just before crashing, display of the center line of the window gets garbled now. So it appears related to these size hints. martin From unknown Sun Jun 22 17:18:22 2025 X-Loop: don@donarmstrong.com Subject: bug#1295: Segfault with `M-- M-r' when `scroll-margin' > 0 Reply-To: rms@gnu.org, 1295@debbugs.gnu.org Resent-From: "Richard M. Stallman" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 04 Nov 2008 20:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1295 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12258316821006 (code B ref -1); Tue, 04 Nov 2008 20:55:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-10.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 4 Nov 2008 20:48:02 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA4KlxNB000996 for ; Tue, 4 Nov 2008 12:48:00 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KxSog-00009c-VV for bug-gnu-emacs@gnu.org; Tue, 04 Nov 2008 15:47:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KxSof-00008i-GG for bug-gnu-emacs@gnu.org; Tue, 04 Nov 2008 15:47:58 -0500 Received: from [199.232.76.173] (port=45332 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxSof-00008b-3T for bug-gnu-emacs@gnu.org; Tue, 04 Nov 2008 15:47:57 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:41921) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KxSof-0006sS-HU for bug-gnu-emacs@gnu.org; Tue, 04 Nov 2008 15:47:57 -0500 Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KxSlj-0005N8-GC; Tue, 04 Nov 2008 15:44:55 -0500 Content-Type: text/plain; charset=ISO-8859-15 From: "Richard M. Stallman" To: martin rudalics , 1295@debbugs.gnu.org CC: cyd@stupidchicken.com, bug-submit-list@donarmstrong.com, tlikonen@iki.fi, 1295@debbugs.gnu.org, bug-gnu-emacs@gnu.org In-reply-to: <490FFB70.8030302@gmx.at> (message from martin rudalics on Tue, 04 Nov 2008 08:36:16 +0100) References: <87fxm9lf7y.fsf@cyd.mit.edu> <490EA561.7@gmx.at> <87abcgbn59.fsf@cyd.mit.edu> <490FFB70.8030302@gmx.at> Message-Id: Date: Tue, 04 Nov 2008 15:44:55 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-CrossAssassin-Score: 2 > 2008-11-03 Chong Yidong > > * term/x-win.el (x-initialize-window-system): Call > x-wm-set-size-hint after initialization. > > Could you see whether the problem is fixed for you? Still crashes here. But just before crashing, display of the center line of the window gets garbled now. So it appears related to these size hints. If we think that a bug in Lisp code causes a crash, we should think about whether there's a bug in the C code which it is triggering. From unknown Sun Jun 22 17:18:22 2025 X-Loop: don@donarmstrong.com Subject: bug#1295: Segfault with `M-- M-r' when `scroll-margin' > 0 Reply-To: martin rudalics , 1295@debbugs.gnu.org Resent-From: martin rudalics Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 05 Nov 2008 07:30:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1295 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1295-submit@emacsbugs.donarmstrong.com id=B1295.122586985429046 (code B ref 1295); Wed, 05 Nov 2008 07:30:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.2 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, IMPRONONCABLE_2 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1295) by emacsbugs.donarmstrong.com; 5 Nov 2008 07:24:14 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id mA57O9Yh029040 for <1295@emacsbugs.donarmstrong.com>; Tue, 4 Nov 2008 23:24:11 -0800 Received: (qmail invoked by alias); 05 Nov 2008 07:24:04 -0000 Received: from 62-47-47-0.adsl.highway.telekom.at (EHLO [62.47.47.0]) [62.47.47.0] by mail.gmx.net (mp002) with SMTP; 05 Nov 2008 08:24:04 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19ormwGAzhoLoIDyNnuu9ZfLhutoq70p4dHwSOZ0E gp8vmHQWva8DGX Message-ID: <491149C6.2030008@gmx.at> Date: Wed, 05 Nov 2008 08:22:46 +0100 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: rms@gnu.org CC: 1295@debbugs.gnu.org, cyd@stupidchicken.com, tlikonen@iki.fi References: <87fxm9lf7y.fsf@cyd.mit.edu> <490EA561.7@gmx.at> <87abcgbn59.fsf@cyd.mit.edu> <490FFB70.8030302@gmx.at> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.59 > If we think that a bug in Lisp code causes a crash, > we should think about whether there's a bug in the C code > which it is triggering. It's a bug in C. With the OP's recipe I get: Program received signal SIGSEGV, Segmentation fault. 0x01028412 in try_window_reusing_current_matrix (w=0x3784600) at xdisp.c:14471 (gdb) bt #0 0x01028412 in try_window_reusing_current_matrix (w=0x3784600) at xdisp.c:14471 #1 0x0102c328 in redisplay_window (window=58213892, just_this_one_p=1) at xdisp.c:13764 #2 0x0102dd61 in redisplay_window_1 (window=58213892) at xdisp.c:12249 #3 0x01009d1b in internal_condition_case_1 (bfun=0x102dd34 , arg=58213892, handlers=43976013, hfun=0x101d96a ) at eval.c:1559 #4 0x0102f775 in redisplay_internal (preserve_echo_area=2732) at xdisp.c:11867 #5 0x0105946f in read_char (commandflag=1, nmaps=2, maps=0x82fb20, prev_event=43993089, used_mouse_menu=0x82fb68, end_time=0x0) at keyboard.c:2649 #6 0x0105c47d in read_key_sequence (keybuf=0x82fcb0, bufsize=30, prompt=43993089, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9344 #7 0x0105e342 in command_loop_1 () at keyboard.c:1621 #8 0x01009fae in internal_condition_case (bfun=0x105e190 , handlers=44056841, hfun=0x105773c ) at eval.c:1511 #9 0x01051cca in command_loop_2 () at keyboard.c:1338 #10 0x01009ee3 in internal_catch (tag=2732, func=0x1051ca7 , arg=43993089) at eval.c:1247 #11 0x01051ad7 in command_loop () at keyboard.c:1317 #12 0x01051b70 in recursive_edit_1 () at keyboard.c:942 #13 0x01051c91 in Frecursive_edit () at keyboard.c:1004 #14 0x01002e46 in main (argc=2, argv=0xa327e0) at emacs.c:1777 (gdb) martin From unknown Sun Jun 22 17:18:22 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Teemu Likonen Subject: bug#1295 closed by Chong Yidong (Re: Segfault with `M-- M-r' when `scroll-margin' > 0) Message-ID: References: <87wsfgv0mj.fsf@cyd.mit.edu> <874p2qxmqz.fsf@iki.fi> X-Emacs-PR-Message: they-closed 1295 X-Emacs-PR-Package: emacs Reply-To: 1295@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1226018405-29339-1" This is a multi-part message in MIME format... ------------=_1226018405-29339-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #1295: Segfault with `M-- M-r' when `scroll-margin' > 0 It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 1295: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1295 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1226018405-29339-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Thu Nov 6 16:30:06 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1295-done) by emacsbugs.donarmstrong.com; 7 Nov 2008 00:30:06 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA70U2pj026985 for <1295-done@emacsbugs.donarmstrong.com>; Thu, 6 Nov 2008 16:30:04 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id DDD0D57E0BE; Thu, 6 Nov 2008 19:30:12 -0500 (EST) From: Chong Yidong To: Teemu Likonen Cc: 1295-done@debbugs.gnu.org Subject: Re: Segfault with `M-- M-r' when `scroll-margin' > 0 Date: Thu, 06 Nov 2008 19:30:12 -0500 Message-ID: <87wsfgv0mj.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > Emacs crashes with segmentation fault when I type command `M-- M-r' > while variable `scroll-margin' has value 1 more more. I've checked in a fix that should solve this problem. ------------=_1226018405-29339-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From tlikonen@iki.fi Sun Nov 2 05:48:23 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 2 Nov 2008 13:48:23 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA2DmISd015691 for ; Sun, 2 Nov 2008 05:48:20 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KwdJS-0003zE-KW for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 08:48:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KwdJO-0003z2-VA for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 08:48:17 -0500 Received: from [199.232.76.173] (port=33182 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwdJO-0003yz-QU for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 08:48:14 -0500 Received: from mta-out.inet.fi ([195.156.147.13]:39256 helo=kirsi2.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KwdJO-0008Js-D1 for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 08:48:15 -0500 Received: from mithlond.arda.local (80.220.180.181) by kirsi2.inet.fi (8.5.014) id 48FC5B8900AF8D41 for bug-gnu-emacs@gnu.org; Sun, 2 Nov 2008 15:48:05 +0200 To: bug-gnu-emacs@gnu.org Subject: Segfault with `M-- M-r' when `scroll-margin' > 0 From: Teemu Likonen Date: Sun, 02 Nov 2008 15:48:04 +0200 Message-ID: <874p2qxmqz.fsf@iki.fi> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Emacs crashes with segmentation fault when I type command `M-- M-r' while variable `scroll-margin' has value 1 more more. Steps to reproduce: 1. Start Emacs from text terminal: $ emacs -Q 2. Move to Emacs reference manual buffer: C-h r 3. Don't move the cursor. Set the `scroll-margin' variable: M-x set-variable RET scroll-margin RET 4 RET 4. Run command `move-to-window-line' with negative argument: M-- M-r 5. You should see the Emacs frame disappearing and the following error message in terminal: Fatal error (11)Segmentation fault I have tried with Emacs version GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-10-17 on raven, modified by Debian and development snapshot version GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-10-18 on elegiac, modified by Debian (I'm writing this bug report with 22.2.1 as you can see from the following automatically inserted information.) In GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-10-17 on raven, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: en_US.UTF-8 value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fi_FI.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Info Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-h r C-s r e p o u u M-x m e m a c s - v e r s i o n M-x C-g C-x 5 2 M-x r e p o r t - b u e m a Recent messages: Loading info...done Loading jka-compr...done uncompressing emacs.gz...done uncompressing emacs-1.gz...done Mark saved where search started uncompressing emacs-5.gz...done byte-code: Beginning of buffer [6 times] GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-10-17 on raven, modified by Debian Quit Loading emacsbug...done ------------=_1226018405-29339-1-- From unknown Sun Jun 22 17:18:22 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Teemu Likonen Subject: bug#1296 closed by Chong Yidong (Re: Segfault with `M-- M-r' when `scroll-margin' > 0) Message-ID: References: <87wsfgv0mj.fsf@cyd.mit.edu> <87skqaw7sw.fsf@iki.fi> X-Emacs-PR-Message: they-closed 1296 X-Emacs-PR-Package: emacs Reply-To: 1296@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1226018406-29339-3" This is a multi-part message in MIME format... ------------=_1226018406-29339-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #1295: Segfault with `M-- M-r' when `scroll-margin' is higher than zero It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 1295: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1295 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1226018406-29339-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From cyd@stupidchicken.com Thu Nov 6 16:30:06 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1295-done) by emacsbugs.donarmstrong.com; 7 Nov 2008 00:30:06 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA70U2pj026985 for <1295-done@emacsbugs.donarmstrong.com>; Thu, 6 Nov 2008 16:30:04 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id DDD0D57E0BE; Thu, 6 Nov 2008 19:30:12 -0500 (EST) From: Chong Yidong To: Teemu Likonen Cc: 1295-done@debbugs.gnu.org Subject: Re: Segfault with `M-- M-r' when `scroll-margin' > 0 Date: Thu, 06 Nov 2008 19:30:12 -0500 Message-ID: <87wsfgv0mj.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > Emacs crashes with segmentation fault when I type command `M-- M-r' > while variable `scroll-margin' has value 1 more more. I've checked in a fix that should solve this problem. ------------=_1226018406-29339-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From tlikonen@iki.fi Sun Nov 2 05:56:23 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 2 Nov 2008 13:56:23 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA2DuJVH018189 for ; Sun, 2 Nov 2008 05:56:21 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KwdRD-0006Zc-JS for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 08:56:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KwdRC-0006ZA-Ir for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 08:56:19 -0500 Received: from [199.232.76.173] (port=41608 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwdRC-0006Z5-D2 for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 08:56:18 -0500 Received: from mta-out.inet.fi ([195.156.147.13]:47809 helo=jenni1.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KwdRB-00014N-Vr for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2008 08:56:18 -0500 Received: from mithlond.arda.local (80.220.180.181) by jenni1.inet.fi (8.5.014) id 48FC59C700AF4414 for bug-gnu-emacs@gnu.org; Sun, 2 Nov 2008 15:56:16 +0200 To: bug-gnu-emacs@gnu.org Subject: Segfault with `M-- M-r' when `scroll-margin' is higher than zero From: Teemu Likonen Date: Sun, 02 Nov 2008 15:56:15 +0200 Message-ID: <87skqaw7sw.fsf@iki.fi> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Emacs crashes with segmentation fault when I type command `M-- M-r' while variable `scroll-margin' has value 1 more more. Steps to reproduce: 1. Start Emacs from text terminal: $ emacs -Q 2. Move to Emacs reference manual buffer: C-h r 3. Don't move the cursor. Set the `scroll-margin' variable: M-x set-variable RET scroll-margin RET 4 RET 4. Run command `move-to-window-line' with negative argument: M-- M-r 5. You should see the Emacs frame disappearing and the following error message in terminal: Fatal error (11)Segmentation fault I have tried with Emacs version GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-10-17 on raven, modified by Debian and development snapshot version GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-10-18 on elegiac, modified by Debian (I'm writing this bug report with 22.2.1 as you can see from the following automatically inserted information.) In GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-10-17 on raven, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: en_US.UTF-8 value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fi_FI.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Info Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-h r C-s r e p o u u M-x m e m a c s - v e r s i o n M-x C-g C-x 5 2 M-x r e p o r t - b u e m a Recent messages: Loading info...done Loading jka-compr...done uncompressing emacs.gz...done uncompressing emacs-1.gz...done Mark saved where search started uncompressing emacs-5.gz...done byte-code: Beginning of buffer [6 times] GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-10-17 on raven, modified by Debian Quit Loading emacsbug...done ------------=_1226018406-29339-3--