Debugging a port - mail/rspamd woes!
- Reply: Weldon Godfrey : "Re: Debugging a port - mail/rspamd woes!"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Sep 2024 08:20:47 UTC
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]