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: Tue, 20 Dec 2022 10:25:47 +0800 Message-ID: References: <83bko1hq5t.fsf@gnu.org> <83v8m7eghy.fsf@gnu.org> <83h6xreeic.fsf@gnu.org> <87h6xreadm.fsf@yahoo.com> <878rj2ettx.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000e15d705f039282e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17671"; 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 Tue Dec 20 03:27:20 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 1p7SLc-0004Jm-Ll for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Dec 2022 03:27:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7SLQ-0006yc-DV; Mon, 19 Dec 2022 21:27:04 -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 1p7SLO-0006yP-QO for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2022 21:27:02 -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 1p7SLO-0001y0-Ia for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2022 21:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p7SLO-00020d-6N for bug-gnu-emacs@gnu.org; Mon, 19 Dec 2022 21:27:02 -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: Tue, 20 Dec 2022 02:27:02 +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.16715031707713 (code B ref 60163); Tue, 20 Dec 2022 02:27:02 +0000 Original-Received: (at 60163) by debbugs.gnu.org; 20 Dec 2022 02:26:10 +0000 Original-Received: from localhost ([127.0.0.1]:41777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7SKX-00020L-7y for submit@debbugs.gnu.org; Mon, 19 Dec 2022 21:26:10 -0500 Original-Received: from mail-lf1-f54.google.com ([209.85.167.54]:39725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7SKT-0001zu-CS for 60163@debbugs.gnu.org; Mon, 19 Dec 2022 21:26:07 -0500 Original-Received: by mail-lf1-f54.google.com with SMTP id bf43so16527566lfb.6 for <60163@debbugs.gnu.org>; Mon, 19 Dec 2022 18:26:05 -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=GdRcMx5QHD3IColB2pWXPVT7KM/Mfr71Xugxp7JOFeI=; b=Y+y5+f3GSC/9+YzFba/jRvwaqCq1LrhRX1/t+bQyJ75h6yCcy00vd7Fa/GeUXbjYJd ze436UUxSCPLeb5+i0HRCQPx9EqBS7PVYU4Bd0igGd0WXXaWPX6SvP6bLmUErLAYMc1I HdTqfWMgh0HuFGkF5tHs8/rh443PEhPSVbPsPogKKKg2sc7b/vjsSEBopgMl5D5KR/QV 8MpRnkDF7lldo7b1C4QALz36ZO4S5dn7wfCJaYlk9+j8srJzjYTQpUpfpquqmmnn1b5v zqUAImhiPJKMXLsDgGs2Qr6z9B7j39vghrtBGPc88La/D2ofDAuNvgaKQ/lDhk7Y1yNt n6+Q== 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=GdRcMx5QHD3IColB2pWXPVT7KM/Mfr71Xugxp7JOFeI=; b=yaqlQATvuAXW2F5sa6TUEWgmanyhDf96asFAZsPzYaBrfHiEtfj+UKSiRvokDphEou qXirytZnXD2nqOxQFiBNN9zE/ekEoHA2/xgCG/tn4WHJZk1tTEmwv9EOS93xu5Z0lvvv MSPU4TRQPovy/or+tvMBEUAFzDICc5tKusaTkVuez247yTnpo/QDgUU7S1r8dTS16n+M NzDJOz8ddR6G+fjO29GnlkBox93+IfhTcXLUQWUnTzcLetIQLRQv6ferVcB1UHnfZCdL VfntM31Qdi9uT6O1gV0FZbhwOdl+JjmEma6on9D9WpgRyQOxG1wZAItdoyM+Zw0uWQZC d39w== X-Gm-Message-State: ANoB5pmLxzskvltbRH544MCUbarsbthW9MswuD9gjZNqntff1xACMWIS +mqQ+oEu7xO1mjbjwIa6OxYI3fW91iigGPoQcWo= X-Google-Smtp-Source: AA0mqf72DXwp/v4DLg+KwVw/lDRnvvuOYGxREm0ng5X5YwVJDTLDkvzGkh48saC05d1GUcTMRw1rkQ4vU9t+EMQlbuU= X-Received: by 2002:ac2:43cd:0:b0:4b5:6d07:28a6 with SMTP id u13-20020ac243cd000000b004b56d0728a6mr10365732lfl.89.1671503159365; Mon, 19 Dec 2022 18:25:59 -0800 (PST) In-Reply-To: <878rj2ettx.fsf@yahoo.com> 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:251488 Archived-At: --0000000000000e15d705f039282e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Please check now. Thread 1 "emacs" hit Breakpoint 1, delete_frame (frame=3D0x55555c1e73f5, force=3D0x0) at frame.c:1932 1932 { (gdb) bt #0 delete_frame (frame=3D0x55555c1e73f5, force=3D0x0) at frame.c:1932 #1 0x0000555555765ba3 in eval_sub (form=3D) at eval.c:2501 #2 0x0000555555765dcd in Fprogn (body=3D0x55555b086633) at eval.c:436 #3 0x0000555555765a68 in eval_sub (form=3D) at eval.c:2449 #4 0x0000555555765a68 in eval_sub (form=3D) at eval.c:2449 #5 0x0000555555766c6d in Fprogn (body=3D0x55555b086c43) at eval.c:436 #6 funcall_lambda (fun=3D0x55555b0860b3, nargs=3D0, arg_vector=3D0x7ffffff= fce00) at eval.c:3233 #7 0x000055555576721f in apply_lambda (fun=3D, args=3D, count=3D...) at eval.c:3103 #8 0x000055555576538b in eval_sub (form=3D) at eval.c:2588 #9 0x0000555555766c6d in Fprogn (body=3D0x55555b087343) at eval.c:436 #10 funcall_lambda (fun=3D0x55555b087023, nargs=3D0, arg_vector=3D0x7fffe7d= 00048) at eval.c:3233 #11 0x0000555555761c13 in Ffuncall (nargs=3D1, args=3D0x7fffe7d00040) at eval.c:2995 #12 0x0000555555762028 in Fapply (nargs=3D2, args=3D0x7fffe7d00040) at eval.c:2619 #13 0x00005555557aac77 in exec_byte_code (fun=3D, args_template=3D, nargs=3D, args=3D) at bytecode.c:809 #14 0x0000555555761c13 in Ffuncall (nargs=3Dnargs@entry=3D1, args=3Dargs@entry=3D0x7fffffffd2b8) at eval.c:2995 #15 0x000055555575d8d3 in Ffuncall_interactively (nargs=3D1, args=3D0x7fffffffd2b8) at callint.c:248 #16 0x0000555555761c13 in Ffuncall (nargs=3D2, args=3D0x7fffffffd2b0) at eval.c:2995 #17 0x0000555555762028 in Fapply (nargs=3Dnargs@entry=3D3, args=3Dargs@entry=3D0x7fffffffd2b0) at eval.c:2619 #18 0x000055555575f287 in Fcall_interactively (function=3D0x39269e0, record_flag=3D0x0, keys=3D0x55555dad1525) at callint.c:340 #19 0x00007fffe909f795 in F636f6d6d616e642d65786563757465_command_execute_0 () at /home/ zhangyunfeng@pudu.com/github.com/emacs/src/../native-lisp/29.0.60-2dd24eb2/= preloaded/simple-fab5b0cf-b9ebea66.eln #20 0x0000555555761c13 in Ffuncall (nargs=3Dnargs@entry=3D2, args=3Dargs@entry=3D0x7fffffffd460) at eval.c:2995 #21 0x00005555556e4f10 in call1 (arg1=3D, fn=3D0x49b0) at /h= ome/ zhangyunfeng@pudu.com/github.com/emacs/src/lisp.h:3247 #22 command_loop_1 () at keyboard.c:1495 #23 0x0000555555760217 in internal_condition_case (bfun=3Dbfun@entry=3D0x5555556e4af0 , handlers=3Dhandlers@entry=3D0x90, hfun=3Dhfun@entry=3D0x5= 555556d7c30 ) at eval.c:1474 #24 0x00005555556d02de in command_loop_2 (handlers=3Dhandlers@entry=3D0x90)= at keyboard.c:1125 #25 0x0000555555760159 in internal_catch (tag=3Dtag@entry=3D0xfba0, func=3Dfunc@entry=3D0x5555556d02b0 , arg=3Darg@entry=3D0x90= ) at eval.c:1197 #26 0x00005555556d0279 in command_loop () at keyboard.c:1103 #27 0x00005555556d7788 in recursive_edit_1 () at keyboard.c:712 #28 0x00005555556d7b30 in Frecursive_edit () at keyboard.c:795 #29 0x00005555555e8df5 in main (argc=3D, argv=3D) at emacs.c:2529 Po Lu =E4=BA=8E2022=E5=B9=B412=E6=9C=8820=E6=97=A5=E5= =91=A8=E4=BA=8C 09:40=E5=86=99=E9=81=93=EF=BC=9A > =E5=BC=A0=E4=BA=91=E5=B3=B0 writes: > > > 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 pointer can select text in emacs and hover event also can trigger= . > > > > What should I do next ? > > Please type "bt" instead of "c", to display what led to delete_frame > being called. Thanks. > --0000000000000e15d705f039282e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Please check now.=C2=A0
Thread 1 "emacs"= hit Breakpoint 1, delete_frame (frame=3D0x55555c1e73f5, force=3D0x0) at fr= ame.c:1932
1932 {
(gdb) bt
#0 =C2=A0delete_frame (frame=3D0x55555c= 1e73f5, force=3D0x0) at frame.c:1932
#1 =C2=A00x0000555555765ba3 in eval= _sub (form=3D<optimized out>) at eval.c:2501
#2 =C2=A00x0000555555= 765dcd in Fprogn (body=3D0x55555b086633) at eval.c:436
#3 =C2=A00x000055= 5555765a68 in eval_sub (form=3D<optimized out>) at eval.c:2449
#4 = =C2=A00x0000555555765a68 in eval_sub (form=3D<optimized out>) at eval= .c:2449
#5 =C2=A00x0000555555766c6d in Fprogn (body=3D0x55555b086c43) at= eval.c:436
#6 =C2=A0funcall_lambda (fun=3D0x55555b0860b3, nargs=3D0, ar= g_vector=3D0x7fffffffce00) at eval.c:3233
#7 =C2=A00x000055555576721f in= apply_lambda (fun=3D<optimized out>, args=3D<optimized out>, c= ount=3D...) at eval.c:3103
#8 =C2=A00x000055555576538b in eval_sub (form= =3D<optimized out>) at eval.c:2588
#9 =C2=A00x0000555555766c6d in = Fprogn (body=3D0x55555b087343) at eval.c:436
#10 funcall_lambda (fun=3D0= x55555b087023, nargs=3D0, arg_vector=3D0x7fffe7d00048) at eval.c:3233
#1= 1 0x0000555555761c13 in Ffuncall (nargs=3D1, args=3D0x7fffe7d00040) at eval= .c:2995
#12 0x0000555555762028 in Fapply (nargs=3D2, args=3D0x7fffe7d000= 40) at eval.c:2619
#13 0x00005555557aac77 in exec_byte_code (fun=3D<o= ptimized out>, args_template=3D<optimized out>, nargs=3D<optimi= zed out>, args=3D<optimized out>) at bytecode.c:809
#14 0x00005= 55555761c13 in Ffuncall (nargs=3Dnargs@entry=3D1, args=3Dargs@entry=3D0x7ff= fffffd2b8) at eval.c:2995
#15 0x000055555575d8d3 in Ffuncall_interactive= ly (nargs=3D1, args=3D0x7fffffffd2b8) at callint.c:248
#16 0x00005555557= 61c13 in Ffuncall (nargs=3D2, args=3D0x7fffffffd2b0) at eval.c:2995
#17 = 0x0000555555762028 in Fapply (nargs=3Dnargs@entry=3D3, args=3Dargs@entry=3D= 0x7fffffffd2b0) at eval.c:2619
#18 0x000055555575f287 in Fcall_interacti= vely (function=3D0x39269e0, record_flag=3D0x0, keys=3D0x55555dad1525) at ca= llint.c:340
#19 0x00007fffe909f795 in F636f6d6d616e642d65786563757465_co= mmand_execute_0 ()
=C2=A0 =C2=A0 at /home/zhangyunfeng@pudu.com/github.com/emacs/src/../n= ative-lisp/29.0.60-2dd24eb2/preloaded/simple-fab5b0cf-b9ebea66.eln
#= 20 0x0000555555761c13 in Ffuncall (nargs=3Dnargs@entry=3D2, args=3Dargs@ent= ry=3D0x7fffffffd460) at eval.c:2995
#21 0x00005555556e4f10 in call1 (arg= 1=3D<optimized out>, fn=3D0x49b0) at /home/zhangyunfeng@pudu.com/githu= b.com/emacs/src/lisp.h:3247
#22 command_loop_1 () at keyboard.c:1495=
#23 0x0000555555760217 in internal_condition_case (bfun=3Dbfun@entry=3D= 0x5555556e4af0 <command_loop_1>, handlers=3Dhandlers@entry=3D0x90, hf= un=3Dhfun@entry=3D0x5555556d7c30 <cmd_error>) at eval.c:1474
#24 0= x00005555556d02de in command_loop_2 (handlers=3Dhandlers@entry=3D0x90) at k= eyboard.c:1125
#25 0x0000555555760159 in internal_catch (tag=3Dtag@entry= =3D0xfba0, func=3Dfunc@entry=3D0x5555556d02b0 <command_loop_2>, arg= =3Darg@entry=3D0x90) at eval.c:1197
#26 0x00005555556d0279 in command_lo= op () at keyboard.c:1103
#27 0x00005555556d7788 in recursive_edit_1 () a= t keyboard.c:712
#28 0x00005555556d7b30 in Frecursive_edit () at keyboar= d.c:795
#29 0x00005555555e8df5 in main (argc=3D<optimized out>, ar= gv=3D<optimized out>) at emacs.c:2529

Po Lu <luangruo@yahoo.com> =E4=BA=8E2022=E5=B9= =B412=E6=9C=8820=E6=97=A5=E5=91=A8=E4=BA=8C 09:40=E5=86=99=E9=81=93=EF=BC= =9A
=E5=BC=A0=E4= =BA=91=E5=B3=B0 <zhangyunfeng0101@gmail.com> writes:

> 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=3D0x5= 55558c02e05, force=3D0x0) at frame.c:1932
> 1932 {
> (gdb) l
> 1927 * unconditionally.=C2=A0 x_connection_closed and delete_terminal = use this.
> 1928 * Any other value of FORCE implements the semantics described for=
> 1929 * Fdelete_frame.=C2=A0 */
> 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.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
> [Detaching after vfork from child process 650742]
> [Detaching after 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 disappeared)=EF=BC=8C but
> mouse pointer can select text in emacs and hover event also can trigge= r.
>
> What should I do next ?

Please type "bt" instead of "c", to display what led to= delete_frame
being called.=C2=A0 Thanks.
--0000000000000e15d705f039282e--