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: Fri, 24 Mar 2023 08:31:24 +0400 Message-ID: <87r0teu5wj.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> <87ttybtjil.fsf@trop.in> <87jzz7x8su.fsf@yahoo.com> 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="17881"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 62291@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 24 16:53:18 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 1pfjj8-0004AS-Te for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Mar 2023 16:53:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfZga-0003Ab-Uc; Fri, 24 Mar 2023 01:09:56 -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 1pfZgV-00039r-Mb for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2023 01:09:54 -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 1pfZgV-0004iQ-Eb for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2023 01:09:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pfZ7p-0008VK-U8 for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2023 00:34: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: Fri, 24 Mar 2023 04:34: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.167963240932620 (code B ref 62291); Fri, 24 Mar 2023 04:34:01 +0000 Original-Received: (at 62291) by debbugs.gnu.org; 24 Mar 2023 04:33:29 +0000 Original-Received: from localhost ([127.0.0.1]:39634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfZ7I-0008U3-QA for submit@debbugs.gnu.org; Fri, 24 Mar 2023 00:33:29 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:42603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfZ5j-0008RR-4W for 62291@debbugs.gnu.org; Fri, 24 Mar 2023 00:33:27 -0400 Original-Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id 39EDC240002; Fri, 24 Mar 2023 04:31:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1679632302; 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=PuXavzVIF2gi6dGAuZIUESaQTmTb3yF+KzbvLkCDpco=; b=dnApRBt3DfkVaHXeZW3m3VFoMmkogZcAVVLe2p82sIFGGNM4zcBuEZ8zwI5qyREWHJbRNd lEnJCy/bshechQHHi1LR1kbkVXYn/waTS36xx/OwPnjYqQh5OT7m6AoFh1ak7YfHTminoz WFXfQdB9nqbcPNRemBY24/eliNjPCRdXbgIsDINjV4LX5BQ1OYgOeIOPu+4+VSsIPwULPD NgocHZ9pzIJFAfvEcHBFAP0l5n7gBoFAylOfp+C05RsV46ZsTTtaKCjKDK42NsGk+95V9X 5PFk7EELFBcpFpJ/HRz25PZkgP4w9k2QXkuHYThm9iklQpOGQQqSODVkUb+5VQ== In-Reply-To: <87jzz7x8su.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:258507 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2023-03-24 09:00, Po Lu wrote: > Andrew Tropin writes: > >> 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@e= ntry=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 >> --with-debug-info=3Dgtk+ --no-grafts -- \ >> ./configure --enable-checking=3D'yes,glyphs' \ >> --enable-check-lisp-object-type --with-pgtk \ >> CFLAGS=3D'-O0 -g3' >> >> guix shell -D emacs-next-pgtk --with-debug-info=3Dglib \=20 >> --with-debug-info=3Dgtk+ --no-grafts -- make >> >> cd src >> gdb emacs >> >> 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= terminal] >> 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,= thread 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 cur= sor theme >> Gdk-Message: 22:14:56.365: Unable to load sb_h_double_arrow from the cur= sor 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 cur= sor theme >> Gdk-Message: 22:14:56.403: Unable to load sb_v_double_arrow from the cur= sor 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/9= 6srhmpmxa20w >> msck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 >> (gdb) bt >> #0 0x00007ffff71b5424 in signal_emit_unlocked_R.isra.0 () from /gnu/sto= re/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 >> #1 0x00007ffff71bb21b in g_signal_emit_valist () from /gnu/store/96srhm= pmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 >> #2 0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20w= msck95g3iq4hb3lz4a0-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.s= o.0 >> #4 0x00007ffff71a9834 in g_object_notify_by_pspec () from /gnu/store/96= srhmpmxa20wmsck95g3iq4hb3lz4a0-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) at gtkwindow.c:8491 >> #7 0x00007ffff79de357 in _gtk_marshal_BOOLEAN__BOXED (closure=3D0x10aed= d0, return_value=3D0x7fffffffb570, n_param_values=3D, param_= values=3D0x7fffffffb620,=20 >> invocation_hint=3D, marshal_data=3D) a= t gtkmarshalers.c:83 >> #8 0x00007ffff71a34af in g_closure_invoke () from /gnu/store/96srhmpmxa= 20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 >> #9 0x00007ffff71b49e9 in signal_emit_unlocked_R.isra.0 () from /gnu/sto= re/96srhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 >> #10 0x00007ffff71bad65 in g_signal_emit_valist () from /gnu/store/96srhm= pmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 >> #11 0x00007ffff71bb722 in g_signal_emit () from /gnu/store/96srhmpmxa20w= msck95g3iq4hb3lz4a0-glib-2.70.2/lib/libgobject-2.0.so.0 >> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=3Dwidget@ent= ry=3D0x1014500, event=3Devent@entry=3D0x7fffe4007b50) at gtkwidget.c:7808 >> #13 0x00007ffff798d472 in gtk_widget_event_internal (event=3D0x7fffe4007= b50, widget=3D0x1014500) at gtkwidget.c:7379 >> #14 0x00007ffff784b37a in gtk_main_do_event (event=3D0x7fffe4007b50) at = gtkmain.c:1861 >> #15 gtk_main_do_event (event=3D) at gtkmain.c:1691 >> #16 0x00007ffff7efc3c5 in _gdk_event_emit (event=3Devent@entry=3D0x7fffe= 4007b50) at gdkevents.c:73 >> #17 0x00007ffff7f59352 in gdk_event_source_dispatch (base=3D, callback=3D, data=3D) at gdkeventsource.= c:124 >> #18 0x00007ffff70af4cb in g_main_context_dispatch () from /gnu/store/96s= rhmpmxa20wmsck95g3iq4hb3lz4a0-glib-2.70.2/lib/libglib-2.0.so.0 >> #19 0x00000000007771e4 in pgtk_read_socket (terminal=3D0x1079530, hold_q= uit=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:73= 74 >> #28 0x00000000005a0201 in detect_input_pending_run_timers (do_display=3D= true) at keyboard.c:10904 >> #29 0x00000000006de504 in wait_reading_process_output (time_limit=3D30, = nsecs=3D0, read_kbd=3D-1, do_display=3Dtrue, wait_for_cell=3DXIL(0), wait_p= roc=3D0x0, just_wait_proc=3D0) >> at process.c:5779 >> #30 0x0000000000431ef3 in sit_for (timeout=3Dmake_fixnum(30), reading=3D= true, display_option=3D1) at dispnew.c:6256 >> #31 0x000000000058a731 in read_char (commandflag=3D1, map=3DXIL(0x7ffff4= 1b4703), prev_event=3DXIL(0), used_mouse_menu=3D0x7fffffffc42f, end_time=3D= 0x0) at keyboard.c:2879 >> #32 0x000000000059e2ee in read_key_sequence (keybuf=3D0x7fffffffc5c0, pr= ompt=3DXIL(0), dont_downcase_last=3Dfalse, can_return_switch_frame=3Dtrue, = fix_current_buffer=3Dtrue,=20 >> --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:1= 474 >> #35 0x00000000005853cc in command_loop_2 (handlers=3DXIL(0x90)) at keybo= ard.c:1131 >> #36 0x00000000006663ad in internal_catch (tag=3DXIL(0xff60), func=3D0x58= 53a9 , 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 emac= s.c:2530 >> (gdb) frame 12 >> #12 0x00007ffff798ac04 in gtk_widget_event_internal (widget=3Dwidget@ent= ry=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@ent= ry=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" > > You forgot: > > (gdb) p *$4->output_data.pgtk > > Thanks. Right, completely forgot about this one :) =2D-8<---------------cut here---------------start------------->8--- (gdb) p *$4->output_data.pgtk $5 =3D { foreground_color =3D 0, background_color =3D 16777215, toolbar =3D 0x0, last_user_time =3D 0, current_cursor =3D 0x1232460, text_cursor =3D 0x12a56a0, nontext_cursor =3D 0x1232460, modeline_cursor =3D 0x12a56a0, hand_cursor =3D 0x0, hourglass_cursor =3D 0x12a5760, horizontal_drag_cursor =3D 0x0, vertical_drag_cursor =3D 0x0, left_edge_cursor =3D 0x12a5700, top_left_corner_cursor =3D 0x12a5580, top_edge_cursor =3D 0x12a5860, top_right_corner_cursor =3D 0x1275760, right_edge_cursor =3D 0x12a5800, bottom_right_corner_cursor =3D 0x12a55e0, bottom_edge_cursor =3D 0x12a5460, bottom_left_corner_cursor =3D 0x12a5520, current_pointer =3D 0x0, border_pixel =3D 0, border_color_css_provider =3D 0x19f14a0, scrollbar_foreground_css_provider =3D 0x1275440, scrollbar_background_css_provider =3D 0x1255840, hourglass_widget =3D 0x0, cursor_xgcv =3D { foreground =3D 16777215, background =3D 0 }, window_desc =3D 0, parent_desc =3D 42, explicit_parent =3D 0 '\000', icon_bitmap =3D 0, font =3D 0x13957a8, baseline_offset =3D 0, fontset =3D 2, mouse_color =3D 0, cursor_color =3D 0, cursor_foreground_color =3D 16777215, icon_top =3D 0, icon_left =3D 0, vertical_scroll_bar_extra =3D 0, titlebar_height =3D 0, toolbar_height =3D 0, display_info =3D 0x118ee20, zooming =3D 0, in_animation =3D 0, size_hints =3D { min_width =3D 0, min_height =3D 0, max_width =3D 0, max_height =3D 0, base_width =3D 0, base_height =3D 0, width_inc =3D 0, height_inc =3D 0, min_aspect =3D 0, max_aspect =3D 0, win_gravity =3D 0 }, hint_flags =3D 0, preferred_width =3D 672, preferred_height =3D 612, widget =3D 0x1014540, edit_widget =3D 0x1421130, vbox_widget =3D 0x14201c0, hbox_widget =3D 0x1420320, menubar_widget =3D 0x14541a0, toolbar_widget =3D 0x1422260, toolbar_in_hbox =3D false, toolbar_is_packed =3D true, ttip_widget =3D 0x0, ttip_lbl =3D 0x0, ttip_window =3D 0x0, menubar_height =3D 25, toolbar_top_height =3D 41, toolbar_bottom_height =3D 0, toolbar_left_width =3D 0, toolbar_right_width =3D 0, cr_context =3D 0x1345e00, cr_active =3D 0x1345e00, cr_surface_desired_width =3D 624, cr_surface_desired_height =3D 604, cr_surface_visible_bell =3D 0x0, atimer_visible_bell =3D 0x0, has_been_visible =3D 1, black_relief =3D { xgcv =3D { foreground =3D 7566195, background =3D 7779407 }, pixel =3D 7566195 }, white_relief =3D { xgcv =3D { foreground =3D 15132390, background =3D 7779407 }, pixel =3D 15132390 }, relief_background =3D 12566463, relief_background_valid_p =3D true, focus_state =3D 0, watched_scale_factor =3D 2, scale_factor_atimer =3D 0x1734890 } =2D-8<---------------cut here---------------end--------------->8--- =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmQdJ50ACgkQIgjSCVjB 3rD1bg/9GhFyUBGKqeFBI7c9XyCn3x2+eeS8SBcSgAXHKzjLo0zVEzu5+FLOHwxC aZW6L4jwi8XjGG4uD8vDhTr+q7EXQd5ifp/2/IrFTI+oJHOkCYfJd6wuG0sfMHrV JnxWX9imvAriov7DMazKl9MTDzR/5HPI9aEyrxPSprdzwN2RuqC3TPMScjWs0hVj eVQyTARtop7FWMDX28deVvdX6Cnjadbv2E6IsyVfWgFXKQc5D61NlVmzyCJnP13U r6l43eRjwKrtOdfPlQb4F308Onr0twn4A04rAos3ow/K3LxYZ7a/iX/9+Vuhv5cz 9pKIBrKuUrA19d4DdQP79F3gyQ7I7/qRR04OvsiZw7HY0nqIj1/Ktz2tHBmdTQev vgrzCHeO29lrW/N42tReoaKdRAKQtDN4hRdP94xN9xDmXhum61jC4LVX0geYBaa1 KQc/tldQllCqbmbjbh5BQie4UxQWtLNcU9F6QWfya37j5Q6AAvHubdYetg4nWXZd X9AAkNpJfYo8nOz9yXYFpN4OxYxw2rgSN3LCHErALux6mkaG5r6ldSM6Yo9KuP59 Hd35iFu0wxFc99iB0e5wfTv5qb2l309UYb8Q3KH9nMjCv0YZJewVu1hvxKKfAxkK uj1XRCgxbnH4VOG/0j2MN+yKXuBHzy5lKEwcVPcaAcEoEejSkDk= =wwO0 -----END PGP SIGNATURE----- --=-=-=--