Date: Fri, 13 Sep 2024 11:20:47 +0300 From: Odhiambo Washington <odhiambo@gmail.com> To: questions <questions@freebsd.org> Subject: Debugging a port - mail/rspamd woes! Message-ID: <CAAdA2WOkue=PQawvrD5H=scCOkKWOB%2BexAL2zp6hgFXcuK5tcQ@mail.gmail.com>
index | next in thread | raw e-mail
[-- Attachment #1 --] FreeBSD 14.1-RELEASE. I have this below situation with mail/rspamd: root@gw:/usr/ports/mail/rspamd # /usr/local/etc/rc.d/rspamd onestart Starting rspamd. 2024-09-13 11:03:43 #94946(main) <dea796>; main; main: rspamd 3.9.1 is loading configuration, build id: release Segmentation fault (core dumped) /usr/local/etc/rc.d/rspamd: WARNING: failed to start rspamd There is nothing unusual I am doing. A simple make install clean. And I do not have any changes made to the configuration files. And because the corefile does not give me anything useful with gdb, I decide to approach the troubleshooting differently: root@gw:/usr/ports/mail/rspamd # make -DWITH_DEBUG DEBUG_FLAGS="-g -O0" install clean And then: root@gw:/usr/ports/mail/rspamd # /usr/local/etc/rc.d/rspamd onestart Starting rspamd. 2024-09-13 11:15:44 #84352(main) <3061a2>; main; main: rspamd 3.9.1 is loading configuration, build id: release root@gw:/usr/ports/mail/rspamd # /usr/local/etc/rc.d/rspamd status rspamd is running as pid 84807. root@gw:/usr/ports/mail/rspamd # So, when I build with debugging enabled, it doesn't fail anymore and now I can't figure out why it core dumps! My /etc/make.conf looks like below: ``` FETCH_ALL=yes WITH_PKGNG="yes" WITH_PKGNG="yes" OPTIONS_UNSET+=DOCS OPTIONS_UNSET+=NLS OPTIONS_UNSET+=X11 OPTIONS_UNSET+=HAL DEFAULT_VERSIONS+=python=3.11 python3=3.11 pgsql=15 mysql=114m ssl=openssl ``` Someone pls help me figure this out. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] [-- Attachment #2 --] <div dir="ltr"><div>FreeBSD 14.1-RELEASE.</div><div><br></div><div>I have this below situation with mail/rspamd:</div><div><br></div>root@gw:/usr/ports/mail/rspamd # /usr/local/etc/rc.d/rspamd onestart<br>Starting rspamd.<br>2024-09-13 11:03:43 #94946(main) <dea796>; main; main: rspamd 3.9.1 is loading configuration, build id: release<br>Segmentation fault (core dumped)<br>/usr/local/etc/rc.d/rspamd: WARNING: failed to start rspamd<div><br></div><div>There is nothing unusual I am doing. A simple make install clean. And I do not have any changes made to the configuration files.</div><div><br></div><div>And because the corefile does not give me anything useful with gdb, I decide to approach the troubleshooting differently:</div><div>root@gw:/usr/ports/mail/rspamd # make -DWITH_DEBUG DEBUG_FLAGS="-g -O0" install clean</div><div><br></div><div>And then:</div><div>root@gw:/usr/ports/mail/rspamd # /usr/local/etc/rc.d/rspamd onestart<br>Starting rspamd.<br>2024-09-13 11:15:44 #84352(main) <3061a2>; main; main: rspamd 3.9.1 is loading configuration, build id: release<br>root@gw:/usr/ports/mail/rspamd # /usr/local/etc/rc.d/rspamd status<br>rspamd is running as pid 84807.<br>root@gw:/usr/ports/mail/rspamd #<br></div><div><br></div><div>So, when I build with debugging enabled, it doesn't fail anymore and now I can't figure out why it core dumps!</div><div><br></div><div>My /etc/make.conf looks like below:</div><div>```</div><div>FETCH_ALL=yes<br>WITH_PKGNG="yes"<br>WITH_PKGNG="yes"<br>OPTIONS_UNSET+=DOCS<br>OPTIONS_UNSET+=NLS<br>OPTIONS_UNSET+=X11<br>OPTIONS_UNSET+=HAL<br>DEFAULT_VERSIONS+=python=3.11 python3=3.11 pgsql=15 mysql=114m ssl=openssl<br></div><div>```</div><div><br></div><div>Someone pls help me figure this out.</div><div><br></div><div><br></div><div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="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</div><div><span style="color:rgb(34,34,34)"> In </span><span style="color:rgb(34,34,34)">an Internet failure case, the #1 suspect is a constant: DNS.</span><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><span style="background-color:rgb(34,34,34);color:rgb(238,238,238);font-family:"Lucida Console",Consolas,"Courier New",monospace;font-size:13.6px">¯\_(ツ)_/¯</span><span style="font-size:12.8px"> :-)</span></div><div><span style="font-size:12.8px">[How to ask smart questions: </span><span style="font-size:12.8px"><a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</span></div></div></div></div></div></div>help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WOkue=PQawvrD5H=scCOkKWOB%2BexAL2zp6hgFXcuK5tcQ>
