Bug 3202 - auto configuration crashes if no result
Summary: auto configuration crashes if no result
Status: RESOLVED INVALID
Alias: None
Product: Claws Mail (Windows)
Classification: Unclassified
Component: default (show other bugs)
Version: 3.10.0
Hardware: PC Windows 7
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2014-06-02 13:51 UTC by Christian Hesse
Modified: 2014-06-02 21:05 UTC (History)
0 users

See Also:


Attachments

Description Christian Hesse 2014-06-02 13:51:41 UTC
Installed latest version (claws-mail-3.10.0git2-pkg54), claws-mail crashes with libravatar plugin enabled:

* enable libravatar plugin
* select message in message list
-> claws-mail crashes

This worked perfectly fine with claws-mail 3.9.3-84 (or similar, do not remember the exact version).
Comment 1 Ricardo Mones 2014-06-02 14:22:51 UTC
I don't have Windows, so please post a backtrace to help debugging this.
Comment 2 Christian Hesse 2014-06-02 14:44:31 UTC
I do have Windows, but no idea how to get a backtrace there. Anybody with a hint?
Comment 3 Colin Leroy 2014-06-02 15:04:51 UTC
I got one:

Program received signal SIGTRAP, Trace/breakpoint trap.
0x773f56bd in ntdll!RtlpNtMakeTemporaryKey ()
   from C:\Windows\system32\ntdll.dll
(gdb) bt
#0  0x773f56bd in ntdll!RtlpNtMakeTemporaryKey ()
   from C:\Windows\system32\ntdll.dll
#1  0x773c1ab3 in ntdll!EtwSetMark () from C:\Windows\system32\ntdll.dll
#2  0x773f6717 in ntdll!RtlpNtMakeTemporaryKey ()
   from C:\Windows\system32\ntdll.dll
#3  0x773ba13e in ntdll!EtwSetMark () from C:\Windows\system32\ntdll.dll
#4  0x773865a6 in wcsnicmp () from C:\Windows\system32\ntdll.dll
#5  0x7426313b in DnsLogIt () from C:\Windows\system32\dnsapi.dll
#6  0x74263113 in DnsLogIt () from C:\Windows\system32\dnsapi.dll
#7  0x742632c8 in DnsApiAlloc () from C:\Windows\system32\dnsapi.dll
#8  0x74291cc2 in DnsFreeProxyName () from C:\Windows\system32\dnsapi.dll
#9  0x6d5cfbae in libgio-2.0-0!g_threaded_resolver_get_type ()
   from C:\Program Files\GNU\Claws Mail\libgio-2.0-0.dll
#10 0x6d5cf693 in libgio-2.0-0!g_threaded_resolver_get_type ()
   from C:\Program Files\GNU\Claws Mail\libgio-2.0-0.dll
#11 0x6d5cfbf1 in libgio-2.0-0!g_threaded_resolver_get_type ()
   from C:\Program Files\GNU\Claws Mail\libgio-2.0-0.dll
#12 0x6d5be236 in libgio-2.0-0!g_resolver_lookup_service ()
   from C:\Program Files\GNU\Claws Mail\libgio-2.0-0.dll
#13 0x005cefce in claws-mail!auto_configure_service_sync ()
Comment 4 Colin Leroy 2014-06-02 15:09:12 UTC
Apparently auto configuration crashes if no DNS response to the SRV query exists.
Comment 5 Ricardo Mones 2014-06-02 15:30:36 UTC
D'oh! That's a bit surprising, or not. Anyway as a workaround you can uncheck "Enable federated servers", which prevent this call from happening within libravatar.

In the long run this can be disabled when building for windows, for example, but better suggestions welcome.
Comment 6 Christian Hesse 2014-06-02 15:42:07 UTC
The same happens when auto-configuring servers names.

So is the a bug in claws-mail or the glib version shipped with claws-mail?
Comment 7 Colin Leroy 2014-06-02 15:44:25 UTC
I believe it's in glib, i'll investigate patching or upgrading our win32 glib: from a cursory glance, it's just trying to free an uninitialized result, and they've fixed it in at least 2.40.
Comment 8 Colin Leroy 2014-06-02 21:05:05 UTC
Filed upstream with a patch, and a new build's uploaded.

For reference:
https://bugzilla.gnome.org/show_bug.cgi?id=731124

Note You need to log in before you can comment on or make changes to this bug.