[Dovecot] pop3 proxying error

Timo Sirainen tss at iki.fi
Thu Aug 9 10:27:06 EEST 2012


On 9.8.2012, at 10.15, tonio at starbridge.org wrote:

>> Could you run imap-login via valgrind (it slows things down):
>> 
>> service imap-login {
>>   executable = /usr/bin/valgrind -q --vgdb=no /usr/local/libexec/dovecot/imap-login
>> }
>> 
>> (you may not have/need --vgdb=no, depends on your valgrind version)
>> 
> 
> Timo,
> I can'f find what trigger this error, and it seems only happenig under some load
> here the error log in mail.log:
..
> Aug  9 09:01:36 smtp dovecot: imap-login: Error: ==27313== Invalid read of size 4
> Aug  9 09:01:37 smtp dovecot: imap-login: Error: ==27313==    at 0x5069BA1: settings_parser_get_list (settings-parser.c:254)
> Aug  9 09:01:37 smtp dovecot: imap-login: Error: ==27313==    by 0x4E3EA7C: login_settings_read (login-settings.c:230)
..
> Aug  9 09:01:37 smtp dovecot: imap-login: Error: ==27313==  Address 0x65fc1e0 is 96 bytes inside a block of size 8,192 free'd
> Aug  9 09:01:37 smtp dovecot: imap-login: Error: ==27313==    at 0x4C27D4E: free (vg_replace_malloc.c:427)
> Aug  9 09:01:37 smtp dovecot: imap-login: Error: ==27313==    by 0x508DC1E: master_service_settings_cache_read (master-service-settings-cache.c:168)

Thanks. Obviously I shouldn't free cached settings while they're still being used. :) I'll get it fixed tomorrow. For now you could work around it by increasing config_cache_size setting (default is 1M).


More information about the dovecot mailing list