Exceptions on arm7-a

  • From: Richard Halley <dick.halley@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 12 Dec 2014 11:40:07 +1100

I am trying to get Tarantool to work on a RK3288 armv7-a bases system and
running into problems with exception handling.  The response from the
Tarantool folk is shown below.  Is there any chance that this situation
could change in the near future?  The reason for asking is that I may have
to reconsider the platform I plan to use for a project involving
Tarantool/LuaJit.  Thanks - RedDevil.

We compile LuaJIT with -DLUAJIT_EXTERNAL_UNWIND=1 flag which is needed for
proper interoperability between LuaJIT and C++ exception (it enables
DWARF-compatible exceptions). Currently LuaJIT doesn't compile with this
option on non-x86 platforms. Please take a look on
http://luajit.org/extensions.html # Limited interoperability page and
lj_err.cc code. You can try to compile LuaJIT without enabling this flag
(see cmake/luajit.cmake), but in this case any thrown error from Tarantool
Lua API will disrupt C stack. Sad, but true.

I think only Mike Pall (LuaJIT author) can fully fix this problem in LuaJIT.
Anyway, our team will try to find some workaround if it is possible.

Other related posts: