Windows msys2: glib2-2.76 segfaults festival
I updated today my msys2 environment (pacman -Syuu
), the latest glib2-2.76 triggers systematically segfaults in various scenarios in gtk3/gtk4 applications. Old glib2-1.74 from last week was OK.
Steps to reproduce:
- Install msys2 with gtk3/gtk4
pacman -S mingw-w64-ucrt-x86_64-gtk3 mingw-w64-ucrt-x86_64-gtk4
- start either
gtk3-widget-factory
orgtk4-widget-factory
- select the page 3, and interact with GtkTextView or GtkEntry widgets:
- enter some text
- copy/paste text
- right click for context menus
- With the interactions above I quickly see:
- sometimes critical assertion failures
G_IS_TASK
orG_IS_OBJECT
- systematically a crash by segfault
- sometimes critical assertion failures
Affected packages:
- https://mirror.msys2.org/mingw/ucrt64/mingw-w64-ucrt-x86_64-glib2-2.76.0-1-any.pkg.tar.zst
- https://mirror.msys2.org/mingw/ucrt64/mingw-w64-ucrt-x86_64-gobject-introspection-runtime-1.76.0-1-any.pkg.tar.zst
Rolling back to previous version solves the segfaults:
- https://mirror.msys2.org/mingw/ucrt64/mingw-w64-ucrt-x86_64-glib2-2.74.6-1-any.pkg.tar.zst
- https://mirror.msys2.org/mingw/ucrt64/mingw-w64-ucrt-x86_64-gobject-introspection-runtime-1.74.0-1-any.pkg.tar.zst
I connected gdb
for more infos, sadly msys2 doesn't provide debug symbols so no backtrack usable, but the crash always occurred from /ucrt64/bin/libgobject-2.0-0.dll
Edited by gwillems