From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Fitzsimmons Newsgroups: gmane.emacs.bugs Subject: bug#63711: 30.0.50; Crash in xdisp.c when it->string is 0x0 Date: Thu, 25 May 2023 13:43:03 -0400 Message-ID: References: <83ilcgn9ud.fsf@gnu.org> <835y8gmt3f.fsf@gnu.org> <834jo0mono.fsf@gnu.org> <83353kmmoq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30858"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63711@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 25 19:44:17 2023 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 1q2F0Z-0007pb-IO for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 May 2023 19:44:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2F0P-0007NI-1M; Thu, 25 May 2023 13:44:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2F0M-0007MP-QF for bug-gnu-emacs@gnu.org; Thu, 25 May 2023 13:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q2F0M-0006uK-IC for bug-gnu-emacs@gnu.org; Thu, 25 May 2023 13:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q2F0M-0004Zn-Ec for bug-gnu-emacs@gnu.org; Thu, 25 May 2023 13:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thomas Fitzsimmons Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 May 2023 17:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63711 X-GNU-PR-Package: emacs Original-Received: via spool by 63711-submit@debbugs.gnu.org id=B63711.168503659217523 (code B ref 63711); Thu, 25 May 2023 17:44:02 +0000 Original-Received: (at 63711) by debbugs.gnu.org; 25 May 2023 17:43:12 +0000 Original-Received: from localhost ([127.0.0.1]:48003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2EzY-0004YY-0d for submit@debbugs.gnu.org; Thu, 25 May 2023 13:43:12 -0400 Original-Received: from mail.fitzsim.org ([69.165.165.189]:44158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2EzW-0004YJ-19 for 63711@debbugs.gnu.org; Thu, 25 May 2023 13:43:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fitzsim.org ; s=20220430; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Fr84AoPjKH2MqnTBhkUvsumXrtvSWlnGbj30hhzMyYk=; b=gVNVLJxgQ2xL/jwFX9cemgIiug MrXK8mDF8ETN2k9F96bqtJjMiMDe5L1LiB4W4mEnotbHlbBv6lpQj7X8l659Pg35BB+d92Shp4ZXo 7VJj1cAV7E1EJzjSHRnIUKSNClyEZKoEj3NJSRZV/m3yiBkYF1V8UwmSKhtrvcElyf3EyOKUF6fR1 9kVYwCe2aoBHQF4fC0AqHWO/GXEbccw0QtEPYqgyXwNYRBaJRu9yuU5zfTjMvjGBH1YsLtWOzigvf TFsdskj7dkZfl57mEJYGgAKofmsuZhYk4Mvyn3VZNnQPgx1A7eoBBslQsJNzAAuOEli6L6Csfdlhk Q2Vr6srw==; Original-Received: from [192.168.1.1] (helo=localhost.localdomain) by mail.fitzsim.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1q2EzQ-000NAR-8B; Thu, 25 May 2023 13:43:04 -0400 In-Reply-To: <83353kmmoq.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 25 May 2023 18:54:13 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262381 Archived-At: Eli Zaretskii writes: >> From: Thomas Fitzsimmons >> Cc: 63711@debbugs.gnu.org >> Date: Thu, 25 May 2023 11:25:23 -0400 >> >> > (gdb) prow >> >> y=701 x=0 pwid=1287 a+d=18+5=23 phys=16+4=20 vis=23 >> used=(LMargin=0,Text=113,RMargin=0) Hash=258184180 >> start=0 end=0 ENA MODEL >> >> > (gdb) pgrow >> >> TEXT: 113 glyphs >> 0 0: CHAR[ ] str=0xf188ab16[0] blev=0,btyp=L w=11 a+d=18+5 face=1 >> 1 11: CHAR[U] str=0x1ccec60[1] blev=0,btyp=L w=11 a+d=18+5 face=1 >> 2 22: CHAR[:] str=0x4e125d0[0] blev=0,btyp=L w=11 a+d=18+5 face=1 >> 3 33: STRETCH[23+18] str=0x1ccecb8[0] w=33 a+d=18+5 face=1 >> 4 66: CHAR[@] str=0x1ccecb8[0] blev=0,btyp=L w=11 a+d=18+5 face=1 > > This is the mode line: first sign of trouble. We are handling a > mode-line glyph row as if it were a text row. That cannot lead to > anything good, ever. > >> > (gdb) p first_reusable_row - start_row >> >> $22 = 15 >> >> > (gdb) p first_row_to_display - start_row >> >> $23 = 30 > > So we think that the first glyph row to display is screen line 30 > (zero-based). Is it true that the window was supposed to have only 30 > lines in its body, not 31? I don't remember, but it does sound plausible that the window displaying the "js.el" buffer was ~30 lines tall. I was probably working in a "split-window-below" scenario. I don't know whether it was supposed to be 30 or 31; maybe there some consistency check I could perform in the GDB session to nail down the expected value? Thanks, Thomas