Current LUA status for non-x86 is pretty horrible. Attached is a patch which fixes some of issues. Could someone test it? Testing on x86 should be enough. Could someone propose a test for LUA which could be run as part of all_functional_test if lua is compiled to avoid regressions in LUA.