]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/rgw_lua_utils: return error using luaL_error()
authorKefu Chai <kchai@redhat.com>
Tue, 8 Jun 2021 04:30:37 +0000 (12:30 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 8 Jun 2021 04:44:35 +0000 (12:44 +0800)
commit9b2e0b6ac2986489fea4d40a6ee7be21d21111a6
tree1796ec4b748cdd31a2a57b858aac7c9636d1f008
parent7fc07dd728b4ee9f83f0e293a5a5ee32020fc7cd
rgw/rgw_lua_utils: return error using luaL_error()

it's found on aarch64, the exception is not caught even if we do
catch exactly the same type of thrown exception, and the uncaught
exception ends up with a std::terminate() call. it could be the ABI
mismatch in aarch64, so the C++ runtime failed to find the catch block.

in this change, luaL_error() is used to populate the error to the
caller instead to workaround this issue.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/rgw/rgw_lua_utils.h