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#70072: 29.3; Emacs-PGTK crashes upon kill-region or kill-ring-save Date: Fri, 29 Mar 2024 15:43:52 +0100 (CET) Message-ID: 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="32589"; mail-complaints-to="usenet@ciao.gmane.io" To: 70072@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 29 17:02:22 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 1rqEgQ-0008C8-6Q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Mar 2024 17:02:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqEg8-0006bP-TE; Fri, 29 Mar 2024 12:02:04 -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 1rqEg7-0006WF-Gr for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 12:02:03 -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 1rqEg7-0005lV-81 for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 12:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rqEg8-00014M-7M for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 12:02:04 -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, 29 Mar 2024 16:02:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70072 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Bug Gnu Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.17117281184060 (code B ref -1); Fri, 29 Mar 2024 16:02:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Mar 2024 16:01:58 +0000 Original-Received: from localhost ([127.0.0.1]:43225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqEfy-00013M-3W for submit@debbugs.gnu.org; Fri, 29 Mar 2024 12:01:58 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:57604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqDSh-0005Pl-9L for submit@debbugs.gnu.org; Fri, 29 Mar 2024 10:44:10 -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 1rqDSa-0004fc-Ga for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 10:44:00 -0400 Original-Received: from w1.tutanota.de ([81.3.6.162]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqDSV-0007TE-W5 for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 10:44:00 -0400 Original-Received: from tutadb.w10.tutanota.de (unknown [192.168.1.10]) by w1.tutanota.de (Postfix) with ESMTP id 5E555FBF975 for ; Fri, 29 Mar 2024 14:43:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1711723432; 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:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=lzjD1x2v/cbv5cuzlWid6o736deDWjntWx+TpBJwB2s=; b=mNdXoBk9jKV/4IWR/iDXFIbCYOHi+RrGtm+JJllEcXZvJgwN2EfULLC1e3TZ96Ei ClFAZaJxfNAg+Xu4CP+0RrcoMUpnI++N2BrAIBvTmllzJlr++nv6bI0YAh3dltDzZ3q dc0sCt33WBqQ/HUO84xNim062nMQbI4BLJTtk/n+Md6WymQgJysdY1+s11oiQJQSd2v PM+Q38UzulMZZIOE9IYVVDL6v9vAY5dF2vOr7WQS8Iwrz8kUHmBO+vB/YcuoZsnh0ci 9omRWJnyH3RCndH9SsAB/CkV8kZMzlyYITUFxfvkieXI5q24o1oJCuJ1B0xVIJkVz8y ywWP1+SgxA== Received-SPF: pass client-ip=81.3.6.162; envelope-from=arash.sah@tuta.io; helo=w1.tutanota.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 29 Mar 2024 12:01:53 -0400 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:282300 Archived-At: ## System Information: * Kernel: 6.8.2-2 * DE: Gnome 46.0 * WM: Mutter (Wayland) * gnome-shell: 46.0 * wayland: 1.22.0 * mutter: 46.0 * wl-clipboard: 2.2.1 * weston: 13.0.0 * sway: 1.9-e93da93 * emacs package: emacs-wayland 29.3-1.1 (archlinux) ## Steps to reproduce the issue under Gnome: 1. Invoke `emacs -Q` in any terminal emulator to start Emacs along with =C2=A0=C2=A0 its GUI frame. 2. Mark/highlight some area of text with your mouse pointer. OR use =C2=A0=C2=A0 C-Space and keyboard movement shortcuts to do the same. 3. Use `C-w` or `M-w` to kill or kill-save the marked text. 5. Emacs crashes. NOTE1: The problem is reproducible both when marking with mouse cursor =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 or when marking with keyboard shortcut= s. NOTE2: Using `kill-region` or `kill-ring-save` commands results in the =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 same state. NOTE3: Copying or cutting text outside Emacs and yanking inside Emacs =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 works without any problem. ## State of the issue under Sway: Just Killing doesn't make Emacs to crash, but then trying to paste it into other applications make Emacs to crash. ## State of the issue under Weston: Copying and cutting outside of Emacs and yanking into Emacs works without issues.=C2=A0 Killing inside Emacs doesn't make it to crash, but=20 it also doesn't paste inside other applications, and makes the current clipboard to get empty. ## Workaround: Set variable `select-enable-clipboard` to `nil`. ## Terminal log of Emacs after crash: ~~~~~~~~~~ Start of the log Fatal error 11: Segmentation fault Backtrace: emacs(+0x16bc62)[0x5f8b0fcddc62] emacs(+0x20243)[0x5f8b0fb92243] emacs(+0x21d44)[0x5f8b0fb93d44] /usr/lib/libc.so.6(+0x41b30)[0x735b53041b30] emacs(+0x3027c9)[0x5f8b0fe747c9] emacs(+0x14950d)[0x5f8b0fcbb50d] emacs(+0x14a631)[0x5f8b0fcbc631] emacs(+0x275406)[0x5f8b0fde7406] emacs(+0x44808)[0x5f8b0fbb6808] emacs(+0x152ea1)[0x5f8b0fcc4ea1] emacs(+0x317837)[0x5f8b0fe89837] emacs(+0x1465ec)[0x5f8b0fcb85ec] emacs(+0x1fd94f)[0x5f8b0fd6f94f] emacs(+0x143fae)[0x5f8b0fcb5fae] emacs(+0x1fd8a5)[0x5f8b0fd6f8a5] emacs(+0x145dc9)[0x5f8b0fcb7dc9] emacs(+0x34bf40)[0x5f8b0febdf40] emacs(+0x146300)[0x5f8b0fcb8300] emacs(+0x380d3)[0x5f8b0fbaa0d3] /usr/lib/libc.so.6(+0x26010)[0x735b53026010] /usr/lib/libc.so.6(__libc_start_main+0x8a)[0x735b530260ca] emacs(+0x38445)[0x5f8b0fbaa445] fish: Job 1, 'emacs --debug-init' terminated by signal SIGSEGV (Address boundary error) ~~~~~~~~ End of the log In GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) Repository revision: 4b1bcc2ad665ccd3fe1d4b8a206f9bf3a8bc2c98 Repository branch: HEAD 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=3Dx86-64-v3 -mtune=3Dhaswell -O3 -pipe -fno-plt -fexceptio= ns -mpclmul -Wp,-D_FORTIFY_SOURCE=3D3 -Wformat -Werror=3Dformat-security -fstack-clash-protection -fcf-protection -g1 -ffile-prefix-map=3D/startdir/src=3D/usr/src/debug/emacs -flto=3Dauto -falign-functions=3D32' 'LDFLAGS=3D-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=3Dauto -falign-functions=3D32' 'CXXFLAGS=3D-march=3Dx86-64-v3 -mtune=3Dhaswell -O3 -pipe -fno-plt -fexceptions -mpclmul -Wp,-D_FORTIFY_SOURCE=3D3 -Wformat -Werror=3Dformat-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g1 -ffile-prefix-map=3D/startdir/src=3D/usr/src/debug/emacs -flto=3Dauto -falign-functions=3D32'' 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 77836 11913) (symbols 48 7110 0) (strings 32 19779 1208) (string-bytes 1 599931) (vectors 16 15779) (vector-slots 8 329592 20534) (floats 8 28 46) (intervals 56 291 0) (buffers 984 12))