unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Abraham S.A.H." <arash.sah@tuta.io>
Cc: 70073@debbugs.gnu.org
Subject: bug#70073: 29.3; Emacs-PGTK crashes upon marking some text inside emacs and then middle clicking outside of Emacs
Date: Fri, 29 Mar 2024 21:05:50 +0300	[thread overview]
Message-ID: <86jzlkeww1.fsf@gnu.org> (raw)
In-Reply-To: <Nu9gaZH--3-9@tuta.io> (bug-gnu-emacs@gnu.org)

> Date: Fri, 29 Mar 2024 15:52:12 +0100 (CET)
> From:  "Abraham S.A.H." via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> ## 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. Open any other application. (gnome-text-editor, for example)
> 4. Use your middle mouse button in an editable text area of the second
>    application's frame.
> 5. Emacs crashes.
> 
> NOTE1: Emacs doesn't crash if you just middle click in any 
>        *non-textual/non-editable* area, outside Emacs.
> NOTE2: Middle clicking *inside* any of Emacs' own buffers DOES work
>        properly without any crash or noticeable problem.
> NOTE3: The problem is reproducible both when marking with mouse cursor
>        or when marking with keyboard shortcuts.
> NOTE4: Using another shortcut that pastes the Primary selection of the
>        wayland, instead of mouse's middle click, also reproduces the 
>        same issue. E.g. S-Insert of WezTerm.
> NOTE5: Marking a text outside of Emacs and middle clicking inside
>        Emacs works flawlessly.

Is this different from bug#70072 that you submitted a few minutes ago,
or is this the same problem?  It sounds almost the same problem, just
triggered in 2 different ways.

> 
> ## State of the issue under Sway:
> 
> The issue is completely reproducable under sway with the same steps as
> above, with the same symptoms and the same segmentation fault error.
> 
> ## State of the issue under Weston:
> 
> The issue is not reproducable under Weston but the functionality is
> also lost.  Weston doesn't support primary selection.
> 
> ## Tried Workarounds:
> 
> ### Workaround number 1:
> Disable the primary selection.  In gnome you can disable 
> primary selection.  Brings users to the same state of under 
> Weston.  Emacs will not crash, Primary selection works inside 
> Emacs, but not outside of Emacs.
> 
> Emacs still crashes if user uses the middle click inside applications
> that try to pull primary selection with middle click.
> 
> ### Workaround number 2:
> Set variable `select-active-regions` to `nil`.	Disables the
> functionality and of course removes the issue.
> 
> ## Terminal log of Emacs after crash:
> 
> ~~~~~~~ Start of the terminal 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.





  reply	other threads:[~2024-03-29 18:05 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-29 14:52 bug#70073: 29.3; Emacs-PGTK crashes upon marking some text inside emacs and then middle clicking outside of Emacs Abraham S.A.H. via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-29 18:05 ` Eli Zaretskii [this message]
     [not found]   ` <NuAVPFf--B-9@tuta.io>
2024-03-29 19:00     ` Abraham S.A.H. via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-30  6:12     ` Eli Zaretskii
2024-03-30  8:13       ` Abraham S.A.H. via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-30  8:42         ` Eli Zaretskii
2024-03-30 11:06           ` Abraham S.A.H. via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-30 12:53             ` Eli Zaretskii
2024-04-12  9:54               ` Abraham S.A.H. via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-12 11:07                 ` Eli Zaretskii
2024-04-12 18:41                   ` Abraham S.A.H. via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-12 19:07                     ` Eli Zaretskii
2024-04-13  1:44                       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-15 10:06                         ` Abraham S.A.H. via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-15 11:27                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-20 23:18                             ` Abraham S.A.H. via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-02  8:42                               ` Eli Zaretskii
2024-05-02 12:05                                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-05  3:26                                   ` Abraham S.A.H. via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-05  4:07                                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-06  1:50                                       ` Abraham S.A.H. via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-25  7:27                                         ` Eli Zaretskii
2024-06-08 11:43                                           ` Eli Zaretskii
2024-06-08 12:10                                             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86jzlkeww1.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=70073@debbugs.gnu.org \
    --cc=arash.sah@tuta.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).