Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[BUG]Segmentaion fault on ARM64 upon startup #2906
Describe the bug
Steps to Reproduce
Rspamd daemon version 1.9.3
It worked around in december now upgraded and crashes.
It's possible to build arm64 codes natively on CI with Drone Cloud - see https://cloud.drone.io - that should provide a suitable test environment with a modest amount of setup effort.
Also, there are some known issues to be aware of with Lua and LuaJIT on arm64, notable the use of a "lightuserdata" to store pointers. The Intel world has a 47-bit data type here, and arm64 has a 48-bit data type. There is way too much to wade through at LuaJIT/LuaJIT#49 but given that the relevant code change has Lua in it this is the first that comes to mind.
I have it running on an arm64 platform with libluajit-5.1 just upgraded to 1.9.4 with no changes to configs just checked out 1.9.4 and ran cmake in build folder. Have been running it for about a year on arm64 rk3328, if you only have 2gb ram clamav will use pretty much all the ram
Do you have worker-normal disabled as per self scan setup? I had lots of problems until I enabled it and it didn't use any more noticeable resources. I setup worker-controller worker-normal and worker-proxy in override.d not local.d so it uses non overridden config from main config files
I was hitting segfault as well but apparently I wasn't compiling it properly. Installing the dependencies in this specific order and versions (to avoid issues) works:
And it runs:
Also marked this package on hold, so
System: Debian GNU/Linux 9 (stretch) 4.4.179-rk3399