[Dovecot] Out of memory/Managesieve
Hello,
I have here a problem with managesieve. With the login about webmail (roundcube) comes here in the log:
--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)) --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
How can one solve then this? Any ideas greatly appreciated. Thanks.
-- Mit freundlichen Grüßen, with kind regards, Jim Knuth
Backup interessiert niemanden - Auf Restore kommt es an!
am 29.10.12 16:23 schrieb Jim Knuth <jk@jkart.de>:
Hello,
I have here a problem with managesieve. With the login about webmail (roundcube) comes here in the log:
--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)) --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
How can one solve then this? Any ideas greatly appreciated. Thanks.
Sorry, I've forgotten. OS Debian stable and Dovecot 2.1.
-- Mit freundlichen Grüßen, with kind regards, Jim Knuth
Nicht Absicht unterstellen, wenn auch Dummheit ausreicht!
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 bt full
am 29.10.12 16:41 schrieb Timo Sirainen <tss@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]
On 29.10.2012, at 23.43, Jim Knuth wrote:
~# gdb /usr/lib/dovecot/managesieve-login /var/run/dovecot/login/core /var/run/dovecot/login/core: Datei oder Verzeichnis nicht gefunden.
You'll of course need to have the core file first. Instead of:
dovecot: managesieve-login: Fatal: master: service(managesieve-login): child 9777 killed with signal 6 (core dumps disabled)
It should say (core dumped). Besides the executable change, you'll need to run "ulimit -c unlimited" just before dovecot binary.
am 29.10.12 22:46 schrieb Timo Sirainen <tss@iki.fi>:
On 29.10.2012, at 23.43, Jim Knuth wrote:
~# gdb /usr/lib/dovecot/managesieve-login /var/run/dovecot/login/core /var/run/dovecot/login/core: Datei oder Verzeichnis nicht gefunden.
You'll of course need to have the core file first. Instead of:
dovecot: managesieve-login: Fatal: master: service(managesieve-login): child 9777 killed with signal 6 (core dumps disabled)
It should say (core dumped). Besides the executable change, you'll need to run "ulimit -c unlimited" just before dovecot binary.
If I run "ulimit -c unlimited" no problems more with Managesieve Login over Roundcube:
Oct 29 22:50:46 srv1 dovecot: managesieve-login: Login: user=<web1p1>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=9354, secured, session=<kCVwqTnNngB/AAAB> Oct 29 22:50:46 srv1 dovecot: managesieve(web1p1): Disconnected: Logged out bytes=120/177 Oct 29 22:53:16 srv1 dovecot: managesieve-login: Login: user=<web1p1>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=9418, secured, session=<Oc5osjnNZwB/AAAB> Oct 29 22:53:16 srv1 dovecot: managesieve(web1p1): Disconnected: Logged out bytes=44/145
But the same:
srv1:~# 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 No stack. (gdb) q
-- Mit freundlichen Grüßen, with kind regards, Jim Knuth
Ein Tag an dem Du nicht lächelst, ist ein verlorener Tag. (Charly Chaplin)
am 31.10.12 20:46 schrieb Thomas Leuxner <tlx@leuxner.net>:
Am 29.10.2012 um 22:58 schrieb Jim Knuth <jk@jkart.de>:
/var/run/dovecot/login/core: Datei oder Verzeichnis nicht gefunden.
Error says it all… So not really helpful.
yes, I know ;) But no more problems. I dont no why *bg*
-- Mit freundlichen Grüßen, with kind regards, Jim Knuth
Ich schaue mir meine Filme nie an. Sie sind mir zu brutal. (Charles Bronson)
participants (3)
-
Jim Knuth
-
Thomas Leuxner
-
Timo Sirainen