Subject: bug#58584: 29.0.50; M-w crashes Emacs

From: Po Lu <[email-masked]>
Date: Tue, 18 Oct 2022 18:08:35 +0800

Robert Pluim <[email-masked]> writes:

>>>>>> On Tue, 18 Oct 2022 08:53:16 +0800, Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email-masked]> said:
>
>     Po Lu> Jacky Li <[email-masked]> writes:
>     >> /usr/lib/libc.so.6(+0x38a00)[0x7f6faed06a00]
>     >> /usr/lib/libgdk-3.so.0(+0x8c822)[0x7f6fb8538822]
>     >> /usr/lib/libgdk-3.so.0(+0x87f54)[0x7f6fb8533f54]
>     >> /usr/lib/libgdk-3.so.0(+0x8ae68)[0x7f6fb8536e68]
>     >> /usr/lib/libgdk-3.so.0(gdk_display_get_event+0x99)[0x7f6fb84dd019]
>     >> /usr/lib/libgdk-3.so.0(+0x8b048)[0x7f6fb8537048]
>     >> /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x19b)[0x7f6fb769381b]
>     >> /usr/lib/libglib-2.0.so.0(+0xabec9)[0x7f6fb76e9ec9]
>     >> /usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x32)[0x7f6fb76920d2]
>     >> /usr/lib/libgtk-3.so.0(gtk_main_iteration+0x1b)[0x7f6fb7dd7cfb]
>
>     Po Lu> Should be fixed now, thanks.  For reference, this is a bug in GTK, where
>     Po Lu> it doesn't understand XFixesSelectionNotify events selected for by
>     Po Lu> external code.
>
> Works for me. I still get lots of:
>
> emacs:1276932): Gtk-CRITICAL **: 10:21:57.131:
> gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed
>
> but I seem to remember you saying thatʼs a GTK issue?

Yes.  The warnings are harmless (aside from occasionally leading to the
frame being randomly resized), and can be resolved by making the frame
wider than the menu bar.