[Dovecot] 2.1.2 (pop3|imap)-login crash

Timo Sirainen tss at iki.fi
Wed Mar 21 17:17:56 EET 2012


Hi,

On 20.3.2012, at 11.09, Luca Palazzo wrote:

> Hi Timo, hi all,
> after upgrading my server (both backends and load balancer) to 2.1.2 (from 2.0.17), I'm getting a log of login processes crashed in load balancer.
> 
> 0xb77cd176 in ssl_proxy_is_handshaked (proxy=0x0) at ssl-proxy-openssl.c:710
> 710     {
> (gdb) bt
> #0  0xb77cd176 in ssl_proxy_is_handshaked (proxy=0x0) at ssl-proxy-openssl.c:710
> #1  0xb77c7295 in client_get_log_str (client=0x807b830, msg=0x804e290 "proxy(aaaaaa at dddddd.it): disconnecting x.x.x.x (Disconnected by server)") at client-common.c:469
> #2  0xb77c73c6 in client_log (client=0x807b830, msg=0x804e290 "proxy(aaaaaaa at dddddd.it): disconnecting x.x.x.x (Disconnected by server)") at client-common.c:553
> #3  0xb77c9a45 in login_proxy_free_reason (_proxy=<value optimized out>, reason=0x804e248 "Disconnected by server") at login-proxy.c:373

Interesting. This happens because client_destroy() has already been called at the time login_proxy_free_reason() gets called. I'll need to look further into it, but for a quick workaround use the attached patch.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff
Type: application/octet-stream
Size: 526 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20120321/c4062568/attachment-0004.obj>


More information about the dovecot mailing list