<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>