From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Evgeny Zajcev Newsgroups: gmane.emacs.bugs Subject: bug#66589: 30.0.50; core dump in redisplay Date: Tue, 17 Oct 2023 18:11:43 +0300 Message-ID: References: <83jzrlo5au.fsf@gnu.org> <83il75nvhr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007709b60607eaf1d0" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22948"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66589@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 17 17:12:58 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 1qslkf-0005kp-Pk for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Oct 2023 17:12:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qslkN-0004UN-8H; Tue, 17 Oct 2023 11:12:39 -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 1qslkL-0004UF-Pl for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2023 11:12:37 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qslkL-0003nh-IG for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2023 11:12:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qslkk-0004BN-AV for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2023 11:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Evgeny Zajcev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Oct 2023 15:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66589 X-GNU-PR-Package: emacs Original-Received: via spool by 66589-submit@debbugs.gnu.org id=B66589.169755554916031 (code B ref 66589); Tue, 17 Oct 2023 15:13:02 +0000 Original-Received: (at 66589) by debbugs.gnu.org; 17 Oct 2023 15:12:29 +0000 Original-Received: from localhost ([127.0.0.1]:60832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qslkC-0004AV-LI for submit@debbugs.gnu.org; Tue, 17 Oct 2023 11:12:29 -0400 Original-Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]:56394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qslkA-0004AH-IA for 66589@debbugs.gnu.org; Tue, 17 Oct 2023 11:12:27 -0400 Original-Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-1ea45b07c59so1342035fac.0 for <66589@debbugs.gnu.org>; Tue, 17 Oct 2023 08:12:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697555515; x=1698160315; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=CRl85f+8jLh8p1BGE9rUJl18AgAonSzzsR6dAMeRZdw=; b=SVV3oZOIFQ/eqpkIFJYYJnLUKOa9eeS6WD9znGZpw8qw5sJhebz1uM85ik54ra+DLr K9lvXr6bNyTDU9bIonLa8Ycu1YdQB5W7GeXrCqwcLb0LqtTQgvfPoh0QJHI1R3i04IFZ 7r4C/lmNiQk7TVMZagq2672BhF8Drnl0IinkK1FGCyVg/hg647ZUGYbJyZY8Zlm0k+lA Ky1DrM7ExQWEctaYnX/WxR9J7lzlzM+rD0S281yEVmt2HjhdCgV91vTGbcobbWd6ldNf Qg3Q/k6gJ16akoopUnSWvtHmxju3ax92EU2NlV3wnNYlF60m+OBKHtywvt0VJJZI4JES Fj5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697555515; x=1698160315; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CRl85f+8jLh8p1BGE9rUJl18AgAonSzzsR6dAMeRZdw=; b=KAEaNzez3XPjgJZgPNwRFvHakUOYNRGprF3AReGzl0SN7odbHgQ3Vq7DNiU5dEVLeS K+oow27LUzRDrISS/Sq4UlJYRPjAf6uMwk4Q/i1Yrv1JZeSBuOQyOPJuE25yRZbWd9sv WX4ygDN6b6E7cISLYOOgDhNgzyFtVcDWLdQTqneanIo9Drs6BZkpXgCsQxCUEI0EZvvC TBLinXec19fGUzF8CWhhEyVJb91JXmcKyIwjI2YpmNdBrrVzytXCP1FVtvdm+fc7Q6S6 CYnIWkJUoUS2effJ30HRWMEINDiJaspNKpxctk5DUdi2oxt5BPIYi0jpD5lb0944NYN/ iTeA== X-Gm-Message-State: AOJu0YzwPTnK3wuIKc5dhze3VKbSVYXwG61pJXWkjWBBSq/4gX4hVYwb p3li7+mvxrlpVPSgrTF1AOFf3Ce2SZJCZDUaX9Y7h57FVJQ= X-Google-Smtp-Source: AGHT+IFnXQCvaNKrYFnqL9drXclnvw5/L3V+AbJZQpI+ZYeizAuFSqjmsRVH9dIe7ls77OkRn4DP6dxm2GFFjiBySr8= X-Received: by 2002:a05:6870:bb07:b0:1e9:9b34:2297 with SMTP id nw7-20020a056870bb0700b001e99b342297mr2128987oab.24.1697555515114; Tue, 17 Oct 2023 08:11:55 -0700 (PDT) In-Reply-To: <83il75nvhr.fsf@gnu.org> 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:272614 Archived-At: --0000000000007709b60607eaf1d0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D0=B2=D1=82, 17 =D0=BE=D0=BA=D1=82. 2023=E2=80=AF=D0=B3. =D0=B2 18:02, Eli= Zaretskii : > > From: Evgeny Zajcev > > Date: Tue, 17 Oct 2023 16:36:17 +0300 > > Cc: 66589@debbugs.gnu.org > > > > And which Emacs 29 are we talking about -- Emacs 29.1 as released or > > > the current emacs-29 branch? > > > > > > > > I've been using GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ > > Version 3.24.20, cairo version 1.16.0) before moving to Emacs30 > > Emacs 29.0.50 is before Emacs 29.1 was released? > > > (gdb) up 18 > > #18 produce_glyphless_glyph (it=3D0x7ffef46c5660, > > for_no_font=3Dfor_no_font@entry=3Dfalse, acronym=3Dacronym@entry=3D0x0)= at > > xdisp.c:32165 > > 32165 sprintf (buf, "%0*X", it->c < 0x10000 ? 4 : 6, it->c = + > > 0u); > > (gdb) p it->c > > $1 =3D -233054 > > (gdb) > > This is not a valid character, I wonder how it got to this function. > Please do the below and tell what GDB produces as result: > > (gdb) frame 18 > (gdb) p/x it->c > (gdb) p/x it->char_to_display > (gdb) p it->method > (gdb) pgrowx it->glyph_row > (gdb) frame 18 #18 produce_glyphless_glyph (it=3D0x7ffef46c5660, for_no_font=3Dfor_no_font@entry=3Dfalse, acronym=3Dacronym@entry=3D0x0) at xdisp.c:32165 32165 sprintf (buf, "%0*X", it->c < 0x10000 ? 4 : 6, it->c + 0u); (gdb) p/x it->c $2 =3D 0xfffc71a2 (gdb) p/x it->char_to_display $3 =3D 0xa (gdb) p it->method $4 =3D GET_FROM_BUFFER (gdb) pgrowx it->glyph_row Undefined command: "pgrowx". Try "help". (gdb) source src/.gdbinit Warning: /home/lg/dev/emacs-30/../lwlib: No such file or directory. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY =3D :0 TERM =3D screen-256color Breakpoint 1 at 0x55ccdf18ac6a: file emacs.c, line 446. Breakpoint 2 at 0x55ccdf27ad60: file xterm.c, line 26945. (gdb) pgrowx it->glyph_row Cannot access memory at address 0x2c (gdb) > > If GDB says it doesn't know abot "pgrowx", type this: > > (gdb) source /path/to/emacs/src/.gdbinit > > and then repeat the pgrowx command. > > Also, any chance you can describe what were you doing when the abort > happened? In particular, what was in the buffer that was on display > in this window? > I've been debuging process filter error, I've turned on `debug-on-error`, waited for backtrace buffer to pop up and just after it popped up (I've been able to see it contents) Emacs aborted. I've restarted Emacs, did the same, backtrace buffer popped up without abort at this time. Also, I've been experimenting with header line at the moment, so my process filter has been triggering header line redrawing. Current buffer was actually a Telegram chat opened in telega, so it might have some strange unicode characters in it --=20 lg --0000000000007709b60607eaf1d0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
=D0=B2=D1=82, 17 =D0=BE=D0=BA=D1=82. = 2023=E2=80=AF=D0=B3. =D0=B2 18:02, Eli Zaretskii <eliz@gnu.org>:
> From: Evgeny Zajcev <lg.zevlg@gmail.com>
> Date: Tue, 17 Oct 2023 16:36:17 +0300
> Cc: 66589@d= ebbugs.gnu.org
>
> And which Emacs 29 are we talking about -- Emacs 29.1 as released or > > the current emacs-29 branch?
> >
> >
> I've been using GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, G= TK+
> Version 3.24.20, cairo version 1.16.0) before moving to Emacs30

Emacs 29.0.50 is before Emacs 29.1 was released?

> (gdb) up 18
> #18 produce_glyphless_glyph (it=3D0x7ffef46c5660,
> for_no_font=3Dfor_no_font@entry=3Dfalse, acronym=3Dacronym@entry=3D0x0= ) at
> xdisp.c:32165
> 32165=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0sprintf (buf, &qu= ot;%0*X", it->c < 0x10000 ? 4 : 6, it->c +
> 0u);
> (gdb) p it->c
> $1 =3D -233054
> (gdb)

This is not a valid character, I wonder how it got to this function.
Please do the below and tell what GDB produces as result:

=C2=A0 (gdb) frame 18
=C2=A0 (gdb) p/x it->c
=C2=A0 (gdb) p/x it->char_to_display
=C2=A0 (gdb) p it->method
=C2=A0 (gdb) pgrowx it->glyph_row

(g= db) frame 18
#18 produce_glyphless_glyph (it=3D0x7ffef46c5660, for_no_fo= nt=3Dfor_no_font@entry=3Dfalse, acronym=3Dacronym@entry=3D0x0) at xdisp.c:3= 2165
32165 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sprintf (buf, "= ;%0*X", it->c < 0x10000 ? 4 : 6, it->c + 0u);
(gdb) p/x it= ->c
$2 =3D 0xfffc71a2
(gdb) p/x it->char_to_display
$3 =3D 0= xa
(gdb) p it->method
$4 =3D GET_FROM_BUFFER
(gdb) pgrowx it-&g= t;glyph_row
Undefined command: "pgrowx".=C2=A0 Try "help&= quot;.
(gdb) source src/.gdbinit
Warning: /home/lg/dev/emacs-30/../l= wlib: No such file or directory.
SIGINT is used by the debugger.
Are = you sure you want to change it? (y or n) [answered Y; input not from termin= al]
DISPLAY =3D :0
TERM =3D screen-256color
Breakpoint 1 at 0x55cc= df18ac6a: file emacs.c, line 446.
Breakpoint 2 at 0x55ccdf27ad60: file x= term.c, line 26945.
(gdb) pgrowx it->glyph_row
Cannot access memor= y at address 0x2c
(gdb)
=C2=A0

If GDB says it doesn't know abot "pgrowx", type this:

=C2=A0 (gdb) source /path/to/emacs/src/.gdbinit

and then repeat the pgrowx command.

Also, any chance you can describe what were you doing when the abort
happened?=C2=A0 In particular, what was in the buffer that was on display in this window?

I've been debuging process filte= r error, I've turned on `debug-on-error`, waited for backtrace buffer t= o pop up and just after it popped up (I've been able to see it contents= ) Emacs aborted.
I've restarted Emacs, did the same, backtrac= e buffer popped up without abort at this time.=C2=A0 Also, I've been ex= perimenting with header line at the moment,=C2=A0 so my process filter has = been triggering header line redrawing.=C2=A0 Current buffer was actually a = Telegram chat opened in telega, so it might have some strange unicode chara= cters in it

-- <= br>
lg
--0000000000007709b60607eaf1d0--