Created attachment 255897 [details] Patch file Update to 3.11.0 ReleaseNotes: https://www.rspamd.com/announce/2024/12/16/rspamd-3.11.0.html
I noticed this update causes segfault as following. # uname -a FreeBSD eastasia.home.utahime.org 14.2-RELEASE FreeBSD 14.2-RELEASE releng/14.2-n269506-c8918d6c7412 GENERIC amd64 # rspamd --version Rspamd daemon version 3.11.0 CPU architecture x86_64; features: avx2, avx, sse2, sse3, ssse3, sse4.1, sse4.2, rdrand Hyperscan enabled: FALSE Jemalloc enabled: FALSE LuaJIT enabled: TRUE (LuaJIT version: LuaJIT 2.1.1731601260) ASAN enabled: FALSE BLAS enabled: FALSE Fasttext enabled: FALSE # service rspamd start Starting rspamd. 2024-12-17 03:11:25 #78900(main) <abea74>; main; main: rspamd 3.11.0 is loading configuration, build id: release Segmentation fault (core dumped) /usr/local/etc/rc.d/rspamd: WARNING: failed to start rspamd #
I Submitted bug report as https://github.com/rspamd/rspamd/issues/5258
That's odd, do you have a backtrace?
Created attachment 255905 [details] Backtrace with gdb (In reply to Vsevolod Stakhov from comment #3) Pleaes check attached file.
Thank you, I was able to reproduce.
After some investigations, I have found the problem: https://github.com/rspamd/rspamd/commit/ccb45df90df60fae36b9438cfb2b0088e590306b It no longer crashes with this patch even if built with no Hyperscan. In the meantime, I approve your suggested changes to the port - it works fine assuming that the patch is applied.
Created attachment 255927 [details] Updated patch file Add upstream patch to fix crash with segmentation fault.
Take.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=56c99895b0eb91f4198e503bd07e9cfdd363f049 commit 56c99895b0eb91f4198e503bd07e9cfdd363f049 Author: Yasuhiro Kimura <yasu@FreeBSD.org> AuthorDate: 2024-12-16 16:48:14 +0000 Commit: Yasuhiro Kimura <yasu@FreeBSD.org> CommitDate: 2024-12-18 06:37:56 +0000 mail/rspamd: Update to 3.11.0 ReleaseNotes: https://www.rspamd.com/announce/2024/12/16/rspamd-3.11.0.html PR: 283365 Approved by: vsevolod (maintainer) mail/rspamd/Makefile | 2 +- mail/rspamd/distinfo | 6 +++--- mail/rspamd/files/patch-src_rspamd.c (new) | 29 +++++++++++++++++++++++++++++ mail/rspamd/pkg-plist | 7 +++++-- 4 files changed, 38 insertions(+), 6 deletions(-)