From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Clemente Newsgroups: gmane.emacs.bugs Subject: bug#71289: 30.0.50; cmcheckmagic aborts when tty_write_glyphs writes "Garbage collecting..." in some cases Date: Thu, 6 Jun 2024 15:23:33 +0000 Message-ID: References: <86le3mkn73.fsf@gnu.org> <86ed9ekjrm.fsf@gnu.org> <867cf3junq.fsf@gnu.org> <86bk4egm1z.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20578"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71289@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 06 17:25:58 2024 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 1sFF02-0005BF-IJ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Jun 2024 17:25:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFEzs-0006Qj-Nm; Thu, 06 Jun 2024 11:25:48 -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 1sFEzr-0006QH-CB for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 11:25:47 -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 1sFEzr-0003L0-4C for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 11:25:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sFF05-00025g-OO for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 11:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Clemente Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Jun 2024 15:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71289 X-GNU-PR-Package: emacs Original-Received: via spool by 71289-submit@debbugs.gnu.org id=B71289.17176875297999 (code B ref 71289); Thu, 06 Jun 2024 15:26:01 +0000 Original-Received: (at 71289) by debbugs.gnu.org; 6 Jun 2024 15:25:29 +0000 Original-Received: from localhost ([127.0.0.1]:54222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFEzY-00024w-Ha for submit@debbugs.gnu.org; Thu, 06 Jun 2024 11:25:28 -0400 Original-Received: from mail-oi1-f174.google.com ([209.85.167.174]:59626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFEzT-00024h-Ux for 71289@debbugs.gnu.org; Thu, 06 Jun 2024 11:25:26 -0400 Original-Received: by mail-oi1-f174.google.com with SMTP id 5614622812f47-3c9c41cdc4cso352153b6e.2 for <71289@debbugs.gnu.org>; Thu, 06 Jun 2024 08:25:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717687443; x=1718292243; 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=BDzhH/WnLd/4ES6D7bh6nUIfmlhxOx2EbKl0cVB/beU=; b=cUa7SBoWt8uC1Bp/P0OLiX++Vdy/I86C1JOrVMkQRNt6bNvtoputDv8yB3cWSeK6oG d/FHz42wudWg4P7A2qKPcf6eI5szOXOLhK9/bRaLBMkdzWl+d18bUW9PYN4yndOhVr2S cMubl+9RCsEKnnUVvUlrpkdl4to1Sd5mWl/Nlw5c5oUApEhYLVWabk/iL+mDkwVWdWCr hClEWr9CDb5Sm2YAxEpW7s/F62JZ3KsVgCzBKXdPTGK0ox+ixwZTHLe8I82cTudMjZ8K Sd2pJ92IC/guRw8xTgEp6+l3fy89sVJCq04lVENpRySP6/meqkRtBXeSzutDSBGtEpaz /LvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717687443; x=1718292243; 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=BDzhH/WnLd/4ES6D7bh6nUIfmlhxOx2EbKl0cVB/beU=; b=qAOJTxVxxcCgkmiXjmNRXht8pjqHJCwAEfemcwqCHxYqdgB4CoNTZ/PjpO0jc6/DJH EcUGKZZzYye/f/4KTRpEnBQPFrDiFIvS4IZ1lWcpR7e2B3ERdU5j0nigo1ZvBmnvCXtJ a0us+YvmLzLiOxBDpIjzpdVraNXTaL/4MYa/LvEnyTJjSVt+mbi8v3C8E5M9mOyWISf2 LQWQ9LznBEEZTjaqqZLsIiTkD1Ih1p6uYrokaPEWb+R/EvT0HLcWBIDiz+T6cJ1XktbX 6/76aP0QHWRGNo9wqp+EOF4ibiW4y/eYM7EoObwE15Fl7MHUHnmGB2quvsIT1eDxG+5I Xh8Q== X-Gm-Message-State: AOJu0Yx4eFoKaxHDmwGFcKRkAt78LGIS1QfI/FIs/gs/DH10g2ahabBE WjAvnkGXx57ix+AWGX1dnEIrMtiTWDrKOiusjW6mAFSarsihn3Vcngv4hLVVNd9L97hwTs84yCb ktBsoCuJSNFuS3h4KtEbMgVlG8y8= X-Google-Smtp-Source: AGHT+IFkGMQy/zKgg0RTyvO5O14M9OMguDlS9Ehb1XhGn8T7RFci2c5tdWv0w+pCxqdC0uvh6+uW8BUOEjcpvT0Nzp0= X-Received: by 2002:a54:4486:0:b0:3c5:f365:16cb with SMTP id 5614622812f47-3d2044e37e8mr6364858b6e.37.1717687443137; Thu, 06 Jun 2024 08:24:03 -0700 (PDT) In-Reply-To: <86bk4egm1z.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:286709 Archived-At: > I see a different abort, for which I've now installed a fix. To try > to fix the above one, I need some additional data: > > (gdb) frame 2 > (gdb) p window_matrix->rows->glyphs[0] > (gdb) p frame_matrix->rows->glyphs[0] > (gdb) p frame_matrix->rows->glyphs[2] > (gdb) p window_matrix->nrows > (gdb) p frame_matrix->nrows Right now if I run the C-x 2 and resize scenario, I get this other backtrace with build_frame_matrix_from_leaf_window, it's not the one you requested (the one in check_matrix_pointers), but does it help? This is with your latest patch. (gdb) bt #0 terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:443 #1 0x00005555557352d1 in die (msg=0x55555584e780 "frame_size_change_delayed (XFRAME (w->frame)) || glyph_row_slice_p (window_row, frame_row)", file=0x55555584e231 "dispnew.c", line=2646) at alloc.c:8082 #2 0x000055555558b5d1 in build_frame_matrix_from_leaf_window (frame_matrix=0x55555602bdd0, w=0x5555560596e8) at dispnew.c:2646 #3 0x000055555558b094 in build_frame_matrix_from_window_tree (matrix=0x55555602bdd0, w=0x5555560596e8) at dispnew.c:2535 #4 0x000055555558b07f in build_frame_matrix_from_window_tree (matrix=0x55555602bdd0, w=0x5555561dc308) at dispnew.c:2533 #5 0x000055555558b029 in build_frame_matrix (f=0x5555560594c8) at dispnew.c:2519 #6 0x000055555558cf9f in update_frame (f=0x5555560594c8, force_p=true, inhibit_hairy_id_p=false) at dispnew.c:3335 #7 0x00005555555cf68a in redisplay_internal () at xdisp.c:17464 #8 0x00005555555cffbe in redisplay_preserve_echo_area (from_where=11) at xdisp.c:17747 #9 0x00005555557edf64 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=XIL(0), wait_proc=0x0, just_wait_proc=0) at process.c:5585 (gdb) frame 2 #2 0x000055555558b5d1 in build_frame_matrix_from_leaf_window (frame_matrix=0x55555602bdd0, w=0x5555560596e8) at dispnew.c:2646 2646 eassert (frame_size_change_delayed (XFRAME (w->frame)) (gdb) lisp Undefined command: "lisp". Try "help". (gdb) list 2641 } 2642 2643 #ifdef GLYPH_DEBUG 2644 /* Window row window_y must be a slice of frame row 2645 frame_y. */ 2646 eassert (frame_size_change_delayed (XFRAME (w->frame)) 2647 || glyph_row_slice_p (window_row, frame_row)); 2648 2649 /* If rows are in sync, we don't have to copy glyphs because 2650 frame and window share glyphs. */ (gdb) p window_matrix $1 = (struct glyph_matrix *) 0x55555602c2b0 (gdb) p window_matrix->rows->glyphs[0] $2 = (struct glyph *) 0x7ffff033f4c0 (gdb) xpr xpr xprintbytestr xprintstr xprintsym xprocess (gdb) p window_matrix->rows->glyphs[0] $3 = (struct glyph *) 0x7ffff033f4c0 (gdb) p frame_matrix->rows->glyphs[0] $4 = (struct glyph *) 0x7ffff02cf010 (gdb) p frame_matrix->rows->glyphs[2] $5 = (struct glyph *) 0x7ffff02cf4f0 (gdb) p window_matrix->nrows $6 = 2 (gdb) p frame_matrix->nrows $7 = 6 (gdb) And from another run: (gdb) p window_matrix->rows->glyphs[0] $8 = (struct glyph *) 0x7ffff2ac92e0 (gdb) p window_matrix->rows->glyphs[0] $9 = (struct glyph *) 0x7ffff2ac92e0 (gdb) pgx window_matrix->rows->glyphs[0] CHAR[6] pos=160 blev=0,btyp=L w=1 a+d=0+0 MB (gdb) p window_matrix->rows->glyphs[0] $10 = (struct glyph *) 0x7ffff2ac92e0 (gdb) pgx window_matrix->rows->glyphs[0] CHAR[6] pos=160 blev=0,btyp=L w=1 a+d=0+0 MB (gdb) p frame_matrix->rows->glyphs[0] $11 = (struct glyph *) 0x7ffff2a59010 (gdb) pgx frame_matrix->rows->glyphs[0] CHAR[F] str=0xf2223b2f[0] blev=0,btyp=L w=1 a+d=0+0 face=10 (gdb) p frame_matrix->rows->glyphs[2] $12 = (struct glyph *) 0x7ffff2a59340 (gdb) pgx frame_matrix->rows->glyphs[2] CHAR[ ] str=0xf2385987[-1] blev=0,btyp=B w=1 a+d=0+0 face=10 (gdb) p window_matrix->nrows $13 = 2 (gdb) p frame_matrix->nrows $14 = 8 (gdb)