On Sun, Sep 21, 2014 at 11:25:31PM +0200, [email protected] wrote:
> On Sun, Sep 21, 2014 at 06:13:32PM +0100, Stuart Henderson wrote:
> > On 2014/09/21 16:06, [email protected] wrote:
> > > I get this in /var/log/maillog when I start mutt:
> > >
> > > Sep 21 13:21:27 xxx dovecot: imap(yyy): Fatal:
> > > pool_system_realloc(4294967296): Out of memory
> > > Sep 21 13:21:30 xxx dovecot: imap(yyy): Fatal: master: service(imap):
> > > child 17371 returned error 83 (Out of memory (service imap {
> > > vsz_limit=4096 MB }, you may need to increase it) - set CORE_OUTOFMEM=1
> > > environment to get core dump)
> > >
> > Ohhhh..... Just had a thought. You don't mention which versions of
> > anything you're using (hint: it's always a good idea to include dmesg!)
> > but if it's OpenBSD 5.5 then the diff below (or pull up getpwent.c
> > to r1.49) might well help.
> >
> > Index: src/lib/libc/gen/getpwent.c
> > diff -u src/lib/libc/gen/getpwent.c:1.48 src/lib/libc/gen/getpwent.c:1.49
>
> This patch seems to have solved the memory problem!
> But now dovecot complains that my login is wrong.
I solved the login problem by removing "staff" from my
account in vipw.
But now I'm back at the Out of memory problem.
Sep 22 15:36:02 xxx dovecot: imap-login: Login: user=<yyy>, method=PLAIN,
rip=127.0.0.1, lip=127.0.0.1, mpid=11825, TLS, session=<HvUtiKcDLQB/AAAB>
Sep 22 15:36:18 xxx dovecot: imap(yyy): Fatal: pool_system_realloc(4294967296):
Out of memory
Sep 22 15:36:18 xxx dovecot: imap(yyy): Fatal: master: service(imap): child
11825 returned error 83 (Out of memory (service imap { vsz_limit=4096 MB }, you
may need to increase it) - set CORE_OUTOFMEM=1 environment to get core dump)
I don't understand how this memory error is possible, since
for this test I am using a completely empty mail directory
in my $HOME, and in /var/mail I have tried both with no
mailbox and with a very small mailbox. Something in the
imap code seems to be running completely astray.
As before, if I comment out this line in my .muttrc the
memory problem does not appear at start of mutt:
set spoolfile="imap://localhost/INBOX"
Which seems logical, since that line triggers imap.
I tried /etc/rc.d/dovecot stop and then start, and
I also tried rebooting.
I have this in /etc/login.conf:
dovecot:\
:datasize=infinity:\
:openfiles-cur=1500:\
:openfiles-max=2048:\
:tc=daemon:
And this as the last line of /etc/dovecot/dovecot.conf:
default_vsz_limit = 4096 M
This is my uname -a after the build yesterday:
OpenBSD xxx 5.5 GENERIC.MP#0 amd64
I have these two in pkg_info (I have 49 entries in total
in pkg_info so it's not very much, I can attach the whole
list if you need to see it):
dovecot-2.2.10
mutt-1.5.22p0v0-sidebar-compressed
Any ideas?
Thanks!
Peter