Subject: Re: bug#70073: 29.3; Emacs-PGTK crashes upon marking some text inside emacs and then middle clicking outside of Emacs

From: Po Lu <[email-masked]>
Date: Sat, 13 Apr 2024 09:44:39 +0800

Eli Zaretskii <[email-masked]> writes:

> Po Lu, any idea why pgtk_handle_selection_request segfaults at that
> point?  Is dpyinfo or dpyinfo->terminal a NULL or invalid pointer or
> something?

That should not be possible.

>> Date: Fri, 12 Apr 2024 20:41:02 +0200 (CEST)
>> From: "Abraham S.A.H." <[email-masked]>
>> Cc: 70073 <[email-masked]>
>> 
>> Thread 1 (Thread 0x7ffff2090080 (LWP 60645) "emacs"):
>> #0  pgtk_handle_selection_request (event=0x7fffffffc040) at /usr/src/debug/emacs/emacs-29.3-wayland/src/pgtkselect.c:573

Abraham, please run the following commands:

  p *(struct selection_input_event *) event
  p *dpyinfo
  p *dpyinfo->terminal

Thanks in advance.