From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrew Tropin Newsgroups: gmane.emacs.bugs Subject: bug#62291: 30.0.50; PGTK copy + paste to other app problem Date: Thu, 23 Mar 2023 22:22:42 +0400 Message-ID: <87ttybtjil.fsf@trop.in> References: <877cvbiuf9.fsf@trop.in> <87edpj1y4r.fsf@yahoo.com> <871qljisd9.fsf@trop.in> <875yav1twf.fsf@yahoo.com> <878rfqxyff.fsf@trop.in> <87o7omz99g.fsf@yahoo.com> <877cvaw09c.fsf@trop.in> <87h6udzkjb.fsf@yahoo.com> <874jqdwg62.fsf@trop.in> <87cz51z568.fsf@yahoo.com> <87v8itutwi.fsf@trop.in> <878rfpyt1j.fsf@yahoo.com> <878rfpujzu.fsf@trop.in> <87zg84xpn6.fsf@yahoo.com> <87zg84t58q.fsf@trop.in> <83fs9w544t.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7049"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 62291@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 23 19:24:24 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 1pfPbr-0001bq-Qy for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Mar 2023 19:24:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfPbX-0004cg-Tc; Thu, 23 Mar 2023 14:24:03 -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 1pfPbW-0004cT-Jp for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2023 14:24:02 -0400 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 1pfPbW-00049F-BB for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2023 14:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pfPbV-0000wd-Ub for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2023 14:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Mar 2023 18:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62291 X-GNU-PR-Package: emacs Original-Received: via spool by 62291-submit@debbugs.gnu.org id=B62291.16795957853562 (code B ref 62291); Thu, 23 Mar 2023 18:24:01 +0000 Original-Received: (at 62291) by debbugs.gnu.org; 23 Mar 2023 18:23:05 +0000 Original-Received: from localhost ([127.0.0.1]:39310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfPaa-0000vN-Cb for submit@debbugs.gnu.org; Thu, 23 Mar 2023 14:23:04 -0400 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:58511) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfPaX-0000ua-Um for 62291@debbugs.gnu.org; Thu, 23 Mar 2023 14:23:02 -0400 Original-Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id BEB441BF205; Thu, 23 Mar 2023 18:22:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1679595776; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7goAjcXKu9tkOmbdAGnKqnjQLBEJkw3uL7jwDSo/wkY=; b=U1DtoDPC57Uo4w3M+30S9qWDjHyBVWPsLJSzHQ1jbvzEXaz8rImtQsVtK0UBuzFDxYlnQ1 HFqddvhmemJNgu0Oa/zqV1hX7iiSEC1WUYQ4xk/IGKyIGna2mbAPkBJOsSW7oFZzUrN01o KeSChEPPfWbpwrvNPg7xg0hp19uzu/RqtWjWXFCsmClgQlQUw8N4uq7XdsThUR1bSe04+L qN4CPEOsB64lNUaASq1GsvkDExv3mq4hcbqGk0uzwuawdBXE++h6ksTqps1olL6TnTx5ec NiQHOpsFPxDQxjuSoax2PS+fS6nzFOIUbfnhIxiavvFjZIDglZF+kiEtM+aHsw== In-Reply-To: <83fs9w544t.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:258472 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2023-03-23 09:16, Eli Zaretskii wrote: >> Cc: 62291@debbugs.gnu.org >> From: Andrew Tropin >> Date: Thu, 23 Mar 2023 09:18:45 +0400 >>=20 >> (gdb) frame 12 >> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=3Dwidget@ent= ry=3D0xf04510, even7808 in gtkwidget.c >> (gdb) p widget >> $2 =3D (GtkWidget *) 0xf04510 >> (gdb) p Vframe_list >> 'Vframe_list' has unknown type; cast it to its declared type >> (gdb) xcar >> Undefined command: "xcar". Try "help". >> (gdb) xframe >> Undefined command: "xframe". Try "help". > > To solve the last two problems, do this: > > (gdb) source /path/to/emacs/src/.gdbinit > > These are commands we define in .gdbinit which comes with Emacs. Thank you very much. I updated my debugging setup and will write down a note for future readers of this thread: Downloaded latest emacs source code. guix shell -D emacs-next-pgtk --with-debug-info=3Dglib \=20 =2D-with-debug-info=3Dgtk+ --no-grafts -- \ ./configure --enable-checking=3D'yes,glyphs' \ =2D-enable-check-lisp-object-type --with-pgtk \ CFLAGS=3D'-O0 -g3' guix shell -D emacs-next-pgtk --with-debug-info=3Dglib \=20 =2D-with-debug-info=3Dgtk+ --no-grafts -- make cd src gdb emacs =2D-8<---------------cut here---------------start------------->8--- GNU gdb (GDB) 12.1 Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from emacs... SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from te= rminal] DISPLAY =3D :0 WAYLAND_DISPLAY =3D wayland-1 TERM =3D xterm-256color Breakpoint 1 at 0x57d3f4: file emacs.c, line 427. (gdb) r -Q Starting program: /home/bob/work/gnu/emacs/src/emacs -Q warning: Unable to find libthread_db matching inferior's thread library, th= read debu [New LWP 9978] [New LWP 9979] [New LWP 9980] Gdk-Message: 22:14:56.365: Unable to load sb_v_double_arrow from the cursor= theme Gdk-Message: 22:14:56.365: Unable to load sb_h_double_arrow from the cursor= theme Gdk-Message: 22:14:56.403: Unable to load hand2 from the cursor theme Gdk-Message: 22:14:56.403: Unable to load sb_h_double_arrow from the cursor= theme Gdk-Message: 22:14:56.403: Unable to load sb_v_double_arrow from the cursor= theme [New LWP 9981] [LWP 9981 exited] [New LWP 9982] [New LWP 9983] [LWP 9982 exited] [LWP 9983 exited] [New LWP 9984] [New LWP 9985] [LWP 9984 exited] [LWP 9985 exited] [LWP 9979 exited] Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. 0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/96sr= hmpmxa20w msck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 (gdb) bt #0 0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/= 96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 #1 0x00007ffff71bb21b in g_signal_emit_valist () from /gnu/store/96srhmpmx= a20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 #2 0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20wmsc= k95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 #3 0x00007ffff71a7884 in g_object_dispatch_properties_changed () from /gnu= /store/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 #4 0x00007ffff71a9834 in g_object_notify_by_pspec () from /gnu/store/96srh= mpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 #5 0x00007ffff79afbcd in gtk_window_focus_in_event (event=3D, widget=3D0x1014500) at gtkwindow.c:8503 #6 gtk_window_focus_in_event (widget=3Dwidget@entry=3D0x1014500, event=3D<= optimized out>) at gtkwindow.c:8491 #7 0x00007ffff79de357 in _gtk_marshal_BOOLEAN__BOXED (closure=3D0x10aedd0,= return_value=3D0x7fffffffb570, n_param_values=3D, param_val= ues=3D0x7fffffffb620,=20 invocation_hint=3D, marshal_data=3D) at g= tkmarshalers.c:83 #8 0x00007ffff71a34af in g_closure_invoke () from /gnu/store/96srhmpmxa20w= msck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 #9 0x00007ffff71b49e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/= 96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 #10 0x00007ffff71bad65 in g_signal_emit_valist () from /gnu/store/96srhmpmx= a20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 #11 0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20wmsc= k95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=3Dwidget@entry= =3D0x1014500, event=3Devent@entry=3D0x7fffe4007b50) at gtkwidget.c:7808 #13 0x00007ffff798d472 in gtk_widget_event_internal (event=3D0x7fffe4007b50= , widget=3D0x1014500) at gtkwidget.c:7379 #14 0x00007ffff784b37a in gtk_main_do_event (event=3D0x7fffe4007b50) at gtk= main.c:1861 #15 gtk_main_do_event (event=3D) at gtkmain.c:1691 #16 0x00007ffff7efc3c5 in _gdk_event_emit (event=3Devent@entry=3D0x7fffe400= 7b50) at gdkevents.c:73 #17 0x00007ffff7f59352 in gdk_event_source_dispatch (base=3D= , callback=3D, data=3D) at gdkeventsource.c:1= 24 #18 0x00007ffff70af4cb in g_main_context_dispatch () from /gnu/store/96srhm= pmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libglib-2.0.so.0 #19 0x00000000007771e4 in pgtk_read_socket (terminal=3D0x1079530, hold_quit= =3D0x7fffffffba10) at pgtkterm.c:3840 #20 0x000000000059703c in gobble_input () at keyboard.c:7424 #21 0x0000000000597580 in handle_async_input () at keyboard.c:7655 #22 0x000000000059759f in process_pending_signals () at keyboard.c:7669 #23 0x00000000005975df in unblock_input_to (level=3D0) at keyboard.c:7684 #24 0x0000000000597603 in unblock_input () at keyboard.c:7703 #25 0x000000000058fe19 in timer_check () at keyboard.c:4749 #26 0x000000000058ce8a in readable_events (flags=3D1) at keyboard.c:3531 #27 0x0000000000596f04 in get_input_pending (flags=3D1) at keyboard.c:7374 #28 0x00000000005a0201 in detect_input_pending_run_timers (do_display=3Dtru= e) at keyboard.c:10904 #29 0x00000000006de504 in wait_reading_process_output (time_limit=3D30, nse= cs=3D0, read_kbd=3D-1, do_display=3Dtrue, wait_for_cell=3DXIL(0), wait_proc= =3D0x0, just_wait_proc=3D0) at process.c:5779 #30 0x0000000000431ef3 in sit_for (timeout=3Dmake_fixnum(30), reading=3Dtru= e, display_option=3D1) at dispnew.c:6256 #31 0x000000000058a731 in read_char (commandflag=3D1, map=3DXIL(0x7ffff41b4= 703), prev_event=3DXIL(0), used_mouse_menu=3D0x7fffffffc42f, end_time=3D0x0= ) at keyboard.c:2879 #32 0x000000000059e2ee in read_key_sequence (keybuf=3D0x7fffffffc5c0, promp= t=3DXIL(0), dont_downcase_last=3Dfalse, can_return_switch_frame=3Dtrue, fix= _current_buffer=3Dtrue,=20 =2D-Type for more, q to quit, c to continue without paging--c prevent_redisplay=3Dfalse) at keyboard.c:10081 #33 0x0000000000585bc7 in command_loop_1 () at keyboard.c:1382 #34 0x0000000000667131 in internal_condition_case (bfun=3D0x5857bc , handlers=3DXIL(0x90), hfun=3D0x584c7f ) at eval.c:1474 #35 0x00000000005853cc in command_loop_2 (handlers=3DXIL(0x90)) at keyboard= .c:1131 #36 0x00000000006663ad in internal_catch (tag=3DXIL(0xff60), func=3D0x5853a= 9 , arg=3DXIL(0x90)) at eval.c:1197 #37 0x0000000000585365 in command_loop () at keyboard.c:1109 #38 0x000000000058476d in recursive_edit_1 () at keyboard.c:718 #39 0x0000000000584974 in Frecursive_edit () at keyboard.c:801 #40 0x000000000058034c in main (argc=3D2, argv=3D0x7fffffffcb08) at emacs.c= :2530 (gdb) frame 12 #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=3Dwidget@entry= =3D0x1014500, event=3Devent@entry=3D0x7fffe4007b50) at gtkwidget.c:7808 7808 gtkwidget.c: No such file or directory. (gdb) frame 12 #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=3Dwidget@entry= =3D0x1014500, event=3Devent@entry=3D0x7fffe4007b50) at gtkwidget.c:7808 7808 in gtkwidget.c (gdb) p widget $1 =3D (GtkWidget *) 0x1014500 (gdb) p Vframe_list=20 $2 =3D XIL(0x7ffff41d3213) (gdb) xcar $3 =3D XIL(0x107975d) (gdb) xframe $4 =3D (struct frame *) 0x1079758 "*scratch* - GNU Emacs at ixy" =2D-8<---------------cut here---------------end--------------->8--- =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmQcmPIACgkQIgjSCVjB 3rDx1A/9G4pyiKpphhm71WyDuEpoGNlf8fIFEGec99TPAqZ0BOg0ZOsRq2OVSlo5 5izq619yVIfvZf6Thv3AEqpNx+Cp/QTl53qogYpb2Qo1Yvnx5Aw9l/h8w3JnuJHy ykMD4GUZskKXzFWdImgrVWuI3pU9ONXAaJRHX01mNyDvIEWs0DlpS+tk2kMAPgSv pPH5YPLPNVA1xDxYIdkWiWtLvUjjE1Y6hCsBV9taS5H4BXcHnUVyZhybyyGsSKt+ qlvLVIdRyHC3vU44ywKM18w3ibzWLzEwzmTF3A7GBsiTQu/fFskJvdPDldZxusL9 d/QG8ETyRhmOfpDdZvKc9g7CubY+dFe9tY1ovlJwbFgoLxOHlXzY1zSa1ckJMuhV p7cWGHmoQOxOl/6EikL3UaVA3K2pwpNxs2EKUgUpOuQV9uplKCw16YQZcR0Jjchb YOfnL4hVe/3pZes0k2y2h4t5y3MyAL+VSHMLkGBaqZpwsdYzYQLdz+UYg7hWC4xD zf4/0XJS5jT5N9Xw3G88hoKvHurwW1mFcKFEsRO3uAXyxNzB0mWJFQ82ivNGfxst GyK8CpDNXvKbilPfR2pFTUC95KP5c2XCw5WiwMMEUg8WwEd1sRGuU0cTN12qNbbQ 1mL6YUFoWeKmHTlthjctBWXJ75DsqPiBr3aAbtbTZTQUpw7DyiI= =R7vd -----END PGP SIGNATURE----- --=-=-=--