From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70072: 29.3; Emacs-PGTK crashes upon kill-region or kill-ring-save Date: Fri, 29 Mar 2024 21:03:35 +0300 Message-ID: <86le60ewzs.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14088"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70072@debbugs.gnu.org To: "Abraham S.A.H." Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 29 19:04:18 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 1rqGaQ-0003Rs-7A for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Mar 2024 19:04:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqGaA-0004gN-Ks; Fri, 29 Mar 2024 14:04:02 -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 1rqGa9-0004gD-An for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 14:04:01 -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 1rqGa9-0001s5-1f for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 14:04:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rqGaA-00076d-EE for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 14:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Mar 2024 18:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70072 X-GNU-PR-Package: emacs Original-Received: via spool by 70072-submit@debbugs.gnu.org id=B70072.171173543027290 (code B ref 70072); Fri, 29 Mar 2024 18:04:02 +0000 Original-Received: (at 70072) by debbugs.gnu.org; 29 Mar 2024 18:03:50 +0000 Original-Received: from localhost ([127.0.0.1]:43388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqGZx-000765-Pb for submit@debbugs.gnu.org; Fri, 29 Mar 2024 14:03:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqGZv-00075o-CH for 70072@debbugs.gnu.org; Fri, 29 Mar 2024 14:03:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqGZn-0001ou-0t; Fri, 29 Mar 2024 14:03:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=aXreJnVCs8tiLM5QUEm+YjJIHLiRPV9njMwRC4JE/Jw=; b=Tchz5w4V2w6iXbH56lZn 6EGyM/CdlU35fSxQ5YQ4kYI9zRVL2IFepdZ1TogoOluVas4QpcH9y92e+rhe6oVzky+sYgaNS4pcs s/9kSQxCTqvei18tgR7rbudJ1JLW8gsM4ftztTuWDYqqLXWr+P0t02zjE4tMSFFGtqTDttxUk/XZ7 7RoCVHfzsV6gnpeOLWNA6N/g5g8iR0c8R7X70InzaeXAwj8wHZbqtwEpSiVcdXJfAchsoCHJftZ7c 0OBnOct2nABJtlZELAHKjNa4LGCigK0nS+XllhSXN6bLh922y5UYHEwsx+dXPeevhX4NrN2T1YKyC ZWwu5dng+GbNSQ==; In-Reply-To: (bug-gnu-emacs@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:282311 Archived-At: > Date: Fri, 29 Mar 2024 15:43:52 +0100 (CET) > From: "Abraham S.A.H." via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > ## 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 >    its GUI frame. > 2. Mark/highlight some area of text with your mouse pointer. OR use >    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 >        or when marking with keyboard shortcuts. > NOTE2: Using `kill-region` or `kill-ring-save` commands results in the >        same state. > NOTE3: Copying or cutting text outside Emacs and yanking inside Emacs >        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.  Killing inside Emacs doesn't make it to crash, but > 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] Thank you for your report, but these backtraces can only be interpreted on your system. So either convert them to human-readable lists of file names, line numbers, and function names as described in the node "Crashing" of the Emacs user manual, or run Emacs from GDB, and when Emacs crashes, type "bt" at the GDB prompt and post the backtrace produced by GDB. > fish: Job 1, 'emacs --debug-init' terminated by signal SIGSEGV (Address > boundary error) This says you invoked Emacs with --debug-init, not with -Q. Which one is correct?