glib doesn't cleanly unload on Windows
When unloading glib on Windows using FreeLibrary
it doesn't seem to remove the vectored exception handler it installs on init This causes some major trouble because several Windows APIs like GetOpenFileName
will segfault when called after unloading glib because its VEH is still in place. See here for a full test case that shows how to reproduce the issue.