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#71224: 30.0.50; SIGSEGV in start_display Date: Wed, 12 Jun 2024 13:47:15 +0000 Message-ID: References: <86o78rv499.fsf@gnu.org> <86msoaszgj.fsf@gnu.org> <86jzjdu7iq.fsf@gnu.org> <86cyp5u4o5.fsf@gnu.org> <86mso8shj2.fsf@gnu.org> <86jzjbqzcm.fsf@gnu.org> <86wmn0edt0.fsf@gnu.org> <86bk4892wj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006c4648061ab1a054" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12529"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71224@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 12 15:49:16 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 1sHOLj-00038s-EX for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Jun 2024 15:49:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sHOLZ-0008CO-06; Wed, 12 Jun 2024 09:49: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 1sHOLX-0008CF-Gk for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2024 09:49:03 -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 1sHOLX-00019L-2n for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2024 09:49:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sHOLV-0003s8-LL for bug-gnu-emacs@gnu.org; Wed, 12 Jun 2024 09:49: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: Wed, 12 Jun 2024 13:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71224 X-GNU-PR-Package: emacs Original-Received: via spool by 71224-submit@debbugs.gnu.org id=B71224.171820013114854 (code B ref 71224); Wed, 12 Jun 2024 13:49:01 +0000 Original-Received: (at 71224) by debbugs.gnu.org; 12 Jun 2024 13:48:51 +0000 Original-Received: from localhost ([127.0.0.1]:37936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sHOLK-0003rT-C5 for submit@debbugs.gnu.org; Wed, 12 Jun 2024 09:48:51 -0400 Original-Received: from mail-ua1-f53.google.com ([209.85.222.53]:50401) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sHOLI-0003r5-2G for 71224@debbugs.gnu.org; Wed, 12 Jun 2024 09:48:49 -0400 Original-Received: by mail-ua1-f53.google.com with SMTP id a1e0cc1a2514c-80b86cd886fso1272453241.0 for <71224@debbugs.gnu.org>; Wed, 12 Jun 2024 06:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718200063; x=1718804863; 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=lNjhFQGDt/POl0EpEXjEgCdq4GKm0jv+46zql9tuF9k=; b=gIJTQnCUKn082DCGn26KAasErX5HDqjO1daZMFqrvlX6nAHNPf9H7OsUmf8PT0sXYQ rSj0P1z132eFjk3dA6DIEbiTTobX45W33Iajs4urPfMdKr742d6ljbkEQvOwL4KBkiKC 7gsUUeVH5pejb162dNY0aZKOAC1uBROdpzJdz5LRBRxT1QBbKtW5ta3fNSLY0+7BIwc9 /eLWrZ6MI1flKgtdo/9yIPSpfkDY3UySGHfwRggmgN6qoNFvnwPzw9X0O+UuRJbgpJYc LnmUwQIw8I5fgpNTx+OtSGgVj8gH+ztmIUjVtoNNHasv//cqmuigf58s72nYmFXvXB7C YIqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718200063; x=1718804863; 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=lNjhFQGDt/POl0EpEXjEgCdq4GKm0jv+46zql9tuF9k=; b=FPdNlkdeinz7u6zDfPC7OMh3NLH0SHinOAtUVPgXpsDXHem2mB1r8XPrY8cjewhxY1 X4ovAw4Vsej+dzvIG//4wYySe5wp5DFuN/35uGPe79+D4LNgntIl7EQVdW+EI4LgCo59 4cDPImTL73rP8gxdiCgC0jyFamD/zMboKowMD4z6ndT4aNlfUvcJHlAaayOOoFUZAUZm Jm03WaHaj1jHUcGF094iMmycrtD/fQ+7OTmJDG4AZI5opegLfQNjTVJIF/vR72nLJfAL b1WzVDrdrdGvMfZCE2SiRmz/rxBn8LwWJuNrtQ4JRhnNK0yA1UOAZgchts8/DM8zknxz 3aSA== X-Gm-Message-State: AOJu0Yz7xv0TLXt3zE/7lae93QdXYKXPZ78MuHAvgjiqE0YzHF0dlazb WmwP9DVUCVyDQRMJO1S7wMBIkpBvzk+prywjJs/uzYPBovaaTAJVYFKi6GFn1lRJDudlu/PdCiY vAENjGwRQkL/1WeoCnQBez7VX3bs= X-Google-Smtp-Source: AGHT+IHa8Xlsb1tDOoShhJIvmCie4FgFZ5Ywx6beVZ9lGiqrPw69mllZ0YAPw8F4eDsEqZFjCP+RN7wzGwADVIW4sHQ= X-Received: by 2002:a05:6122:1da8:b0:4eb:5f7f:219f with SMTP id 71dfb90a1353d-4ed07c1d7d5mr2219591e0c.16.1718200063245; Wed, 12 Jun 2024 06:47:43 -0700 (PDT) In-Reply-To: <86bk4892wj.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:287157 Archived-At: --0000000000006c4648061ab1a054 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > > > In addition, I saw the backtrace below, I think that even after your > > patch (=E2=80=9EAvoid crashes in half-baked emacsclient frames=E2=80=9C= ). I'm not 100% > > sure which commit I was in, sorry. Is this situation still possible > > after your patch? I can try to reproduce the crash but I'm seeing much > > more often the previous 2 new bugs I mentioned. > > I don't know if it's the same scenario. If you show the recipe, I > might be able to determine that. Is w->desired_matrix a NULL pointer > again? > I could reproduce it again. I don't know what's involved, but this is what I did when it crashed. Run M-x debug Go to other window, and eval (recurse) there Open new frame Close it, and close the first frame too (close all frames) I got to the point when I couldn't open a new emacsclient frame. The server complained (Lisp nesting exceeds =E2=80=98max-lisp-eval-depth=E2=80=99: 163= 3) and the new emacsclient waited (black window) but couldn't start and finished. After trying to open still another one, it crashed. Yes, w->desired_matrix is null. Quit (gdb) p w $11 =3D (struct window *) 0x5555562f5148 (gdb) p *w $12 =3D { header =3D { size =3D 4611686018612097049 }, frame =3D XIL(0x55555617fd35), next =3D XIL(0), prev =3D XIL(0x5555560806c5), parent =3D XIL(0), normal_lines =3D XIL(0x7ffff2bafdc7), normal_cols =3D XIL(0x7ffff2bafdbf), new_total =3D make_fixnum(0), new_normal =3D make_fixnum(0), new_pixel =3D make_fixnum(0), contents =3D XIL(0x5555561febd5), old_buffer =3D XIL(0), start =3D XIL(0x5555562f5355), pointm =3D XIL(0x5555562f5385), old_pointm =3D XIL(0x5555563a9c2d), temslot =3D XIL(0), vertical_scroll_bar =3D XIL(0), vertical_scroll_bar_type =3D XIL(0x30), horizontal_scroll_bar =3D XIL(0), horizontal_scroll_bar_type =3D XIL(0x30), display_table =3D XIL(0), dedicated =3D XIL(0), combination_limit =3D XIL(0), window_parameters =3D XIL(0), cursor_type =3D XIL(0x30), mode_line_help_echo =3D XIL(0), current_matrix =3D 0x0, desired_matrix =3D 0x0, prev_buffers =3D XIL(0), next_buffers =3D XIL(0), use_time =3D 0, sequence_number =3D 30, change_stamp =3D 0, pixel_left =3D 0, pixel_top =3D 24, left_col =3D 0, top_line =3D 24, pixel_width =3D 80, pixel_height =3D 1, old_pixel_width =3D 0, old_pixel_height =3D 0, old_body_pixel_width =3D 0, old_body_pixel_height =3D 0, total_cols =3D 80, total_lines =3D 1, hscroll =3D 0, min_hscroll =3D 0, hscroll_whole =3D 0, last_modified =3D 0, last_overlay_modified =3D 0, last_point =3D 0, last_mark =3D 0, base_line_number =3D 0, base_line_pos =3D 0, column_number_displayed =3D -1, nrows_scale_factor =3D 1, ncols_scale_factor =3D 1, --Type for more, q to quit, c to continue without paging-- cursor =3D { x =3D 0, y =3D 0, hpos =3D 0, vpos =3D -1 }, phys_cursor =3D { x =3D 0, y =3D 0, hpos =3D 0, vpos =3D 0 }, output_cursor =3D { x =3D 0, y =3D 0, hpos =3D 0, vpos =3D 0 }, last_cursor_vpos =3D 0, left_fringe_width =3D -1, right_fringe_width =3D -1, left_margin_cols =3D 0, right_margin_cols =3D 0, scroll_bar_width =3D -1, scroll_bar_height =3D -1, mode_line_height =3D -1, header_line_height =3D -1, tab_line_height =3D -1, window_end_pos =3D 0, window_end_vpos =3D 0, mini =3D true, horizontal =3D false, update_mode_line =3D true, last_had_star =3D false, start_at_line_beg =3D false, force_start =3D false, optional_new_start =3D false, phys_cursor_on_p =3D false, cursor_off_p =3D false, last_cursor_off_p =3D false, must_be_updated_p =3D false, pseudo_window_p =3D false, fringes_outside_margins =3D false, fringes_persistent =3D false, scroll_bars_persistent =3D false, window_end_valid =3D false, redisplay =3D true, suspend_auto_hscroll =3D false, preserve_vscroll_p =3D false, vscroll =3D 0, window_end_bytepos =3D 0 } (gdb) --0000000000006c4648061ab1a054 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

> In addition, I saw the backtrace below, I think that even after your > patch (=E2=80=9EAvoid crashes in half-baked emacsclient frames=E2=80= =9C). I'm not 100%
> sure which commit I was in, sorry. Is this situation still possible > after your patch? I can try to reproduce the crash but I'm seeing = much
> more often the previous 2 new bugs I mentioned.

I don't know if it's the same scenario.=C2=A0 If you show the recip= e, I
might be able to determine that.=C2=A0 Is w->desired_matrix a NULL point= er
again?

I could reproduce it again. I do= n't know what's involved, but this is what I did when it crashed.
Run M-x debug
Go to other window, and eval (recurse)= there
Open new frame
Close it, and close the first= frame too (close all frames)
I got to the point when I couldn= 9;t open a new emacsclient frame. The server complained (Lisp nesting excee= ds =E2=80=98max-lisp-eval-depth=E2=80=99: 1633) and the new emacsclient wai= ted (black window) but couldn't start and finished.
After try= ing to open still another one, it crashed.


Yes, w->desired_matrix is null.


Quit
(gdb) p w
$11 =3D (struct window *) 0x5555562f5148
(g= db) p *w
$12 =3D {
=C2=A0 header =3D {
=C2=A0 =C2=A0 size =3D 4611= 686018612097049
=C2=A0 },
=C2=A0 frame =3D XIL(0x55555617fd35),
= =C2=A0 next =3D XIL(0),
=C2=A0 prev =3D XIL(0x5555560806c5),
=C2=A0 p= arent =3D XIL(0),
=C2=A0 normal_lines =3D XIL(0x7ffff2bafdc7),
=C2=A0= normal_cols =3D XIL(0x7ffff2bafdbf),
=C2=A0 new_total =3D make_fixnum(0= ),
=C2=A0 new_normal =3D make_fixnum(0),
=C2=A0 new_pixel =3D make_fi= xnum(0),
=C2=A0 contents =3D XIL(0x5555561febd5),
=C2=A0 old_buffer = =3D XIL(0),
=C2=A0 start =3D XIL(0x5555562f5355),
=C2=A0 pointm =3D X= IL(0x5555562f5385),
=C2=A0 old_pointm =3D XIL(0x5555563a9c2d),
=C2=A0= temslot =3D XIL(0),
=C2=A0 vertical_scroll_bar =3D XIL(0),
=C2=A0 ve= rtical_scroll_bar_type =3D XIL(0x30),
=C2=A0 horizontal_scroll_bar =3D X= IL(0),
=C2=A0 horizontal_scroll_bar_type =3D XIL(0x30),
=C2=A0 displa= y_table =3D XIL(0),
=C2=A0 dedicated =3D XIL(0),
=C2=A0 combination_l= imit =3D XIL(0),
=C2=A0 window_parameters =3D XIL(0),
=C2=A0 cursor_t= ype =3D XIL(0x30),
=C2=A0 mode_line_help_echo =3D XIL(0),
=C2=A0 curr= ent_matrix =3D 0x0,
=C2=A0 desired_matrix =3D 0x0,
=C2=A0 prev_buffer= s =3D XIL(0),
=C2=A0 next_buffers =3D XIL(0),
=C2=A0 use_time =3D 0,<= br>=C2=A0 sequence_number =3D 30,
=C2=A0 change_stamp =3D 0,
=C2=A0 p= ixel_left =3D 0,
=C2=A0 pixel_top =3D 24,
=C2=A0 left_col =3D 0,
= =C2=A0 top_line =3D 24,
=C2=A0 pixel_width =3D 80,
=C2=A0 pixel_heigh= t =3D 1,
=C2=A0 old_pixel_width =3D 0,
=C2=A0 old_pixel_height =3D 0,=
=C2=A0 old_body_pixel_width =3D 0,
=C2=A0 old_body_pixel_height =3D = 0,
=C2=A0 total_cols =3D 80,
=C2=A0 total_lines =3D 1,
=C2=A0 hscr= oll =3D 0,
=C2=A0 min_hscroll =3D 0,
=C2=A0 hscroll_whole =3D 0,
= =C2=A0 last_modified =3D 0,
=C2=A0 last_overlay_modified =3D 0,
=C2= =A0 last_point =3D 0,
=C2=A0 last_mark =3D 0,
=C2=A0 base_line_number= =3D 0,
=C2=A0 base_line_pos =3D 0,
=C2=A0 column_number_displayed = =3D -1,
=C2=A0 nrows_scale_factor =3D 1,
=C2=A0 ncols_scale_factor = =3D 1,
--Type <RET> for more, q to quit, c to continue without pag= ing--
=C2=A0 cursor =3D {
=C2=A0 =C2=A0 x =3D 0,
=C2=A0 =C2=A0 y = =3D 0,
=C2=A0 =C2=A0 hpos =3D 0,
=C2=A0 =C2=A0 vpos =3D -1
=C2=A0 = },
=C2=A0 phys_cursor =3D {
=C2=A0 =C2=A0 x =3D 0,
=C2=A0 =C2=A0 y= =3D 0,
=C2=A0 =C2=A0 hpos =3D 0,
=C2=A0 =C2=A0 vpos =3D 0
=C2=A0 = },
=C2=A0 output_cursor =3D {
=C2=A0 =C2=A0 x =3D 0,
=C2=A0 =C2=A0= y =3D 0,
=C2=A0 =C2=A0 hpos =3D 0,
=C2=A0 =C2=A0 vpos =3D 0
=C2= =A0 },
=C2=A0 last_cursor_vpos =3D 0,
=C2=A0 left_fringe_width =3D -1= ,
=C2=A0 right_fringe_width =3D -1,
=C2=A0 left_margin_cols =3D 0,=C2=A0 right_margin_cols =3D 0,
=C2=A0 scroll_bar_width =3D -1,
=C2= =A0 scroll_bar_height =3D -1,
=C2=A0 mode_line_height =3D -1,
=C2=A0 = header_line_height =3D -1,
=C2=A0 tab_line_height =3D -1,
=C2=A0 wind= ow_end_pos =3D 0,
=C2=A0 window_end_vpos =3D 0,
=C2=A0 mini =3D true,=
=C2=A0 horizontal =3D false,
=C2=A0 update_mode_line =3D true,
= =C2=A0 last_had_star =3D false,
=C2=A0 start_at_line_beg =3D false,
= =C2=A0 force_start =3D false,
=C2=A0 optional_new_start =3D false,
= =C2=A0 phys_cursor_on_p =3D false,
=C2=A0 cursor_off_p =3D false,
=C2= =A0 last_cursor_off_p =3D false,
=C2=A0 must_be_updated_p =3D false,
= =C2=A0 pseudo_window_p =3D false,
=C2=A0 fringes_outside_margins =3D fal= se,
=C2=A0 fringes_persistent =3D false,
=C2=A0 scroll_bars_persisten= t =3D false,
=C2=A0 window_end_valid =3D false,
=C2=A0 redisplay =3D = true,
=C2=A0 suspend_auto_hscroll =3D false,
=C2=A0 preserve_vscroll_= p =3D false,
=C2=A0 vscroll =3D 0,
=C2=A0 window_end_bytepos =3D 0}
(gdb)


--0000000000006c4648061ab1a054--