GNOME Bugzilla – Bug 731124
g_resolver_lookup_service crashes on win32
Last modified: 2017-09-02 07:03:27 UTC
Created attachment 277760 [details] [review] Patch for 2.22 to 2.30 Hello, g_resolver_lookup_service() crashes on win32 if there is no reply to the SRV request : Program received signal SIGTRAP, Trace/breakpoint trap. 0x773f56bd in ntdll!RtlpNtMakeTemporaryKey () from C:\Windows\system32\ntdll.dll (gdb) bt
+ Trace 233658
The crasher is present in glib 2.22.x to 2.32.x and fixed starting from 2.34.x. It is due to a missing initialization of the DNS_RESULT * pointer, which doesn't get set to NULL by Microsoft's DnsQuery_A(). I know it is a bug in old versions, but I thought you may be interested as 2.28.x is the version shipped at http://ftp.gnome.org/pub/gnome/binaries/win32/ Attached is the patch against 2.28.8, which applies for glib 2.22.x to glib 2.30.x; and a patch for glib 2.32.x where gwin32resolver.c is removed.
Created attachment 277761 [details] [review] Patch for 2.32
Thanks for the patch, but as you can see, the binaries at the given link are not updated, and nor are such (now) old versions of GLib. The recommended way to obtain binaries of GLib, GTK+, et al. now is to get them via MSYS2: https://www.gtk.org/download/windows.php