From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#4534: assertion failure at window.c:grow_mini_window Date: Wed, 23 Sep 2009 09:28:17 +0200 Message-ID: <4AB9CE11.9040300@gmx.at> References: Reply-To: martin rudalics , 4534@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253692051 26500 80.91.229.12 (23 Sep 2009 07:47:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Sep 2009 07:47:31 +0000 (UTC) To: Juanma Barranquero , 4534@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 23 09:47:24 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MqMZO-0006rE-Ta for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Sep 2009 09:47:23 +0200 Original-Received: from localhost ([127.0.0.1]:39025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqMZO-0001jW-DA for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Sep 2009 03:47:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqMZL-0001jR-1K for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2009 03:47:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqMZF-0001jB-HG for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2009 03:47:17 -0400 Original-Received: from [199.232.76.173] (port=50775 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqMZF-0001j8-BQ for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2009 03:47:13 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:64784) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MqMZE-0007J8-Qh for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2009 03:47:12 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqMZD-0000jd-Jw for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2009 03:47:12 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8N7l35j012882; Wed, 23 Sep 2009 00:47:03 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8N7Z4u4011205; Wed, 23 Sep 2009 00:35:04 -0700 Resent-Date: Wed, 23 Sep 2009 00:35:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 23 Sep 2009 07:35:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4534 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4534-submit@emacsbugs.donarmstrong.com id=B4534.125369090710474 (code B ref 4534); Wed, 23 Sep 2009 07:35:04 +0000 Original-Received: (at 4534) by emacsbugs.donarmstrong.com; 23 Sep 2009 07:28:27 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n8N7SONG010470 for <4534@emacsbugs.donarmstrong.com>; Wed, 23 Sep 2009 00:28:26 -0700 Original-Received: (qmail invoked by alias); 23 Sep 2009 07:28:18 -0000 Original-Received: from 62-47-54-210.adsl.highway.telekom.at (EHLO [62.47.54.210]) [62.47.54.210] by mail.gmx.net (mp063) with SMTP; 23 Sep 2009 09:28:18 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+Csi0dmRKCjtgSITnK3sNMuCZ8iZnxwnxhcDz/LK oU7PGp5LkYTHOn User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.53 X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Wed, 23 Sep 2009 03:47:17 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31395 Archived-At: > I put the attached files into directory C:\temp, including the file test.el: > > (setq resize-mini-windows t) > (setq ido-enable-flex-matching t) > (setq ido-max-prospects 14) > (ido-mode 1) > > Then, > > emacs -Q -l c:/temp/test.el > C-x C-f c:/temp/testfile 3 7 > > Emacs aborts. (Note: As the failure depends on the number of lines in > the minibuffer, tweaking `ido-max-prospects' and/or adding more files > to the directory may be necessary to reproduce the bug.) > > The xassert (delta >= 0) at the start of window.c:grow_mini_window > fails, because delta == -1. In resize_mini_window, the call to > xdisp.c:grow_mini_window has height == 5 and WINDOW_TOTAL_LINES (w) == > 6. > > Juanma > > > > Breakpoint 1, w32_abort () at w32fns.c:7344 > 7344 button = MessageBox (NULL, > (gdb) bt > #0 w32_abort () at w32fns.c:7344 > #1 0x011b929c in grow_mini_window (w=0x2f9ec00, delta=-1) at window.c:4637 > #2 0x0106d122 in resize_mini_window (w=0x2f9ec00, exact_p=0) at xdisp.c:8809 ... The following part in `resize_mini_window' doesn't strike me as very elegant in this respect: if (height) { freeze_window_starts (f, 1); grow_mini_window (w, height - WINDOW_TOTAL_LINES (w)); } Does it cause the bug? Just comment it out to check. martin