<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 30, 2021 at 7:10 PM Hanns Mattes <<a href="mailto:hanns@hannsmattes.de">hanns@hannsmattes.de</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">Hi,<br>
<br>
after upgrading Freebsd from ports dovecot is throwing the following error<br>
<br>
Oct 30 18:04:15 freebsd dovecot[59232]:<br>
doveadm(<a href="mailto:xxx@example.com" target="_blank">xxx@example.com</a>)<84061><S3CoJf9sfWFdSAEAUmejdw>: Fatal: master:<br>
service(doveadm): child 84061 killed with signal 6 (core not dumped -<br>
<a href="https://dovecot.org/bugreport.html#coredumps" rel="noreferrer" target="_blank">https://dovecot.org/bugreport.html#coredumps</a> - set service doveadm {<br>
drop_priv_before_exec=yes })<br>
<br>
I (surely) may have missed something while upgrading (I've learned a lot<br>
about backup/snapshot-strategies with zfs, but to late to apply).<br>
<br>
How can I debug the erro?<br>
<br>
Regards Hanns<br></blockquote><div><br></div><div>The "service doveadm { drop_priv_before_exec=yes }" bit should go into /usr/local/etc/dovecot/conf.d/10-master.conf.</div><div>Append the bit I have quoted into that file and then restart dovecot.</div><div><br></div><div>What command is it that you are running with doveadm?</div><div><br></div><div>The also run the following commands (as root):</div><div><br></div><div>sysctl -w kern.sugid_coredump=1</div><div>sysctl -w kern.corefile=/var/coredumps/%U.%N.core</div><div><br></div><div>mkdir /var/coredumps</div><div>chown -R 1777 /var/coredumps</div><div><br></div><div>The next time you get that fatal error, you'll probably find a file in /var/coredumps/<br></div><div><br></div><div>You can then obtain a backtrace from it:</div><div><br></div><div>gdb /usr/local/bin/doveadm /var/coredumps/FILENAME <ENTER></div><div>bt full <ENTER></div><div><br></div><div>Present the output, together with that from 'doveconf -n'.</div><div><br></div><div>HTH</div></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223<br>"<span style="font-size:12.8px">Oh, the cruft.</span><span style="font-size:12.8px">", </span><span style="font-size:12.8px">egrep -v '^$|^.*#' :-)</span></div></div></div></div></div></div></div></div></div></div></div></div></div>