Since patch 9.1.1583, gvim with GTK2 crashes with SEGV on startup.
In src/gui_gtk_x11.c, the function mainwin_realize() calls:
icon_theme = gtk_icon_theme_get_default();and later:
g_object_unref(icon_theme);However, gtk_icon_theme_get_default() returns a singleton that should NOT be unreferenced. From GTK documentation:
"Gets the icon theme for the default screen. [...] This icon theme is associated with the screen and can be used as long as the screen is open."
This causes a use-after-free crash in GTK2.
Commit 9d5bb58 (patch 9.1.1583: gvim window lost its icons)
Remove the g_object_unref(icon_theme); line at the end of the icon handling block.
Comment out the offending line:
// g_object_unref(icon_theme); // Do not unref - singleton from gtk_icon_theme_get_default()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
All the above was done by cursor. I can verify that the fix works.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #18997 as completed via bb10f71.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
thanks, should be fixed now with v9.1.2011
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()