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#63711: 30.0.50; Crash in xdisp.c when it->string is 0x0 Date: Thu, 25 May 2023 16:35:48 +0300 Message-ID: <835y8gmt3f.fsf@gnu.org> References: <83ilcgn9ud.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10386"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63711@debbugs.gnu.org To: Thomas Fitzsimmons Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 25 15:36:28 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 1q2B8m-0002Tm-A6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 May 2023 15:36:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2B8O-0004mP-MM; Thu, 25 May 2023 09:36:04 -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 1q2B8N-0004m9-8Q for bug-gnu-emacs@gnu.org; Thu, 25 May 2023 09:36:03 -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 1q2B8M-0007Ww-WE for bug-gnu-emacs@gnu.org; Thu, 25 May 2023 09:36:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q2B8M-0000Zh-RR for bug-gnu-emacs@gnu.org; Thu, 25 May 2023 09:36: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, 25 May 2023 13:36: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.16850217302157 (code B ref 63711); Thu, 25 May 2023 13:36:02 +0000 Original-Received: (at 63711) by debbugs.gnu.org; 25 May 2023 13:35:30 +0000 Original-Received: from localhost ([127.0.0.1]:46297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2B7p-0000Yi-Rw for submit@debbugs.gnu.org; Thu, 25 May 2023 09:35:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2B7n-0000YF-H7 for 63711@debbugs.gnu.org; Thu, 25 May 2023 09:35:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2B7i-0007GU-1S; Thu, 25 May 2023 09:35:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ESOWSaXXZbnfBm70lc2N7WQ8IzrbIB1HzJswRCwq7MY=; b=gLWYaoINQ44m jbuVvxBTNpWWYuVM6dPzcAyYazjHiAkHCz5HdQB2dvQ9irFRr2xfJn2rFN3n6za1yHdIP7ZlwSJN7 oL3gPOPUUiwN1JqYB/ggC2WPaYHmLHi8g2AIoXzgySbgbBLvGLAu1NsPEyYTSdyoycBx7Mo133fJ2 bhuKeAL6df+ap6nZSQpA00/IcqRVBIb38IDvYnKjaF5bnA0snN7MYRi+RibMY4wxxirnbeAKkYGx4 jhmVHHk5oUclUz8ZwC4pogF+D63Z/hGkHIgYwonCBQW/SBtA1zICl7bpJ8ugu+OZS2Nb03fiOPQCG k1Qsg2eQgEFeA5ak8ZgslA==; Original-Received: from [87.69.77.57] (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 1q2B7f-0006yR-FF; Thu, 25 May 2023 09:35:21 -0400 In-Reply-To: (message from Thomas Fitzsimmons on Thu, 25 May 2023 09:02:26 -0400) 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:262370 Archived-At: > From: Thomas Fitzsimmons > Cc: 63711@debbugs.gnu.org > Date: Thu, 25 May 2023 09:02:26 -0400 > > > (gdb) p it->sp > > $11 = 0 > > > (gdb) p it->method > > $12 = GET_FROM_BUFFER These last two values are already a sign of trouble, AFAIU. We are trying to find an overlay string where there is none. But if that is the case, how come pos->overlay_string_index is non-negative? that should not happen. > The session is still open if you want me to check other values. Do you know what kind of buffer is the current buffer in this case? The following command will show some of the buffer text near the position that is examined here, to possibly help you figure out the buffer: (gdb) p (*BYTE_POS_ADDR(pos->pos.bytepos))@100 (Here 100 is the number of bytes to display; feel free to use more if 100 is insufficient.) Once you do understand what buffer is this, please try to describe the overlays at buffer position pos->pos.charpos in that buffer, if there are supposed to be any overlays there. That position is supposed to be the first position of a screen line, i.e. the position of the leftmost character on display in that line. Thanks.