-
-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Hyperscan not supported for ARM64 == Error logs for bad hs database? #4493
Comments
My understanding is that HyperScan will never work on non-x86 platform. Requests to merge ARM64 support were declined by hyperscan maintainer (as it's spearheaded by Intel): intel/hyperscan#197 (comment) intel/hyperscan#212 Potential solutions could be:
|
Rspamd official packages for arm64 are built with vectorscan. But the log files above are quite strange, as they should have more information about the fail reason... |
I'd suggest to enable debug for |
I've got some logs after enabling the Debug logging: That .hs Files have been freshly compiled right after i've started the rspamd container for a fresh initialisation. |
I have occasionally reproduced this issue locally. I'll try to fix it asap. |
Thank you so much! |
It seems that Rspamd do not delete those files for some reason. |
Maybe coexistent with the issue on ARM64 @vstakhov ? |
Hi again! I've recently tested the latest Repo Build of Rspamd 3.6 (Build Date is 04th July 2023) but i can still see Rspamd moaning about the bad HS Databases inside the /var/lib/rspamd/folder (see logs attached). It seems that your fixes did not achieved the desired effect i'm affraid :( (It's still on ARM64 though) |
Ok, I have debugged this issue and it seems to be clearly a vectorscan issue. It exports |
Hey @vstakhov! Thank you for debugging! Looking forward to see it working soon™️ Very appreciate it! |
Hello again! Thank you so much. I could test the latest build on your APT Repo (build date: 31-Jul-2023 17:35) and it works now as expected on ARM64. Just curios to ask: Did you have a ETA (or release window) for Rspamd 3.6? |
Thank you for Releasing 3.6 i think this issue can be closed then as it has been solved within the previously dev builds already. |
Prerequisites
Describe the bug
As mailcow is currently evolving for ARM64 as well we of course want to implement Rspamd for ARM64 as it is officially supported now.
Rspamd itself is starting normally and it seem to run fine until it is loading the Hyperscan files. For each and every .hs File which has been freshly compiled a few seconds ago Rspamd argues: "bad hs database".
Could it be that this issue is caused by the incompatibility of Hyperscan on ARM64 Devices?
Steps to Reproduce (within mailcow, configs are the same as on x86)
Do on ARM64 Server
Expected behavior
On first boot Rspamd will start compile the Regex files with Hyperscan (works, seems at least).
After a short while Rspamd moans:
Versions
CPU: Ampere® Altra® (Hetzner Cloud Server)
Additional Information
The settings within mailcow did not changed the Dockerfile (to build Rspamd) neither. As Rspamd is available for ARM64 on Debian 11 as well it should be fine in my opinion.
The text was updated successfully, but these errors were encountered: