<div dir="ltr">for FreeBSD you can add to /etc/make.conf:<br>WITH_DEBUG_PORTS=mail/dovecot mail/dovecot-pigeonhole<br><div><br></div><div>and rebuild the packages. </div><div>(from the FreeBSD port maintainer, me).</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 11, 2019 at 10:31 AM Stephan Bosch via dovecot <<a href="mailto:dovecot@dovecot.org">dovecot@dovecot.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
Op 9-2-2019 om 19:27 schreef Giacomo via dovecot:<br>
> I got a core file this morning.<br>
><br>
> opening it with gdb I get this:<br>
><br>
> (gdb) core imap.core<br>
> Core was generated by `dovecot/imap'.<br>
> Program terminated with signal 6, Aborted.<br>
> #0 0x0000000011c1347a in ?? ()<br>
> (gdb) bt<br>
> #0 0x0000000011c1347a in ?? ()<br>
> #1 0x0000000011c13444 in ?? ()<br>
> #2 0x0000000000018dee in ?? ()<br>
> #3 0x306db139575f3b0d in ?? ()<br>
> #4 0x00007fffffffc144 in ?? ()<br>
> #5 0x0000000000000000 in ?? ()<br>
><br>
> Doesn't look clean at all.<br>
<br>
That is not that helpful. Did you install debug symbols for Dovecot? <br>
This is usually a separate package. It all depends on your OS. I am not <br>
familiar with FreeBSD.<br>
<br>
Regards,<br>
<br>
Stephan.<br>
<br>
><br>
> let me know if I should upload the file somewhere.<br>
><br>
> Thanks<br>
><br>
> Il giorno lun 21 gen 2019 alle ore 08:52 Giacomo <br>
> <<a href="mailto:giacomo1989@gmail.com" target="_blank">giacomo1989@gmail.com</a> <mailto:<a href="mailto:giacomo1989@gmail.com" target="_blank">giacomo1989@gmail.com</a>>> ha scritto:<br>
><br>
> I've just enabled core dumps on the involved FreeBSD system. Let's<br>
> see if it dumps something..<br>
><br>
> Il giorno dom 20 gen 2019 alle ore 19:16 Stephan Bosch<br>
> <<a href="mailto:stephan@rename-it.nl" target="_blank">stephan@rename-it.nl</a> <mailto:<a href="mailto:stephan@rename-it.nl" target="_blank">stephan@rename-it.nl</a>>> ha scritto:<br>
><br>
> Hi Giacomo,<br>
><br>
> Op 21/12/2018 om 16:16 schreef Giacomo:<br>
> > The bug happens not very often, it might need a week to get<br>
> a core file.<br>
><br>
> Any luck getting a core file?<br>
><br>
> Regards,<br>
><br>
> Stephan.<br>
> ><br>
> ><br>
> > Il giorno ven 21 dic 2018 alle ore 15:18 Aki Tuomi<br>
> > <<a href="mailto:aki.tuomi@open-xchange.com" target="_blank">aki.tuomi@open-xchange.com</a><br>
> <mailto:<a href="mailto:aki.tuomi@open-xchange.com" target="_blank">aki.tuomi@open-xchange.com</a>><br>
> <mailto:<a href="mailto:aki.tuomi@open-xchange.com" target="_blank">aki.tuomi@open-xchange.com</a><br>
> <mailto:<a href="mailto:aki.tuomi@open-xchange.com" target="_blank">aki.tuomi@open-xchange.com</a>>>> ha<br>
> > scritto:<br>
> ><br>
> ><br>
> > On 21.12.2018 14.49, Giacomo wrote:<br>
> > > I'm running the following:<br>
> > ><br>
> > > # 2.3.4 (0ecbaf23d): /usr/local/etc/dovecot/dovecot.conf<br>
> > > # OS: FreeBSD 11.2-RELEASE-p4 amd64<br>
> > > # FS: ZFS<br>
> > ><br>
> > > auth_mechanisms = plain login<br>
> > > auth_username_format = %Ln<br>
> > > listen = *<br>
> > > mail_location = maildir:~/Maildir<br>
> > > namespace inbox {<br>
> > > inbox = yes<br>
> > > location =<br>
> > > mailbox Drafts {<br>
> > > auto = subscribe<br>
> > > special_use = \Drafts<br>
> > > }<br>
> > > mailbox Junk {<br>
> > > auto = subscribe<br>
> > > special_use = \Junk<br>
> > > }<br>
> > > mailbox Sent {<br>
> > > special_use = \Sent<br>
> > > }<br>
> > > mailbox Trash {<br>
> > > auto = subscribe<br>
> > > special_use = \Trash<br>
> > > }<br>
> > > prefix =<br>
> > > }<br>
> > > passdb {<br>
> > > driver = pam<br>
> > > }<br>
> > > protocols = imap lmtp<br>
> > > service auth {<br>
> > > unix_listener /var/spool/postfix/private/auth {<br>
> > > group = postfix<br>
> > > mode = 0666<br>
> > > user = postfix<br>
> > > }<br>
> > > user = dovecot<br>
> > > }<br>
> > > service imap-login {<br>
> > > inet_listener imap {<br>
> > > port = 0<br>
> > > }<br>
> > > }<br>
> > > service lmtp {<br>
> > > unix_listener /var/spool/postfix/private/dovecot-lmtp {<br>
> > > group = postfix<br>
> > > mode = 0600<br>
> > > user = postfix<br>
> > > }<br>
> > > }<br>
> > > service stats {<br>
> > > unix_listener stats-reader {<br>
> > > group =<br>
> > > mode = 0600<br>
> > > user =<br>
> > > }<br>
> > > unix_listener stats-writer {<br>
> > > group = $default_internal_group<br>
> > > mode = 0666<br>
> > > user =<br>
> > > }<br>
> > > user = $default_internal_user<br>
> > > }<br>
> > > ssl_cert = </root/cert.pem<br>
> > > ssl_key = # hidden, use -P to show it<br>
> > > userdb {<br>
> > > driver = passwd<br>
> > > }<br>
> > ><br>
> > > dmesg shows:<br>
> > ><br>
> > > pid 74441 (imap), uid 1002: exited on signal 6<br>
> > > pid 74784 (imap), uid 1002: exited on signal 6<br>
> > > pid 21471 (imap), uid 1002: exited on signal 6<br>
> > > pid 21470 (imap), uid 1002: exited on signal 6<br>
> > > pid 21464 (imap), uid 1002: exited on signal 6<br>
> > > pid 21731 (imap), uid 1002: exited on signal 6<br>
> > ><br>
> > > Sometimes the dovecot process serving an user crashes.<br>
> He runs<br>
> > mostly<br>
> > > airmail on macOS and samsung mail on Android.<br>
> > ><br>
> > > Happens only to that particular user.<br>
> > ><br>
> > > The log shows the following: (maillog)<br>
> > ><br>
> > > Dec 16 14:52:35 mail dovecot: imap-login: Login:<br>
> user=<USER>,<br>
> > > method=PLAIN, rip=79.12.201.157, lip=192.168.1.28,<br>
> mpid=74779, TLS,<br>
> > > session=<wMQI+iN9VtRPDMmd><br>
> > > Dec 16 14:52:39 mail dovecot:<br>
> imap(USER)<74441><nLa+7SN9+fhPDMmd>:<br>
> > > Panic: file charset-iconv.c: line 83<br>
> (charset_to_utf8_try):<br>
> > assertion<br>
> > > failed: (srcleft <= CHARSET_MAX_PENDING_BUF_SIZE)<br>
> > > Dec 16 14:52:39 mail dovecot:<br>
> imap(USER)<74441><nLa+7SN9+fhPDMmd>:<br>
> > > Fatal: master: service(imap): child 74441 killed with<br>
> signal 6 (core<br>
> > > not dumped -<br>
> <a href="https://dovecot.org/bugreport.html#coredumps" rel="noreferrer" target="_blank">https://dovecot.org/bugreport.html#coredumps</a> - set<br>
> > > service imap { drop_priv_before_exec=yes })<br>
> > ><br>
> > > I'm here if more info is needed.<br>
> > ><br>
> > > Thanks for taking a look.<br>
> ><br>
> ><br>
> > Can you somehow get a core file and get backtrace from it?<br>
> ><br>
> ><br>
> > Aki<br>
> ><br>
><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Larry Rosenman <a href="http://www.lerctr.org/~ler" target="_blank">http://www.lerctr.org/~ler</a><br><span>Phone: <span title="Call with Google Voice"><span title="Call with Google Voice"><span title="Call with Google Voice">+1 214-642-9640</span></span></span> (c) E-Mail: </span><a href="mailto:larryrtx@gmail.com" target="_blank">larryrtx@gmail.com</a><br>US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106</div></div></div></div></div></div></div></div>