From nobody Fri Sep 13 08:20:47 2024 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X4nMV17QJz5WLXf for ; Fri, 13 Sep 2024 08:21:26 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-oo1-xc33.google.com (mail-oo1-xc33.google.com [IPv6:2607:f8b0:4864:20::c33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X4nMT35blz4cLK for ; Fri, 13 Sep 2024 08:21:25 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=d12r2Ceo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of odhiambo@gmail.com designates 2607:f8b0:4864:20::c33 as permitted sender) smtp.mailfrom=odhiambo@gmail.com Received: by mail-oo1-xc33.google.com with SMTP id 006d021491bc7-5de8a3f1cc6so945605eaf.1 for ; Fri, 13 Sep 2024 01:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726215683; x=1726820483; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Ka0LN2HqFzEe8Puto5IeLsue7Qk6zqb96O45y+zyHS8=; b=d12r2CeobC5THQAGLdg0g36ZymovL2FRzI23lOPx9N0jtMmmlwYXtJwH802tC0BKZv /NL18xFygtaKmJM3QYglzkm9PcInK/8m+zxSqMCvPKCqRw+bJrSLdHknM41211R20IFD TQLa6dCZlpsZQclx6YZG7kqC20zWWdjMtZf9vs1gWPuPfFQZGqJicnmmr3GWM0nkmISo kdavn07/RsJJw+kH8goa+ybKtevMgs6Y0Cc8Tm+YB6yxMLrBlOn0SB3Px6b+Pmg0rUNZ VtTHs4gzwGZLXbX/Mvc2+sHILkVQEnbY+GhtBiMGcQOQStjy16if6m8+yjykfzaGEbYi Oakw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726215683; x=1726820483; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Ka0LN2HqFzEe8Puto5IeLsue7Qk6zqb96O45y+zyHS8=; b=mfBaE8c/Ol6YseIVlao6niBy+k6iw18I7EdS+DJXefGXZIdgUSffdhyQKDiI6Qd6RW lcirEQp9+2GhVKRCncsB/erIdsoHKpH83POhVONFckc953ukRCMV9luz+Sa5dIuGnKP8 YoPFQF/Fu/W2Gem1I3ly8o+Bklp1865jpSK6ehmnycis1PeFe2RmYChec+/8k/96Gk8E mxFqoqk7Cvfgd+E0f2p/SKAGfhOvduZ1a2k928+32omKs39A5Yf1FClcCV07gitjLSxh itPwtDG9ddML7K7URYrHao0qimLMz2n5HP9mNkwJyXy4w15AtAi/17tjUCovlgNc3WHp pnAg== X-Gm-Message-State: AOJu0YzIKrH4f30bjF6iyyJNQ900zCatrcgTbgLxVxKTtFhD0KkdMrrC XvDjjNpNlK1vL+hihiK1KCwoct7kfKbrYYMWtNzWhf0x5HLIFcAJ3acNkxiZOBHpst0yub8ZrMf ct+pA/rjgUNOxazIjDE4A6tvh7oN4iZJcEmMNKQ== X-Google-Smtp-Source: AGHT+IE7itDjnPgAoQTK1KNMB1LR1lh3+Up/8NoL0ognXtLZ4KeV6Y9NPrE7UC7+cpLdN/7SVnR7XJocCN7eTMJ0s9M= X-Received: by 2002:a4a:e544:0:b0:5d5:b51d:e61b with SMTP id 006d021491bc7-5e1e3a798dbmr5442870eaf.0.1726215683408; Fri, 13 Sep 2024 01:21:23 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 From: Odhiambo Washington Date: Fri, 13 Sep 2024 11:20:47 +0300 Message-ID: Subject: Debugging a port - mail/rspamd woes! To: questions Content-Type: multipart/alternative; boundary="0000000000009d8aa80621fbe815" X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.31 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_SPAM_SHORT(0.69)[0.685]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_EXCLAIM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MISSING_XM_UA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::c33:from] X-Rspamd-Queue-Id: 4X4nMT35blz4cLK --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) ; 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
FreeBSD 14.1-RELEASE.

I have= this below situation with mail/rspamd:

root@gw:/usr/po= rts/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 du= mped)
/usr/local/etc/rc.d/rspamd: WARNING: failed to start rspamd
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.

And because the corefile=C2=A0does not give me anything us= eful with gdb, I decide to approach the troubleshooting differently:
<= div>root@gw:/usr/ports/mail/rspamd # make -DWITH_DEBUG DEBUG_FLAGS=3D"= -g -O0" install clean

And then:
roo= t@gw:/usr/ports/mail/rspamd # /usr/local/etc/rc.d/rspamd onestart
Starti= ng 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/po= rts/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_UNS= ET+=3DDOCS
OPTIONS_UNSET+=3DNLS
OPTIONS_UNSET+=3DX11
OPTIONS_UNSET= +=3DHAL
DEFAULT_VERSIONS+=3Dpython=3D3.11 python3=3D3.11 pgsql=3D15 mysq= l=3D114m ssl=3Dopenssl
```

Someone p= ls help me figure this out.




-- =
Best regards,
Odhiambo WAS= HINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet failure case, the #1 suspect is a constant: DNS.
"Oh, the cruft.",=C2=A0egrep -v '^$|^.*#'=C2=A0=C2=AF\_(=E3= =83=84)_/=C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0<= /span>http://www.catb.org/~esr/faqs/= smart-questions.html]
--0000000000009d8aa80621fbe815--