Update libcoro to 6.06. Fix a bug with error propagation in Lua.
Fix a bug when Tarantool exceptions were intercepted by Lua in lua_pcall(), and converted to Lua errors. Let Tarantool exceptions pass freely through Lua, by using lua_call() instead of lua_pcall(). In case of any Lua error lua_call() aborts execution of the entire process. Register lua_atpanic that converts lua errors to Tarantool exception ER_PROC_LUA. Unwinding the stack in this manner didn't work properly with libcoro 6.0, which we were using. Update libcoro library to version 6.06 to fix this problem.
Showing
- mod/box/box_lua.m 9 additions, 3 deletionsmod/box/box_lua.m
- test/box/lua.result 2 additions, 0 deletionstest/box/lua.result
- test/box/lua.test 1 addition, 1 deletiontest/box/lua.test
- third_party/coro/coro.c 107 additions, 70 deletionsthird_party/coro/coro.c
- third_party/coro/coro.h 27 additions, 7 deletionsthird_party/coro/coro.h
Loading
Please register or sign in to comment