From unknown Thu Aug 14 21:44:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8020 <8020@debbugs.gnu.org> To: bug#8020 <8020@debbugs.gnu.org> Subject: Status: 23.2.93; assertion failure on fast frame resize Reply-To: bug#8020 <8020@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:44:11 +0000 retitle 8020 23.2.93; assertion failure on fast frame resize reassign 8020 emacs submitter 8020 YAMAMOTO Mitsuharu severity 8020 important thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 11 21:21:51 2011 Received: (at submit) by debbugs.gnu.org; 12 Feb 2011 02:21:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Po57O-0001MB-Q0 for submit@debbugs.gnu.org; Fri, 11 Feb 2011 21:21:51 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Po57M-0001Ly-14 for submit@debbugs.gnu.org; Fri, 11 Feb 2011 21:21:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Po5Fu-0003Gn-1V for submit@debbugs.gnu.org; Fri, 11 Feb 2011 21:30:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:52740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Po5Ft-0003GZ-Ob for submit@debbugs.gnu.org; Fri, 11 Feb 2011 21:30:37 -0500 Received: from [140.186.70.92] (port=34516 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Po5Fs-00035G-5a for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2011 21:30:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Po5Fq-0003Eo-6y for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2011 21:30:35 -0500 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:60561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Po5Fp-0003Cd-M8 for bug-gnu-emacs@gnu.org; Fri, 11 Feb 2011 21:30:34 -0500 Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 26DFBC05ED for ; Sat, 12 Feb 2011 11:30:28 +0900 (JST) Date: Sat, 12 Feb 2011 11:30:28 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: bug-gnu-emacs@gnu.org Subject: 23.2.93; assertion failure on fast frame resize User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: NetBSD 3.0 (DF) X-Received-From: 133.82.132.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.8 (----) This is forked from Bug#7348, and some analysis can be found there. (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7348) Steps to reproduce: 1. Build emacs with --enable-checking 2. emacs -Q 3. C-x 2 4. Move your mouse to the corner of the frame, grab it, drag up, rescaling the vertically to minimum size Result: ../src/xdisp.c:11515: Emacs fatal error: assertion failed: BUFFERP(w->buffer) The value of w->buffer was nil when the assertion failure occurred. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp In GNU Emacs 23.2.93.1 (x86_64-apple-darwin10.6.0, GTK+ Version 2.22.1) of 2011-02-09 on yamamoto-mitsuharu-no-iMac.local Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--enable-checking' 'LDFLAGS=-L/opt/local/lib' 'CPPFLAGS=-I/opt/local/include' 'CFLAGS=-g'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ja_JP.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 12 03:42:32 2011 Received: (at 8020) by debbugs.gnu.org; 12 Feb 2011 08:42:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoB3o-00024C-MW for submit@debbugs.gnu.org; Sat, 12 Feb 2011 03:42:32 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoB3m-000240-89 for 8020@debbugs.gnu.org; Sat, 12 Feb 2011 03:42:31 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LGH00C00XKY7M00@a-mtaout22.012.net.il> for 8020@debbugs.gnu.org; Sat, 12 Feb 2011 10:50:30 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.171.5]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LGH00BDUXW4NFC0@a-mtaout22.012.net.il>; Sat, 12 Feb 2011 10:50:30 +0200 (IST) Date: Sat, 12 Feb 2011 10:50:49 +0200 From: Eli Zaretskii Subject: Re: bug#8020: 23.2.93; assertion failure on fast frame resize In-reply-to: X-012-Sender: halo1@inter.net.il To: YAMAMOTO Mitsuharu Message-id: <837hd5r5zq.fsf@gnu.org> References: X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 8020 Cc: 8020@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > Date: Sat, 12 Feb 2011 11:30:28 +0900 > From: YAMAMOTO Mitsuharu > Cc: > > This is forked from Bug#7348, and some analysis can be found there. > (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7348) > > Steps to reproduce: > > 1. Build emacs with --enable-checking > 2. emacs -Q > 3. C-x 2 > 4. Move your mouse to the corner of the frame, grab it, drag up, > rescaling the vertically to minimum size > > Result: > > ../src/xdisp.c:11515: Emacs fatal error: assertion failed: BUFFERP(w->buffer) > > The value of w->buffer was nil when the assertion failure occurred. Please try the patch below, which is based on the discussions in bug #7348. The patch seems to solve the bug on MS-Windows. If it works for you on another platform, and doesn't cause problems elsewhere, I will install it on the emacs-23 branch. Thanks. --- src/xdisp.c.orig 2011-01-26 20:15:42.000000000 +0200 +++ src/xdisp.c 2011-02-12 10:48:56.296875000 +0200 @@ -11261,6 +11261,7 @@ int preserve_echo_area; { struct window *w = XWINDOW (selected_window); + struct window *sw; struct frame *f; int pause; int must_finish = 0; @@ -11331,6 +11332,9 @@ } retry: + /* Remember the currently selected window. */ + sw = w; + if (!EQ (old_frame, selected_frame) && FRAME_LIVE_P (XFRAME (old_frame))) /* When running redisplay, we play a bit fast-and-loose and allow e.g. @@ -11396,6 +11400,14 @@ /* Notice any pending interrupt request to change frame size. */ do_pending_window_change (1); + /* do_pending_window_change could change the selected_window due to + frame resizing which makes the selected window too small. */ + if (WINDOWP (selected_window) && (w = XWINDOW (selected_window)) != sw) + { + sw = w; + reconsider_clip_changes (w, current_buffer); + } + /* Clear frames marked as garbaged. */ if (frame_garbaged) clear_garbaged_frames (); @@ -11665,6 +11677,10 @@ if (!must_finish) { do_pending_window_change (1); + /* If selected_window changed, redisplay again. */ + if (WINDOWP (selected_window) + && (w = XWINDOW (selected_window)) != sw) + goto retry; /* We used to always goto end_of_redisplay here, but this isn't enough if we have a blinking cursor. */ @@ -11959,8 +11975,9 @@ do_pending_window_change (1); /* If we just did a pending size change, or have additional - visible frames, redisplay again. */ - if (windows_or_buffers_changed && !pause) + visible frames, or selected_window changed, redisplay again. */ + if ((windows_or_buffers_changed && !pause) + || (WINDOWP (selected_window) && (w = XWINDOW (selected_window)) != sw)) goto retry; /* Clear the face cache eventually. */ From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 12 16:05:52 2011 Received: (at control) by debbugs.gnu.org; 12 Feb 2011 21:05:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoMfA-0002bg-1B for submit@debbugs.gnu.org; Sat, 12 Feb 2011 16:05:52 -0500 Received: from vm-emlprdomr-06.its.yale.edu ([130.132.50.147]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoMf8-0002bV-Hi for control@debbugs.gnu.org; Sat, 12 Feb 2011 16:05:50 -0500 Received: from furball (c-71-192-165-84.hsd1.ct.comcast.net [71.192.165.84]) (authenticated bits=0) by vm-emlprdomr-06.its.yale.edu (8.14.4/8.14.4) with ESMTP id p1CLEhfZ029202 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 12 Feb 2011 16:14:43 -0500 Received: by furball (Postfix, from userid 1000) id 9FBC61605B7; Sat, 12 Feb 2011 16:14:41 -0500 (EST) From: Chong Yidong To: control@debbugs.gnu.org Subject: severity 8020 important Date: Sat, 12 Feb 2011 16:14:41 -0500 Message-ID: <87pqqxuf9a.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.147 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) severity 8020 important thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 12 23:33:06 2011 Received: (at 8020) by debbugs.gnu.org; 13 Feb 2011 04:33:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoTdy-000744-74 for submit@debbugs.gnu.org; Sat, 12 Feb 2011 23:33:06 -0500 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PoTdb-00073E-T2 for 8020@debbugs.gnu.org; Sat, 12 Feb 2011 23:33:05 -0500 Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 6E57AC0557; Sun, 13 Feb 2011 13:41:36 +0900 (JST) Date: Sun, 13 Feb 2011 13:41:36 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: Eli Zaretskii Subject: Re: bug#8020: 23.2.93; assertion failure on fast frame resize In-Reply-To: <837hd5r5zq.fsf@gnu.org> References: <837hd5r5zq.fsf@gnu.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 8020 Cc: 8020@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) >>>>> On Sat, 12 Feb 2011 10:50:49 +0200, Eli Zaretskii said: > Please try the patch below, which is based on the discussions in bug > #7348. The patch seems to solve the bug on MS-Windows. If it works > for you on another platform, and doesn't cause problems elsewhere, I > will install it on the emacs-23 branch. Yes, it also works for me with the GTK+ build on Mac OS X 10.6. Thanks. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 13 13:47:57 2011 Received: (at 8020-done) by debbugs.gnu.org; 13 Feb 2011 18:47:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PogzF-0002UN-Be for submit@debbugs.gnu.org; Sun, 13 Feb 2011 13:47:57 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PogzC-0002U9-Gi for 8020-done@debbugs.gnu.org; Sun, 13 Feb 2011 13:47:55 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LGK00A00KKAWF00@a-mtaout22.012.net.il> for 8020-done@debbugs.gnu.org; Sun, 13 Feb 2011 20:56:28 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.171.5]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LGK00AK6KM2A460@a-mtaout22.012.net.il>; Sun, 13 Feb 2011 20:56:28 +0200 (IST) Date: Sun, 13 Feb 2011 20:56:26 +0200 From: Eli Zaretskii Subject: Re: bug#8020: 23.2.93; assertion failure on fast frame resize In-reply-to: X-012-Sender: halo1@inter.net.il To: YAMAMOTO Mitsuharu Message-id: <83tyg7pxut.fsf@gnu.org> References: <837hd5r5zq.fsf@gnu.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 8020-done Cc: 8020-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Sun, 13 Feb 2011 13:41:36 +0900 > From: YAMAMOTO Mitsuharu > Cc: 8020@debbugs.gnu.org > > >>>>> On Sat, 12 Feb 2011 10:50:49 +0200, Eli Zaretskii said: > > > Please try the patch below, which is based on the discussions in bug > > #7348. The patch seems to solve the bug on MS-Windows. If it works > > for you on another platform, and doesn't cause problems elsewhere, I > > will install it on the emacs-23 branch. > > Yes, it also works for me with the GTK+ build on Mac OS X 10.6. > Thanks. Thanks, installed on the emacs-23 branch. From unknown Thu Aug 14 21:44:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 14 Mar 2011 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator