From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50096: args-out-of-range in redisplay_internal Date: Thu, 19 Aug 2021 15:39:38 +0300 Message-ID: <83tujl1ud1.fsf@gnu.org> References: <87r1esys1a.fsf@mail.linkov.net> <83v94456sn.fsf@gnu.org> <87h7foyo67.fsf@mail.linkov.net> <87im04x8mm.fsf@mail.linkov.net> <83sfz8543o.fsf@gnu.org> <874kbox736.fsf@mail.linkov.net> <83mtpf6hjb.fsf@gnu.org> <87eearx5tz.fsf@mail.linkov.net> <83k0kj6gmq.fsf@gnu.org> <87im03tc6g.fsf@mail.linkov.net> <834kbn54kq.fsf@gnu.org> <87y28yspf2.fsf@mail.linkov.net> <838s0y4rgf.fsf@gnu.org> <83v94239un.fsf@gnu.org> <87h7flx5rx.fsf@mail.linkov.net> <83wnoh26qw.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4927"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50096@debbugs.gnu.org To: juri@linkov.net, Clemens Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 19 14:41:09 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mGhM5-00015l-FL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Aug 2021 14:41:09 +0200 Original-Received: from localhost ([::1]:36744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGhM4-0005gF-E6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Aug 2021 08:41:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGhLy-0005ft-RL for bug-gnu-emacs@gnu.org; Thu, 19 Aug 2021 08:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47231) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGhLy-0007o7-Gu for bug-gnu-emacs@gnu.org; Thu, 19 Aug 2021 08:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGhLy-0005Hc-Ag for bug-gnu-emacs@gnu.org; Thu, 19 Aug 2021 08:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Aug 2021 12:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50096 X-GNU-PR-Package: emacs Original-Received: via spool by 50096-submit@debbugs.gnu.org id=B50096.162937681720248 (code B ref 50096); Thu, 19 Aug 2021 12:41:02 +0000 Original-Received: (at 50096) by debbugs.gnu.org; 19 Aug 2021 12:40:17 +0000 Original-Received: from localhost ([127.0.0.1]:58777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGhLF-0005GW-F0 for submit@debbugs.gnu.org; Thu, 19 Aug 2021 08:40:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGhLD-0005GH-P8 for 50096@debbugs.gnu.org; Thu, 19 Aug 2021 08:40:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42320) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGhL7-0007Ml-PY; Thu, 19 Aug 2021 08:40:09 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3437 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGhKw-0006Kd-QZ; Thu, 19 Aug 2021 08:40:09 -0400 In-Reply-To: <83wnoh26qw.fsf@gnu.org> (message from Eli Zaretskii on Thu, 19 Aug 2021 11:12:07 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:212205 Archived-At: > Date: Thu, 19 Aug 2021 11:12:07 +0300 > From: Eli Zaretskii > Cc: 50096@debbugs.gnu.org > > > From: Juri Linkov > > Cc: 50096@debbugs.gnu.org > > Date: Thu, 19 Aug 2021 10:17:22 +0300 > > > > Fortunately, finally I found the shortest test case 100% reproducible > > in 'emacs -Q'. The line '(set-buffer (get-buffer-create "*test*"))' > > is not necessary, it just causes a slightly different error. > > Without 'set-buffer', the error is: (args-out-of-range 1737) > > With 'set-buffer', the error is: (args-out-of-range 1737 1737) > > Thanks. This actually produces an assertion violation here (I guess > your Emacs is compiled without --enable-checking). I'll work on this. This problem is the side effect of fixing bug#46718. Before that fix, we never resized mini-windows when truncate-lines was non-nil in the buffer displayed in that window. And now we know why. Unfortunately, the best I could do to fix this is disable hscrolling in display of echo-area messages (but NOT in the minibuffer editing -- that should still work). Please see the latest master and tell if this is acceptable. If it isn't, the only alternative I see is to back out the fix for bug#46718, which I suspect Clemens won't like... Or maybe someone braver than myself will redesign and re-implement with_echo_area_buffer in a way that avoids creating this situation with glyph matrices in the first place.