Subject: bug#63614: 29.0.91; PGTK Emacs crashes after clearing the clipboard

From: Leonardo Hernández Hernández <[email-masked]>
Date: Sun, 21 May 2023 04:30:39 +0000

> Sadly, it seems that most of the relevant local variables have been
> optimized out. Would you please run (in this frame):
> 

> (gdb) *event
> (gdb) p *event->selection
> 

> Thanks.

(gdb) frame 8
#8  0x0000563f06c49d89 in pgtk_handle_selection_clear (event=<optimized out>) at pgtkselect.c:742
742	 local_selection_data = LOCAL_SELECTION (selection_symbol, dpyinfo);
(gdb) p *event
value has been optimized out
(gdb) frame 9
#9  0x0000563f06a9a5c6 in pgtk_handle_selection_event (event=0x7fff20369bc0) at pgtkselect.c:782
782	   pgtk_handle_selection_clear (event);
(gdb) p *event
$1 = {kind = SELECTION_CLEAR_EVENT, dpyinfo = 0x90c1b80, requestor = 0x0, selection = 0x45, target = 0x0, property = 0x0, time = 0}
(gdb) p *event->selection 

$2 = <incomplete type>
(gdb) p *event->dpyinfo 

Cannot access memory at address 0x90c1b80
(gdb) quit