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: Mon, 20 Mar 2023 15:17:54 +0400 Message-ID: <871qljisd9.fsf@trop.in> References: <877cvbiuf9.fsf@trop.in> <87edpj1y4r.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="25394"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62291@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 20 12:19:16 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 1peDXn-0006Md-EC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Mar 2023 12:19:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peDXb-0004xw-Nu; Mon, 20 Mar 2023 07:19: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 1peDXa-0004xc-E5 for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2023 07:19: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 1peDXa-0003tm-5Z for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2023 07:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peDXZ-0000Pw-LN for bug-gnu-emacs@gnu.org; Mon, 20 Mar 2023 07:19: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: Mon, 20 Mar 2023 11:19: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.16793110881541 (code B ref 62291); Mon, 20 Mar 2023 11:19:01 +0000 Original-Received: (at 62291) by debbugs.gnu.org; 20 Mar 2023 11:18:08 +0000 Original-Received: from localhost ([127.0.0.1]:53765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peDWh-0000Om-JL for submit@debbugs.gnu.org; Mon, 20 Mar 2023 07:18:08 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:56507) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peDWe-0000OF-JB for 62291@debbugs.gnu.org; Mon, 20 Mar 2023 07:18:06 -0400 Original-Received: (Authenticated sender: andrew@trop.in) by mail.gandi.net (Postfix) with ESMTPSA id 8DE9524000B; Mon, 20 Mar 2023 11:17:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=gm1; t=1679311078; 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=TuphebB666q0Y22o9djRKckpXh/nhHofp6ujBJcHtuY=; b=cDCcTKZzDu3Ep0Cig9/3V9joNYCeQcHPhG+AXxbKu3nGDHzz1s7INqbdMjGGn5ZFBzfhMT y5YSzMJOnEZvMqIAUx4eg8ibko0EhSp5pdlxOdeB+SMmgfqlLkYovkwXDBeaDtHJAUu0mA y8pH3NoyLmDc9P8fZfWZJU6TMSpuNtSBckpwefBXIgYhm1QsjD0TyyKcNwhQwEf5+QBj4w eYXa1mIqkXaNqaqWm0HBP6Uvz0T1Y3JBGT/ZSc1FLdmaRM5tAfZ6MmSSdsfSm1yRj9r/Rn MylY1dvbEt2SgLFuhfQTh2TWwptE0EQAKmRFDjAllwLTtJ5f7YRcXUi9IT6/KA== In-Reply-To: <87edpj1y4r.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:258278 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2023-03-20 19:05, Po Lu wrote: > Andrew Tropin writes: > >> Hello dear maintainers! >> >> I use pgtk emacs on wayland (sway) and a few months ago started facing a >> problem with copy/pasting to ungoogled-chromium. Tried to find relevant >> reports on bug-gun-emacs, but didn't succeed. >> >> Way to reproduce and observed behavior: >> >> 0. guix shell emacs-next-pgtk (or build a fresh emacs with pgtk from mas= ter). >> 1. Launch emacs -Q. >> 2. Select any text and optionally copy it with M-w. >> 3. Paste it to chromium address bar with middle mouse or C-v if it was >> copied with M-w. >> 4. Both chromium and emacs get frozen for some time. >> 5. After some time Emacs crashes, chromium unfreezes. >> 6. A few times I saw "waiting for reply from selection owner." in emacs >> echo area, but can't reproduce it right now. >> >> - The same workflow, but with foot terminal instead of emacs works fine. >> - The same version of Emacs, but built without PGTK, works fine too: >> guix shell emacs-next-tree-sitter -- emacs -Q >> - Copy pasting from emacs-next-pgtk to alacritty and icecat works fine. >> >> The report of this problem on bug-guix and a backtrace of segfault: >> https://yhetil.org/guix-bugs/871qqwfr5d.fsf@trop.in/ > > Unfortunately, the backtrace is not helpful, because it does not include > symbols from the crashing Emacs. > > Would you please run Emacs under GDB and reproduce the crash there? > Then, when Emacs crashes, type: > > (gdb) bt > > then type return, and send the output here. Thanks. Sure! =2D-8<---------------cut here---------------start------------->8--- #0 0x00007ffff71a9424 in signal_emit_unlocked_R.isra.0 () from /gnu/store/= ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0 #1 0x00007ffff71af21b in g_signal_emit_valist () from /gnu/store/ginkhx2ir= si4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0 #2 0x00007ffff71af722 in g_signal_emit () from /gnu/store/ginkhx2irsi4qwkp= nnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0 #3 0x00007ffff719b884 in g_object_dispatch_properties_changed () from /gnu= /store/ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0 #4 0x00007ffff719d834 in g_object_notify_by_pspec () from /gnu/store/ginkh= x2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0 #5 0x00007ffff79afbcd in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s20= 8aj8p-gtk+-3.24.30/lib/libgtk-3.so.0 #6 0x00007ffff79de357 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s20= 8aj8p-gtk+-3.24.30/lib/libgtk-3.so.0 #7 0x00007ffff71974af in g_closure_invoke () from /gnu/store/ginkhx2irsi4q= wkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0 #8 0x00007ffff71a89e9 in signal_emit_unlocked_R.isra.0 () from /gnu/store/= ginkhx2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0 #9 0x00007ffff71aed65 in g_signal_emit_valist () from /gnu/store/ginkhx2ir= si4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0 #10 0x00007ffff71af722 in g_signal_emit () from /gnu/store/ginkhx2irsi4qwkp= nnwg4r30h7jwhi62-glib-2.70.2/lib/libgobject-2.0.so.0 #11 0x00007ffff798ac04 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s20= 8aj8p-gtk+-3.24.30/lib/libgtk-3.so.0 #12 0x00007ffff784b37a in gtk_main_do_event () from /gnu/store/1y2rd23xx129= v1y0qglijws0s208aj8p-gtk+-3.24.30/lib/libgtk-3.so.0 #13 0x00007ffff7ef23c5 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s20= 8aj8p-gtk+-3.24.30/lib/libgdk-3.so.0 #14 0x00007ffff7f4f352 in ?? () from /gnu/store/1y2rd23xx129v1y0qglijws0s20= 8aj8p-gtk+-3.24.30/lib/libgdk-3.so.0 #15 0x00007ffff70a34cb in g_main_context_dispatch () from /gnu/store/ginkhx= 2irsi4qwkpnnwg4r30h7jwhi62-glib-2.70.2/lib/libglib-2.0.so.0 #16 0x000000000064c548 in pgtk_read_socket () #17 0x0000000000515762 in gobble_input () #18 0x0000000000515b85 in unblock_input_to () #19 0x0000000000516a38 in timer_check () #20 0x0000000000516f75 in readable_events () #21 0x0000000000517138 in get_input_pending () #22 0x000000000051beb8 in detect_input_pending_run_timers () #23 0x00000000005f40c8 in wait_reading_process_output () #24 0x0000000000437bd0 in sit_for () #25 0x000000000051ea0f in read_char () #26 0x000000000051f2ed in read_key_sequence () #27 0x0000000000520f12 in command_loop_1 () #28 0x0000000000596757 in internal_condition_case () #29 0x000000000050d13a in command_loop_2 () #30 0x00000000005966b1 in internal_catch () #31 0x000000000050d0df in command_loop () #32 0x0000000000513f43 in recursive_edit_1 () #33 0x00000000005142ba in Frecursive_edit () #34 0x000000000042d022 in main () =2D-8<---------------cut here---------------end--------------->8--- =2D-=20 Best regards, Andrew Tropin --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmQYQOIACgkQIgjSCVjB 3rAk+w//bAFgRxj3SyepM1gpR8qbTTdBsA78ujJg3zDKWfLndbl9AYpFbSUvfXWL xsIeTcznoo4ULDla/EM5GZ1NUZaCMJq2HghSjhSQCt9XhIjDt+ERFu1yWvwdG56V zkS+NGnt45yaz4Swfp3b6SW8epycDPruBhTZj5bq8TqzeXPm5WV3Ovr8brAB0POj 6Mcv64RN7PI/4dUEX5Tw1W2mtYNelBQhb7b/l/B3yDRF6bD8MNrmzN7vNRAoESdE W+RhWaRb+Ol75dXi4wTnjO7keLlqf05uKDyqAvDi2+joi+IkDgPRc7jnUap+lAHW Rm3ML4rInJAFvyKbsUD6Ei1xCXTVuBNEEQ9AbG/bxBscyPNPRQUDu59AMrY1pwFX ytlb91VSMCSyKqVXUWv0FnIhDMwXKrU99hLVSFVHr1u7G3ezyOxzczSsl6azC4RS L6xxfBjabhxBHl6dNC+Fqe8rXaGjQTO01V3zV4xPl04bjQLLkYXBWvlju6zWAU3a OViED965juOwDswbWKKS0BHkDRYsXPPlQ7xzZney+e7vkRoLjPzt/qzabmQUl1Bd rdDdhr7/0TXqp6VZclXVSmr68t/BgVQUIEiv3QFkQT5CvFkuZ7NWnTGczxqwfFfW 0glfSLj05u5cZ56ypMC9AJdbuV34xvBVgsMyv0UvlEwFg5vOyaA= =Ov9C -----END PGP SIGNATURE----- --=-=-=--