[Dovecot] Out of memory/Managesieve

Jim Knuth jk at jkart.de
Mon Oct 29 23:43:08 EET 2012


am 29.10.12 16:41 schrieb Timo Sirainen <tss at iki.fi>:

> On 29.10.2012, at 17.23, Jim Knuth wrote:
>
>> I have here a problem with managesieve. With the login about
>> webmail (roundcube) comes here in the log:
>
> You can always easily reproduce this? Can you get the network traffic logs between Roundcube and Dovecot and reproduce it by sending those same commands manually?
>
>> --snip
>> dovecot: managesieve-login: Fatal: pool_system_realloc(4294967296): Out of memory
>> dovecot: managesieve-login: Fatal: master: service(managesieve-login): child 10157 returned error 83 (Out of memory (service managesieve-login { vsz_limit=1024 MB }, you may need to increase it))
>
> Looks like there's a bug somewhere.. Doesn't it log a "raw backtrace"?
>
>> --snap
>> I've increased of 2048M and the same above.
>> then with 4096 M happens the following
>>
>> --snip
>> dovecot: managesieve-login: Panic: epoll_ctl(add, 61538840) failed: Bad file descriptor
>> dovecot: managesieve-login: Fatal: master: service(managesieve-login): child 9777 killed with signal 6 (core dumps disabled)
>> --snap
>
> Probably related to the first error. It would be helpful to get gdb backtraces from both of them, although from the first one you couldn't without patching + recompiling Dovecot. But from the second one I think you can get a core dump with:
>
> service managesieve-login {
>    executable = managesieve-login -D
> }
>
> Then you can do something like:
>
> gdb /usr/lib/dovecot/managesieve-login /var/run/dovecot/login/core

~# gdb /usr/lib/dovecot/managesieve-login /var/run/dovecot/login/core
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib/dovecot/managesieve-login...Reading 
symbols from /usr/lib/debug/usr/lib/dovecot/managesieve-login...done.
(no debugging symbols found)...done.
/var/run/dovecot/login/core: Datei oder Verzeichnis nicht gefunden.
(gdb)

> bt full

bt full
No stack.
(gdb)

>


-- 
Mit freundlichen Grüßen,
with kind regards,
Jim Knuth
---------
Now this is not the end. It is not even the beginning of the end.
But it is, perhaps, the end of the beginning. [Churchill]



More information about the dovecot mailing list