From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Abraham S.A.H." via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70073: 29.3; Emacs-PGTK crashes upon marking some text inside emacs and then middle clicking outside of Emacs Date: Fri, 12 Apr 2024 11:54:50 +0200 (CEST) Message-ID: References: <86jzlkeww1.fsf@gnu.org> <86edbsdz9i.fsf@gnu.org> <86y1a0cdpx.fsf@gnu.org> <86ttkndgpb.fsf@gnu.org> Reply-To: "Abraham S.A.H." Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38074"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70073 <70073@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 12 11:56:16 2024 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 1rvDdn-0009eM-Ul for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Apr 2024 11:56:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rvDdS-0007oR-Uu; Fri, 12 Apr 2024 05:55:54 -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 1rvDdR-0007o2-6R for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2024 05:55:53 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rvDdQ-0008NP-U8 for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2024 05:55:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rvDda-0000RA-Bs for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2024 05:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Abraham S.A.H." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Apr 2024 09:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70073 X-GNU-PR-Package: emacs Original-Received: via spool by 70073-submit@debbugs.gnu.org id=B70073.17129157131117 (code B ref 70073); Fri, 12 Apr 2024 09:56:02 +0000 Original-Received: (at 70073) by debbugs.gnu.org; 12 Apr 2024 09:55:13 +0000 Original-Received: from localhost ([127.0.0.1]:57912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvDcm-0000Hs-9q for submit@debbugs.gnu.org; Fri, 12 Apr 2024 05:55:13 -0400 Original-Received: from w1.tutanota.de ([81.3.6.162]:37734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvDch-0000Fy-1w for 70073@debbugs.gnu.org; Fri, 12 Apr 2024 05:55:10 -0400 Original-Received: from tutadb.w10.tutanota.de (unknown [192.168.1.10]) by w1.tutanota.de (Postfix) with ESMTP id 04AE3FBFBCB; Fri, 12 Apr 2024 09:54:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1712915690; s=s1; d=tuta.io; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=71Wso7CPwzgzLkj08OISteXS0g/j67FKzz9O9cVH2j4=; b=11HimG2iNMpZiR7LV0iUnYghZPLERkAl2/N6w/iTH0BmjYZIvGU/lKxKR8RNE8wt dE9j+AZcwg0cW6FPZ/BAR+lwHxvQago7a1qHWYJ1tr3bmQqDrk2gFF+sF3iRMtxYWLZ h6m+HNykz2wNaRdLH3YktlopT2bOVR9EeaE+5FY4HuRSey+UDli6sE/XciAZAh/7pVU MdLgyo1UQuSC4oZVmhYgkREUjzUdWX7Stmh+txvzPHnruPWD6IoQXiNd4/HTdLjCyCT /h617fDa844NNYRJ1Ys3IjaDO69RDOkX8Eq/QehwuR2EAO71hSLA3uR3u11AvMavGtc qJ5gWW7d3Q== In-Reply-To: <86ttkndgpb.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:283129 Archived-At: Sorry for delay. I got the opportunity to build Arch's `emacs-wayland` package myself, from = the same PKGBUILD file used to build it in Arch's official repositories, in= cluding debug and without stripping anything. The result was about 30mg inc= rease in size of the final built Emacs.=C2=A0 And the issue still persist. GDB OUTPUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $ gdb emacs GNU gdb (GDB) 14.2 Copyright (C) 2023 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-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: =C2=A0=C2=A0=C2=A0 . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from emacs... (gdb) r -Q Starting program: /usr/bin/emacs -Q [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7fffeda006c0 (LWP 7410)] [New Thread 0x7fffed0006c0 (LWP 7411)] [New Thread 0x7fffe7e006c0 (LWP 7412)] [New Thread 0x7fffe74006c0 (LWP 7413)] [New Thread 0x7fffe6a006c0 (LWP 7414)] [New Thread 0x7fffe54006c0 (LWP 7415)] [Detaching after vfork from child process 7435] Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. pgtk_handle_selection_request (event=3D0x7fffffffbe80) =C2=A0=C2=A0=C2=A0 at /usr/src/debug/emacs/emacs-29.3-wayland/src/pgtkselec= t.c:573 warning: 573=C2=A0=C2=A0=C2=A0 /usr/src/debug/emacs/emacs-29.3-wayland/src/= pgtkselect.c: No such file or directory (gdb) r -Q The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /usr/bin/emacs -Q [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7fffeda006c0 (LWP 7535)] [New Thread 0x7fffed0006c0 (LWP 7536)] [New Thread 0x7fffe7e006c0 (LWP 7537)] [New Thread 0x7fffe74006c0 (LWP 7538)] [New Thread 0x7fffe6a006c0 (LWP 7539)] [New Thread 0x7fffe54006c0 (LWP 7540)] [Detaching after vfork from child process 7541] Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. pgtk_handle_selection_request (event=3D0x7fffffffbe80) =C2=A0=C2=A0=C2=A0 at /usr/src/debug/emacs/emacs-29.3-wayland/src/pgtkselec= t.c:573 573=C2=A0=C2=A0=C2=A0=C2=A0 in /usr/src/debug/emacs/emacs-29.3-wayland/src/= pgtkselect.c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ report-emacs-bug OUTPUT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) System Description: Arch Linux Configured using: 'configure --with-pgtk --with-native-compilation=3Daot --sysconfdir=3D/etc --prefix=3D/usr --libexecdir=3D/usr/lib --with-tree-sitter --localstatedir=3D/var --with-cairo --disable-build-details --with-harfbuzz --with-libsystemd --with-modules 'CFLAGS=3D-march=3Dnative -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3D3 -Wformat -Werror=3Dformat-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=3D/tmp/makepkg/emacs/src=3D/usr/src/debug/emacs -flto=3Dauto' 'LDFLAGS=3D-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs,-fuse-ld=3Dmold -flto=3Dauto' 'CXXFLAGS=3D-march=3Dnative -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3D3 -Wformat -Werror=3Dformat-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=3D/tmp/makepkg/emacs/src=3D/usr/src/debug/emacs -flto=3Dauto'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: =C2=A0 value of $LC_COLLATE: en_GB.UTF-8 =C2=A0 value of $LC_CTYPE: en_GB.UTF-8 =C2=A0 value of $LC_MESSAGES: en_GB.UTF-8 =C2=A0 value of $LC_MONETARY: fa_IR.UTF-8 =C2=A0 value of $LC_NUMERIC: en_GB.UTF-8 =C2=A0 value of $LC_TIME: en_DK.UTF-8 =C2=A0 value of $LANG: en_GB.UTF-8 =C2=A0 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: =C2=A0 tooltip-mode: t =C2=A0 global-eldoc-mode: t =C2=A0 eldoc-mode: t =C2=A0 show-paren-mode: t =C2=A0 electric-indent-mode: t =C2=A0 mouse-wheel-mode: t =C2=A0 tool-bar-mode: t =C2=A0 menu-bar-mode: t =C2=A0 file-name-shadow-mode: t =C2=A0 global-font-lock-mode: t =C2=A0 font-lock-mode: t =C2=A0 blink-cursor-mode: t =C2=A0 line-number-mode: t =C2=A0 indent-tabs-mode: t =C2=A0 transient-mark-mode: t =C2=A0 auto-composition-mode: t =C2=A0 auto-encryption-mode: t =C2=A0 auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 77550 5699) (symbols 48 7115 0) (strings 32 19768 2366) (string-bytes 1 600069) (vectors 16 15780) (vector-slots 8 329652 14342) (floats 8 28 46) (intervals 56 276 0) (buffers 984 12)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Now that I got time to build it and can more responsively reply for anythin= g needed about this issue. BY THE WAY, checking arch-devel and arch-general mailing lists and also "is= sues" page of the emacs pacakge, it seems like no one else have this issue= =E2=80=A6 kinda only happening to me! During the time, I gave GTK+ and Lucid toolkits a try, and now I decided on= staying with the lucid toolkit. Even switched my whole desktop, from Pure = Wayland of Gnome, to Pure X11 of Xfce4.=C2=A0=20 I think, I stay with it until using X is not practically possible.=C2=A0 Or= when PGTK is recommended by you (Emacs-devs). -- Best Regards, Abraham Sent with Tutanota; https://tuta.com