Skip site navigation (1)Skip section navigation (2)
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>

next in thread | raw e-mail | index | archive | help
--0000000000009d8aa80621fbe815
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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=3D"-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=3Dyes
WITH_PKGNG=3D"yes"
WITH_PKGNG=3D"yes"
OPTIONS_UNSET+=3DDOCS
OPTIONS_UNSET+=3DNLS
OPTIONS_UNSET+=3DX11
OPTIONS_UNSET+=3DHAL
DEFAULT_VERSIONS+=3Dpython=3D3.11 python3=3D3.11 pgsql=3D15 mysql=3D114m ss=
l=3Dopenssl
```

Someone pls help me figure this out.




--=20
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 '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-)
[How to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html]

--0000000000009d8aa80621fbe815
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"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/po=
rts/mail/rspamd # /usr/local/etc/rc.d/rspamd onestart<br>Starting rspamd.<b=
r>2024-09-13 11:03:43 #94946(main) &lt;dea796&gt;; main; main: rspamd 3.9.1=
 is loading configuration, build id: release<br>Segmentation fault (core du=
mped)<br>/usr/local/etc/rc.d/rspamd: WARNING: failed to start rspamd<div><b=
r></div><div>There is nothing unusual I am doing. A simple make install cle=
an. And I do not have any changes made to the configuration files.</div><di=
v><br></div><div>And because the corefile=C2=A0does not give me anything us=
eful with gdb, I decide to approach the troubleshooting differently:</div><=
div>root@gw:/usr/ports/mail/rspamd # make -DWITH_DEBUG DEBUG_FLAGS=3D&quot;=
-g -O0&quot; install clean</div><div><br></div><div>And then:</div><div>roo=
t@gw:/usr/ports/mail/rspamd # /usr/local/etc/rc.d/rspamd onestart<br>Starti=
ng rspamd.<br>2024-09-13 11:15:44 #84352(main) &lt;3061a2&gt;; main; main: =
rspamd 3.9.1 is loading configuration, build id: release<br>root@gw:/usr/po=
rts/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><di=
v>So, when I build with debugging enabled, it doesn&#39;t fail anymore and =
now I can&#39;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=3Dyes<br>=
WITH_PKGNG=3D&quot;yes&quot;<br>WITH_PKGNG=3D&quot;yes&quot;<br>OPTIONS_UNS=
ET+=3DDOCS<br>OPTIONS_UNSET+=3DNLS<br>OPTIONS_UNSET+=3DX11<br>OPTIONS_UNSET=
+=3DHAL<br>DEFAULT_VERSIONS+=3Dpython=3D3.11 python3=3D3.11 pgsql=3D15 mysq=
l=3D114m ssl=3Dopenssl<br></div><div>```</div><div><br></div><div>Someone p=
ls help me figure this out.</div><div><br></div><div><br></div><div><br cle=
ar=3D"all"><div><br></div><span class=3D"gmail_signature_prefix">-- </span>=
<br><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_sign=
ature"><div dir=3D"ltr"><div dir=3D"ltr"><div>Best regards,<br>Odhiambo WAS=
HINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223</div><div><span=
 style=3D"color:rgb(34,34,34)">=C2=A0In=C2=A0</span><span style=3D"color:rg=
b(34,34,34)">an Internet failure case, the #1 suspect is a constant: DNS.</=
span><br>&quot;<span style=3D"font-size:12.8px">Oh, the cruft.</span><span =
style=3D"font-size:12.8px">&quot;,=C2=A0</span><span style=3D"font-size:12.=
8px">egrep -v &#39;^$|^.*#&#39;=C2=A0</span><span style=3D"background-color=
:rgb(34,34,34);color:rgb(238,238,238);font-family:&quot;Lucida Console&quot=
;,Consolas,&quot;Courier New&quot;,monospace;font-size:13.6px">=C2=AF\_(=E3=
=83=84)_/=C2=AF</span><span style=3D"font-size:12.8px">=C2=A0:-)</span></di=
v><div><span style=3D"font-size:12.8px">[How to ask smart questions:=C2=A0<=
/span><span style=3D"font-size:12.8px"><a href=3D"http://www.catb.org/~esr/=
faqs/smart-questions.html" target=3D"_blank">http://www.catb.org/~esr/faqs/=
smart-questions.html</a>]</span></div></div></div></div></div></div>

--0000000000009d8aa80621fbe815--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WOkue=PQawvrD5H=scCOkKWOB%2BexAL2zp6hgFXcuK5tcQ>