Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 810337 - mail-filter/rspamd-3.0 segmentation faults with USE=jemalloc
Summary: mail-filter/rspamd-3.0 segmentation faults with USE=jemalloc
Status: IN_PROGRESS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Petr Vaněk
URL: https://github.com/rspamd/rspamd/issu...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 915000
  Show dependency tree
 
Reported: 2021-08-25 14:52 UTC by Thomas Stein
Modified: 2024-02-06 05:16 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Stein 2021-08-25 14:52:52 UTC
Hi Devs.

rspamd 3.0 segmentation faults a lot:

2021-08-25 16:11:14 #24215(normal) <e29b8e>; task; rspamd_worker_body_handler: accepted connection from 127.0.0.1 port 54686, task ptr: 
0000556D102CC730
2021-08-25 16:11:14 #24215(normal) <e29b8e>; task; rspamd_message_parse: mailbox input detected, enable workaround
2021-08-25 16:11:14 #24215(normal) <e29b8e>; task; rspamd_message_parse: loaded message; id: <E5-65ru89gv-nr243/2/77-00f9k02f@artegic.ne
t>; queue-id: <1mItcY-0006ac-BK>; size: 39008; checksum: <92e43c4f8d3dd86ae8b37ce131a83ce1>
2021-08-25 16:11:14 #24215(normal) rspamd_crash_sig_handler: caught fatal signal 11(Segmentation fault), pid: 24215, trace: 
2021-08-25 16:11:14 #24215(normal) rspamd_crash_sig_handler: please see Rspamd FAQ to learn how to dump core files and how to fill a bug
 report
2021-08-25 16:11:14 #24211(main) <f4a165>; main; rspamd_check_termination_clause: normal process 24215 terminated abnormally with exit c
ode 0 by signal: Segmentation fault but NOT created core file (throttled=no); core file limits: 0 current, -1 max
2021-08-25 16:11:14 #24211(main) <f4a165>; main; rspamd_cld_handler: respawn process normal in lieu of terminated process with pid 24215
2021-08-25 16:11:16 #24211(main) <f4a165>; main; rspamd_fork_worker: prepare to fork process normal (1); listen on: localhost:11333
202

Downgrading to 2.7 solves the issue immediately. Tried to use lua instead of luajit but to no avail.



Reproducible: Always




meine-oma ~ # emerge --info
Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1, gcc-11.2.0, glibc-2.33-r1, 5.10.60 x86_64)
=================================================================
System uname: Linux-5.10.60-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-glibc2.33
KiB Mem:     8155140 total,   4713808 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Tue, 24 Aug 2021 10:00:01 +0000
Head commit of repository gentoo: e38c49484f5b6433efaab22d71ad6700c69d3ba0
sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p5) 2.36.1
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0::gentoo
dev-lang/python:          2.7.18_p11::gentoo, 3.6.14::gentoo, 3.7.11::gentoo, 3.8.11::gentoo, 3.9.6_p1::gentoo
dev-lang/rust:            1.52.1::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.15.1-r2::gentoo, 1.16.3-r1::gentoo
sys-devel/binutils:       2.36.1-r2::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 bzip2 cli crypt dri fortran gdbm iconv libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="session session_cookie session_crypto session_dbd proxy_wstunnel proxy_html http2 cache_disk remoteip proxy_fcgi socache_shmcb unixd authn_core authz_core actions alias auth_form authn_dbd auth_digest auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy_scgi asis cern_meta charset_lite dbd dumpio ident imagemap log_forensic reqtimeout substitute version slotmem_shm xml2enc" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

meine-o
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-25 16:02:10 UTC
Hi!

I guess we need to do this:
>2021-08-25 16:11:14 #24215(normal) rspamd_crash_sig_handler: caught fatal signal >11(Segmentation fault), pid: 24215, trace: 
>2021-08-25 16:11:14 #24215(normal) rspamd_crash_sig_handler: please see Rspamd >FAQ to learn how to dump core files and how to fill a bug
> report

https://rspamd.com/doc/faq.html#how-to-figure-out-why-rspamd-process-crashed

I suspect you'll need this too: https://wiki.gentoo.org/wiki/Debugging.
Comment 2 Marcin Mirosław 2021-08-30 10:53:43 UTC
The same bug, segfault on every scan from cli and from exim.


Core was generated by `rspamd: controller process (*:11334)                                          '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  atomic_load_p (mo=atomic_memory_order_relaxed, a=0x6df68) at /var/tmp/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/include/jemalloc/internal/atomic_gcc_atomic.h:31
31      /var/tmp/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/include/jemalloc/internal/atomic_gcc_atomic.h: No such file or directory.
(gdb) bt
#0  atomic_load_p (mo=atomic_memory_order_relaxed, a=0x6df68) at /var/tmp/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/include/jemalloc/internal/atomic_gcc_atomic.h:31
#1  rtree_leaf_elm_bits_read (dependent=true, elm=0x6df68, rtree=<optimized out>, tsdn=0x7fed4a0246b8) at /var/tmp/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/include/jemalloc/internal/rtree.h:175
#2  rtree_leaf_elm_extent_read (dependent=true, elm=0x6df68, rtree=<optimized out>, tsdn=0x7fed4a0246b8)
    at /var/tmp/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/include/jemalloc/internal/rtree.h:214
#3  rtree_extent_read (dependent=true, key=<optimized out>, rtree_ctx=<optimized out>, rtree=<optimized out>, tsdn=0x7fed4a0246b8)
    at /var/tmp/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/include/jemalloc/internal/rtree.h:423
#4  iealloc (ptr=<optimized out>, tsdn=0x7fed4a0246b8) at /var/tmp/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/include/jemalloc/internal/jemalloc_internal_inlines_b.h:83
#5  je_tcache_bin_flush_small (tsd=tsd@entry=0x7fed4a0246b8, tcache=tcache@entry=0x7fed4a0248a8, tbin=0x7fed4a024900, binind=<optimized out>, rem=<optimized out>)
    at /var/tmp/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/src/tcache.c:152
#6  0x00007fed4d540c19 in tcache_dalloc_small (slow_path=false, binind=<optimized out>, ptr=0x558ecdbedf20, tcache=<optimized out>, tsd=<optimized out>)
    at /var/tmp/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/include/jemalloc/internal/tcache_inlines.h:179
#7  arena_sdalloc (slow_path=false, alloc_ctx=0x0, tcache=<optimized out>, size=<optimized out>, ptr=0x558ecdbedf20, tsdn=<optimized out>)
    at /var/tmp/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/include/jemalloc/internal/arena_inlines_b.h:420
#8  isdalloct (slow_path=false, alloc_ctx=0x0, tcache=<optimized out>, size=<optimized out>, ptr=0x558ecdbedf20, tsdn=<optimized out>)
    at /var/tmp/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/include/jemalloc/internal/jemalloc_internal_inlines_c.h:131
#9  isfree (slow_path=false, tcache=<optimized out>, usize=<optimized out>, ptr=0x558ecdbedf20, tsd=<optimized out>) at /var/tmp/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/src/jemalloc.c:2644
#10 je_sdallocx_default (ptr=0x558ecdbedf20, size=48, flags=flags@entry=0) at /var/tmp/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/src/jemalloc.c:3583
#11 0x00007fed4d5416d5 in je_je_sdallocx_noflags (ptr=<optimized out>, size=<optimized out>) at /var/tmp/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/src/jemalloc.c:3611
#12 0x00007fed4d56fcae in operator delete (ptr=<optimized out>, size=<optimized out>) at /var/tmp/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/src/jemalloc_cpp.cpp:131
#13 0x00007fed4e5aface in rspamd::css::css_tokeniser::next_token() () from /usr/lib/rspamd/librspamd-server.so
#14 0x00007fed4e5b75be in rspamd::css::css_parser::component_value_consumer(std::unique_ptr<rspamd::css::css_consumed_block, std::default_delete<rspamd::css::css_consumed_block> >&) ()
   from /usr/lib/rspamd/librspamd-server.so
#15 0x00007fed4e5bad58 in rspamd::css::css_parser::consume_css_rule(std::basic_string_view<char, std::char_traits<char> > const&) () from /usr/lib/rspamd/librspamd-server.so
#16 0x00007fed4e5bae77 in rspamd::css::get_rules_parser_functor(memory_pool_s*, std::basic_string_view<char, std::char_traits<char> > const&) () from /usr/lib/rspamd/librspamd-server.so
#17 0x00007fed4e5bb17a in rspamd::css::parse_css_declaration(memory_pool_s*, std::basic_string_view<char, std::char_traits<char> > const&) () from /usr/lib/rspamd/librspamd-server.so
#18 0x00007fed4e57a47d in rspamd::html::html_process_input(memory_pool_s*, _GByteArray*, _GList**, kh_rspamd_url_hash_s*, _GPtrArray*, bool)::{lambda()#2}::operator()() const ()
   from /usr/lib/rspamd/librspamd-server.so
#19 0x00007fed4e57b409 in rspamd::html::html_process_input(memory_pool_s*, _GByteArray*, _GList**, kh_rspamd_url_hash_s*, _GPtrArray*, bool) () from /usr/lib/rspamd/librspamd-server.so
#20 0x00007fed4e5d7485 in rspamd_message_process () from /usr/lib/rspamd/librspamd-server.so
#21 0x00007fed4e54e54e in rspamd_task_process () from /usr/lib/rspamd/librspamd-server.so
#22 0x00007fed4e54e433 in rspamd_task_process () from /usr/lib/rspamd/librspamd-server.so
#23 0x00007fed4e54e433 in rspamd_task_process () from /usr/lib/rspamd/librspamd-server.so
#24 0x00007fed4e54e433 in rspamd_task_process () from /usr/lib/rspamd/librspamd-server.so
#25 0x0000558ecc2a0dbd in rspamd_controller_handle_scan ()
#26 0x00007fed4e564b78 in rspamd_http_router_finish_handler () from /usr/lib/rspamd/librspamd-server.so
#27 0x00007fed4e562d29 in rspamd_http_on_message_complete () from /usr/lib/rspamd/librspamd-server.so
#28 0x00007fed4e657fcf in http_parser_execute () from /usr/lib/rspamd/librspamd-server.so
#29 0x00007fed4e563974 in rspamd_http_event_handler () from /usr/lib/rspamd/librspamd-server.so
#30 0x00007fed4df3ecb5 in ev_invoke_pending () from /usr/lib/rspamd/librspamd-ev.so
#31 0x00007fed4df42a16 in ev_run () from /usr/lib/rspamd/librspamd-ev.so
#32 0x0000558ecc29e6f0 in start_controller_worker ()
#33 0x00007fed4e5589b1 in rspamd_fork_worker () from /usr/lib/rspamd/librspamd-server.so
#34 0x0000558ecc2a8caa in spawn_worker_type ()
#35 0x0000558ecc2a8d8b in spawn_workers ()
#36 0x0000558ecc29bd02 in main ()
(gdb)

rspamd compiled with USE="-jemalloc" works.
Comment 3 Thomas Stein 2021-08-30 11:01:35 UTC
Ok. I'm trying with -jemalloc....
Comment 4 Thomas Stein 2021-08-30 11:10:09 UTC
I opened https://github.com/rspamd/rspamd/issues/3871 because I figured rspamd itself has to be fixed too.
Comment 5 Kim B. Sindalsen 2021-09-03 15:17:51 UTC
mail ~ # emerge -pv rspamd

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] mail-filter/rspamd-3.0-r2::gentoo  USE="jemalloc pcre2 -blas -jit -test" CPU_FLAGS_X86="ssse3" LUA_SINGLE_TARGET="lua5-1 -lua5-3 -luajit" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB


Compiled with LDFLAGS="-Wl,-O1" ie. NOT -Wl,--as-needed seems to work.
https://github.com/rspamd/rspamd/issues/3871#issuecomment-912308477
(no crashes here for 2 hours/20 mails).

Not sure if it's a fix - or simply a temporary workaround around a bigger underlying issue.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-10 14:58:00 UTC
For now, what do we think about masking USE=jemalloc for 3.0?
Comment 7 Petr Vaněk gentoo-dev 2021-09-10 16:09:05 UTC
How about this https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed#Properly_filtering_--as-needed ? This works for me:

pkg_setup() {
	use jemalloc && append-ldflags $(no-as-needed)
}

This is better for users, in my opinion, because they will not be forced to change their configuration if they have jemalloc support enabled.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-10 16:59:45 UTC
(In reply to Petr Vaněk from comment #7)
> How about this
> https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-
> needed#Properly_filtering_--as-needed ? This works for me:
> 
> pkg_setup() {
> 	use jemalloc && append-ldflags $(no-as-needed)
> }
> 
> This is better for users, in my opinion, because they will not be forced to
> change their configuration if they have jemalloc support enabled.

I don't love it but that's not your fault -- it's just because the bug is a bit scary. Slightly concerned that the bug can be triggered by use of LTO(?) without as-needed though (and are there any other combinations)?

If the configuration file at runtime mentions jemalloc, yeah, we can't really just mask it :|
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-10 17:00:21 UTC
(In reply to Sam James from comment #8)
> (In reply to Petr Vaněk from comment #7)
> > How about this
> > https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-
> > needed#Properly_filtering_--as-needed ? This works for me:
> > 
> > pkg_setup() {
> > 	use jemalloc && append-ldflags $(no-as-needed)
> > }
> > 
> > This is better for users, in my opinion, because they will not be forced to
> > change their configuration if they have jemalloc support enabled.
> 
> I don't love it but that's not your fault -- it's just because the bug is a
> bit scary. Slightly concerned that the bug can be triggered by use of LTO(?)
> without as-needed though (and are there any other combinations)?
> 

We could do what you said (in src_configure though; no need to do this for binpkgs) + add a warning on general use of jemalloc for now in pkg_postinst?

"If you experience crashes, ..."
Comment 10 Petr Vaněk gentoo-dev 2021-09-12 09:03:32 UTC
I have changed my mind, I believe that suggested masking of USE=jemalloc for 3.0 is better solution. Just to clarify, users cannot configure jemalloc at runtime it is build time configuration.
Comment 11 Larry the Git Cow gentoo-dev 2021-09-12 22:44:44 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d7a0aef8dc2b882d5d46b6cb06af6653c4433cc

commit 7d7a0aef8dc2b882d5d46b6cb06af6653c4433cc
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2021-09-12 08:42:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-09-12 22:44:16 +0000

    profiles/base: mask USE=jemalloc for ~mail-filter/rspamd-3.0
    
    rspamd-3.0 segfaults a lot with jemalloc enabled. The issue is caused by
    -Wl,--as-needed linker flag.
    
    Bug: https://bugs.gentoo.org/810337
    See-also: https://github.com/rspamd/rspamd/issues/3871
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Closes: https://github.com/gentoo/gentoo/pull/22274
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/base/package.use.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 12 Larry the Git Cow gentoo-dev 2021-11-07 23:29:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6fe959ddc3183e70507510c2ee801902bc4f4d9

commit e6fe959ddc3183e70507510c2ee801902bc4f4d9
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2021-11-07 21:38:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-07 23:28:39 +0000

    profiles/base: mask USE=jemalloc for ~mail-filter/rspamd-3.1
    
    The jemalloc issue affects rspamd-3.1 as well.
    
    Bug: https://bugs.gentoo.org/810337
    See-also: https://github.com/rspamd/rspamd/issues/3871
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Closes: https://github.com/gentoo/gentoo/pull/22860
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/base/package.use.mask | 1 +
 1 file changed, 1 insertion(+)
Comment 13 Larry the Git Cow gentoo-dev 2022-04-12 08:20:29 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=593968a8ab8ebd056c994d8e580845a4e2ab96f2

commit 593968a8ab8ebd056c994d8e580845a4e2ab96f2
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2022-04-07 15:39:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-12 08:20:13 +0000

    profiles/base: change USE=jemalloc to >=mail-filter/rspamd-3.0
    
    The jemalloc issue affects rspamd-3.2 as well. This mask seems to be
    better than adding extra line for every new version.
    
    Bug: https://bugs.gentoo.org/810337
    Upstream-issue: https://github.com/rspamd/rspamd/issues/3871
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/base/package.use.mask | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Comment 14 Larry the Git Cow gentoo-dev 2022-10-07 11:28:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a424df747d23d5151e70495fce5e97521479e90

commit 4a424df747d23d5151e70495fce5e97521479e90
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2022-10-04 08:55:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-07 11:28:35 +0000

    mail-filter/rspamd: add 3.3
    
    This version contains a fix for Clang-16 (error: implicit declaration of
    function ZSTD_resetDStream) reported in bug 870448. It still suffers
    with a bug 810337.
    
    Bug: https://bugs.gentoo.org/810337
    Closes: https://bugs.gentoo.org/870448
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Signed-off-by: Sam James <sam@gentoo.org>

 mail-filter/rspamd/Manifest          |   1 +
 mail-filter/rspamd/rspamd-3.3.ebuild | 135 +++++++++++++++++++++++++++++++++++
 2 files changed, 136 insertions(+)
Comment 15 Larry the Git Cow gentoo-dev 2022-11-06 06:17:38 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5272058e6d1b40f22550ce775c6cc75b7dfe9c2a

commit 5272058e6d1b40f22550ce775c6cc75b7dfe9c2a
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2022-11-02 12:25:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-06 06:16:51 +0000

    mail-filter/rspamd: add 3.4
    
    This version still suffers with jemalloc issue, see bug 810337.
    
    Bug: https://bugs.gentoo.org/810337
    Closes: https://bugs.gentoo.org/879575
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Closes: https://github.com/gentoo/gentoo/pull/28150
    Signed-off-by: Sam James <sam@gentoo.org>

 mail-filter/rspamd/Manifest          |   1 +
 mail-filter/rspamd/rspamd-3.4.ebuild | 136 +++++++++++++++++++++++++++++++++++
 2 files changed, 137 insertions(+)