Bug 283365 - mail/rspamd: Update to 3.11.0
Summary: mail/rspamd: Update to 3.11.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yasuhiro Kimura
URL: https://www.rspamd.com/announce/2024/...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-16 17:05 UTC by Yasuhiro Kimura
Modified: 2024-12-18 06:40 UTC (History)
1 user (show)

See Also:
yasu: maintainer-feedback+


Attachments
Patch file (2.77 KB, patch)
2024-12-16 17:05 UTC, Yasuhiro Kimura
no flags Details | Diff
Backtrace with gdb (3.99 KB, text/plain)
2024-12-16 23:05 UTC, Yasuhiro Kimura
no flags Details
Updated patch file (3.84 KB, patch)
2024-12-18 06:28 UTC, Yasuhiro Kimura
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yasuhiro Kimura freebsd_committer freebsd_triage 2024-12-16 17:05:43 UTC
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
Comment 1 Yasuhiro Kimura freebsd_committer freebsd_triage 2024-12-16 18:13:20 UTC
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
#
Comment 2 Yasuhiro Kimura freebsd_committer freebsd_triage 2024-12-16 21:36:41 UTC
I Submitted bug report as https://github.com/rspamd/rspamd/issues/5258
Comment 3 Vsevolod Stakhov freebsd_committer freebsd_triage 2024-12-16 21:46:22 UTC
That's odd, do you have a backtrace?
Comment 4 Yasuhiro Kimura freebsd_committer freebsd_triage 2024-12-16 23:05:11 UTC
Created attachment 255905 [details]
Backtrace with gdb

(In reply to Vsevolod Stakhov from comment #3)

Pleaes check attached file.
Comment 5 Vsevolod Stakhov freebsd_committer freebsd_triage 2024-12-17 08:31:25 UTC
Thank you, I was able to reproduce.
Comment 6 Vsevolod Stakhov freebsd_committer freebsd_triage 2024-12-17 13:40:11 UTC
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.
Comment 7 Yasuhiro Kimura freebsd_committer freebsd_triage 2024-12-18 06:28:37 UTC
Created attachment 255927 [details]
Updated patch file

Add upstream patch to fix crash with segmentation fault.
Comment 8 Yasuhiro Kimura freebsd_committer freebsd_triage 2024-12-18 06:34:50 UTC
Take.
Comment 9 commit-hook freebsd_committer freebsd_triage 2024-12-18 06:39:33 UTC
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(-)