dsgame not running (bad light userdata pointer) on arm64
I have:
- [x] searched existing issues (http://github.com/darkstarproject/darkstar/issues/) to see if the issue I am posting has already been addressed or opened by another contributor
- [x] checked the commit log to see if my issue has been resolved since my server was last updated
Client Version (type /ver in game) :
n/a
Source Branch (master/stable) : master
Additional Information (Steps to reproduce/Expected behavior) :
Compiles without issues on a raspberry pi 3B+ running a 64bit kernel.
When running dsgame, it returns the following before it closes: [Status] do_init: begin server initialization... - [OK] [24/May] [17:41:00][Status] do_init: map_config is reading - [OK] [24/May] [17:41:00][Status] luautils::init:lua initializing...PANIC: unprotected error in call to Lua API (bad light userdata pointer)
no issues with dsconnect or dssearch.
Take a read through this comment posting about addressing limitations - https://github.com/LuaJIT/LuaJIT/pull/230#issuecomment-260205661
Further reading - https://gitlab.labs.nic.cz/knot/knot-resolver/issues/216
It is only going to be an issue on a few select platforms, ARM64 being one of them. I do not know what direction the project should take with regards to Lua and the affected platforms.
Technical reading for anyone who wants to take a look at this: https://github.com/ahupowerdns/luawrapper/pull/46/files https://github.com/ahupowerdns/luawrapper/pull/45/files https://github.com/ahupowerdns/luawrapper/pull/44/files http://lua-users.org/lists/lua-l/2011-06/msg00372.html