SEGV on clicking text in a GtkTextView
The attached test casetext-input.c shows a line of text in a GtkTextView
. Click the text, get a SEGV, trace attached.text-input.trace.
The trouble begins in frame 2, where enable_text_input
(gtk/gtkimcontextwayland.c#372) calls gtk_text_input_enable (global->text_input, global->enter_serial, flags)
, and global->text_input
is NULL
. Then in frame 0, wl_proxy_marshal
(wayland-client.c#787) has no guard against a NULL proxy
. No exported function in wayland-client checks that, so the onus seems to be on GtkIMContextWayland to fix the issue. I don't know if it's as simple as installing a check, perhaps if (!global || !global->text_input) return;
like some other functions, or whether global->text_input
needs to be initialized and then passed.