From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E5=BC=A0=E4=BA=91=E5=B3=B0?= Newsgroups: gmane.emacs.bugs Subject: bug#60163: 29.0.60; Error in post-command-hook (winner-save-old-configurations): (wrong-type-argument frame-live-p #) Date: Mon, 19 Dec 2022 23:49:13 +0800 Message-ID: References: <83bko1hq5t.fsf@gnu.org> <83v8m7eghy.fsf@gnu.org> <83h6xreeic.fsf@gnu.org> <87h6xreadm.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000082cb2505f030436e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21567"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , joaotavora@gmail.com, 60163@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 19 19:12:15 2022 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 1p7KcZ-0005Vv-1r for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Dec 2022 19:12:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7KcR-0003iU-EM; Mon, 19 Dec 2022 13:12:07 -0500 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 1p7KcO-0003gb-FX for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2022 13:12:06 -0500 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 1p7KcO-0005vT-6w for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2022 13:12:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p7KcO-0005gI-1T for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2022 13:12:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E5=BC=A0=E4=BA=91=E5=B3=B0?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Dec 2022 18:12:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60163 X-GNU-PR-Package: emacs Original-Received: via spool by 60163-submit@debbugs.gnu.org id=B60163.167147350421795 (code B ref 60163); Mon, 19 Dec 2022 18:12:04 +0000 Original-Received: (at 60163) by debbugs.gnu.org; 19 Dec 2022 18:11:44 +0000 Original-Received: from localhost ([127.0.0.1]:39564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7Kc2-0005fN-Tw for submit@debbugs.gnu.org; Mon, 19 Dec 2022 13:11:43 -0500 Original-Received: from mail-lj1-f179.google.com ([209.85.208.179]:39545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7IOR-0003wH-Eh for 60163@debbugs.gnu.org; Mon, 19 Dec 2022 10:49:32 -0500 Original-Received: by mail-lj1-f179.google.com with SMTP id q2so279888ljp.6 for <60163@debbugs.gnu.org>; Mon, 19 Dec 2022 07:49:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gq5tGaFhmeB5EgqWZQLfIwCvjv2AQA+mN8lXarCNeqY=; b=iWmT0iyO1b8I4rH/THqeG7BoVgrdD9J95Dci2z49XtsqQgSO7AHAJtIrqN5v710IJQ fiEj3hWL6v+tSZmMveJm+KzZItWSyMkY3vkni7FgUcjq0Rn2rndVnUhmu0guAz1/mcBB jcecF9AGJJt8lT7f+pf+dNYKpnHza14Q9kmdTV3/YxRf9oU1l0S+igiFtUDav9tUHVvp phBoVqHmyAGLI0cwNFhv9NFMqdzT8ibFGG/Wb7ZUu2tzQ7JblgLQ1HG0Q2MnM4gqUi39 GB/ouI+TISAC1Mbiopc/5VdmSCH8h14VSaNUfCiN8OvjTQs+2SJiCLSDzqm4/+6/Xe9g PQ2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=gq5tGaFhmeB5EgqWZQLfIwCvjv2AQA+mN8lXarCNeqY=; b=DUTzswHrwqRlx0jvvWDF1dKSDY4YlFBS9wU8MwTqXYlfI2wI8Kx98wnkl29xraPsno fgeLSPb5svvun5B6V3nk+h/bEOUk2vY/8J75zVLsSTb30ieYIj1qyM89sWRnfAnfKpmh SI6fzVeMk0ZTaZm3jw2kNzuvZChUNvkTCnrzC4+Z5RNKAe0Jn1Dl7J0ONfBbKFdeHgFg zjbdjo+JrLFHzfKy5rZDFZMr7TRLv4ueM1LeuXHAQf+TH+NLyoME1qsbBar2plcJcYcj hH22n01FN4JQboW2m6BPsV9JjF9u+maG8nManifqXj2tTo+TPlUnJTPm9SVJcjNeXtMY akbw== X-Gm-Message-State: ANoB5pkCW8XN237EDTTKZ7gGtJ854/JnvlK5nDmTOQ9Lg4NtbjWQ73Hl s49nt2guqrkp/3glSCXXUHJCSDbmBouxfkoYoEA= X-Google-Smtp-Source: AA0mqf61t83hJeR5IpYoAnTtcCIHyRkq/Tj1HphOekC4XJbwVnVJGUjF5AQJS8zy5MW5yk//7d5PctvgRbTQRzEaEjU= X-Received: by 2002:a2e:a888:0:b0:277:794:cb84 with SMTP id m8-20020a2ea888000000b002770794cb84mr27225654ljq.7.1671464965293; Mon, 19 Dec 2022 07:49:25 -0800 (PST) In-Reply-To: <87h6xreadm.fsf@yahoo.com> X-Mailman-Approved-At: Mon, 19 Dec 2022 13:11:39 -0500 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:251451 Archived-At: --00000000000082cb2505f030436e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Done. [Detaching after vfork from child process 650535] [Detaching after vfork from child process 650536] [Detaching after vfork from child process 650537] [Detaching after vfork from child process 650538] [Detaching after vfork from child process 650539] [Detaching after vfork from child process 650540] [Detaching after vfork from child process 650541] [Detaching after vfork from child process 650542] [Detaching after vfork from child process 650543] [Detaching after vfork from child process 650544] [Detaching after vfork from child process 650545] [Detaching after vfork from child process 650546] [Detaching after vfork from child process 650547] [Detaching after vfork from child process 650729] [Detaching after vfork from child process 650730] [Detaching after vfork from child process 650731] [Detaching after vfork from child process 650732] Thread 1 "emacs" hit Breakpoint 1, delete_frame (frame=3D0x555558c02e05, force=3D0x0) at frame.c:1932 1932 { (gdb) l 1927 * unconditionally. x_connection_closed and delete_terminal use this. 1928 * Any other value of FORCE implements the semantics described for 1929 * Fdelete_frame. */ 1930 Lisp_Object 1931 delete_frame (Lisp_Object frame, Lisp_Object force) 1932 { 1933 struct frame *f =3D decode_any_frame (frame); 1934 struct frame *sf; 1935 struct kboard *kb; 1936 Lisp_Object frames, frame1; (gdb) c Continuing. [Detaching after vfork from child process 650742] [Detaching after vfork from child process 650964] *=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D> here emacs can't edit, no cursor( cursor in edit area just disappeared)=EF=BC=8C but mouse p= ointer can select text in emacs and hover event also can trigger.* *What should I do next ?* Po Lu =E4=BA=8E2022=E5=B9=B412=E6=9C=8819=E6=97=A5=E5= =91=A8=E4=B8=80 22:28=E5=86=99=E9=81=93=EF=BC=9A > =E5=BC=A0=E4=BA=91=E5=B3=B0 writes: > > > Thanks for your quick reply. > > > > Yes, I did, the author of lsp-bridge thinks that this bug belongs to > emacs itself. > > What's confusing is that lsp-bridge works very well in emacs28 and > emacs29 without pgtk feature. > > And I think that even if it is a bug in a third-party library, it shoul= d > not cause emacs to be unable to edit. > > If you put a breakpoint with GDB on delete_frame set to only print a > backtrace and then continue (would someone else please explain the > procedure, as it's 10:30 PM here), what is printed immediately before > the error? > --00000000000082cb2505f030436e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Done.=C2=A0

[Detaching after vfork = from child process 650535]
[Detaching after vfork from child process 650= 536]
[Detaching after vfork from child process 650537]
[Detaching aft= er vfork from child process 650538]
[Detaching after vfork from child pr= ocess 650539]
[Detaching after vfork from child process 650540]
[Deta= ching after vfork from child process 650541]
[Detaching after vfork from= child process 650542]
[Detaching after vfork from child process 650543]=
[Detaching after vfork from child process 650544]
[Detaching after v= fork from child process 650545]
[Detaching after vfork from child proces= s 650546]
[Detaching after vfork from child process 650547]
[Detachin= g after vfork from child process 650729]
[Detaching after vfork from chi= ld process 650730]
[Detaching after vfork from child process 650731]
= [Detaching after vfork from child process 650732]

Thread 1 "ema= cs" hit Breakpoint 1, delete_frame (frame=3D0x555558c02e05, force=3D0x= 0) at frame.c:1932
1932 {
(gdb) l
1927 * unconditionally. =C2=A0x_= connection_closed and delete_terminal use this.
1928 * Any other value o= f FORCE implements the semantics described for
1929 * Fdelete_frame. =C2= =A0*/
1930 Lisp_Object
1931 delete_frame (Lisp_Object frame, Lisp_Obj= ect force)
1932 {
1933 struct frame *f =3D decode_any_frame (frame);=
1934 struct frame *sf;
1935 struct kboard *kb;
1936 Lisp_Objec= t frames, frame1;
(gdb) c
Continuing.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0
[Detaching after vfork from child process 650742]
[Detaching afte= r vfork from child process 650964]

=C2=A0= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > here emacs can't edit, no cursor( cursor in edit area just=C2=A0di= sappeared)=EF=BC=8C but mouse pointer can select text in emacs and hover ev= ent also can trigger.

What shoul= d I do next ?

Po Lu <luan= gruo@yahoo.com> =E4=BA=8E2022=E5=B9=B412=E6=9C=8819=E6=97=A5=E5=91= =A8=E4=B8=80 22:28=E5=86=99=E9=81=93=EF=BC=9A
=E5=BC=A0=E4=BA=91=E5=B3=B0 <zhangyunfeng0101@gmail.c= om> writes:

> Thanks for your quick reply.=C2=A0
>
> Yes, I did, the author of lsp-bridge thinks that this bug belongs to e= macs itself.
> What's confusing is that lsp-bridge works very well in emacs28 and= emacs29 without pgtk feature.
> And I think that even if it is a bug in a third-party library, it shou= ld not cause emacs to be unable to edit.

If you put a breakpoint with GDB on delete_frame set to only print a
backtrace and then continue (would someone else please explain the
procedure, as it's 10:30 PM here), what is printed immediately before the error?
--00000000000082cb2505f030436e--