Repository navigation
rspamd: fix crashes by disabling pcre2 jit - #181908
Conversation
nlewo
left a comment
There was a problem hiding this comment.
I'm wondering if we should ping the pcre2 maintainers (https://github.com/PCRE2Project/pcre2).
Otherwise, lgtm.
|
I'm always worried to see forking of a frequently used shared library. It has a chance to cause symbol collision: https://trofi.github.io/posts/248-how-do-shared-library-collisions-break.html I wonder if disabling |
jit was enabled before that just not for m1 macs. The linked PR added |
on x86-64 the impact should be also minimal because hyperscan is used for performance critical regexes.
|
Seems not to crash anymore. Performance impact on x86 should be minimal since hyperscan is used as well for regexes. |
Description of changes
Since #179444 we now have pcre2 jit enabled.
However doing so now crashes rspamd2 quite frequently.
This is serious because it can take down mail delivery.
I have seen a lot of crashes like this:
After applying my disabling the jit in pcre2, they were disappeared.
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes