apisix icon indicating copy to clipboard operation
apisix copied to clipboard

bug:prometheus plugin crash in ARM64 environment

Open idbeta opened this issue 6 years ago • 5 comments

Issue description

[error] 11324#11324: 1 [lua] plugin.lua:66: load_plugin(): failed to load plugin [prometheus] err: bad light userdata pointer, context: init_worker_by_lua

Environment

  • apisix version (cmd: apisix version): 1.5
  • OS: centos7.6

idbeta avatar Sep 03 '20 10:09 idbeta

Issue description

[error] 11324#11324: 1 [lua] plugin.lua:66: load_plugin(): failed to load plugin [prometheus] err: bad light userdata pointer, context: init_worker_by_lua

Environment

  • apisix version (cmd: apisix version): 1.5
  • OS: centos7.6

Hi @idbeta, please refer to https://forum.openresty.us/d/6488-euleros-aarch64lua-bad-light-userdata-pointer , which indicates this had been fixed in https://github.com/LuaJIT/LuaJIT/commit/e9af1abec542e6f9851ff2368e7f196b6382a44c , you could try to upgrade openresty to 1.19.3.1rc0 or use the latest LuaJit.

imjoey avatar Dec 08 '20 08:12 imjoey

Hi @idbeta, please refer to https://forum.openresty.us/d/6488-euleros-aarch64lua-bad-light-userdata-pointer , which indicates this had been fixed in LuaJIT/LuaJIT@e9af1ab , you could try to upgrade openresty to 1.19.3.1rc0 or use the latest LuaJit.

ok, thanks for reminding, I will try.

idbeta avatar Dec 08 '20 09:12 idbeta

Feel free to reopen it if the problem still exists.

spacewander avatar Jan 06 '21 14:01 spacewander

Hi @idbeta, please refer to https://forum.openresty.us/d/6488-euleros-aarch64lua-bad-light-userdata-pointer , which indicates this had been fixed in LuaJIT/LuaJIT@e9af1ab , you could try to upgrade openresty to 1.19.3.1rc0 or use the latest LuaJit.

ok, thanks for reminding, I will try.

Any response?

moonming avatar Jan 07 '21 00:01 moonming

Issue description

[error] 11324#11324: 1 [lua] plugin.lua:66: load_plugin(): failed to load plugin [prometheus] err: bad light userdata pointer, context: init_worker_by_lua

Environment

  • apisix version (cmd: apisix version): 1.5
  • OS: centos7.6

Hi @idbeta, please refer to https://forum.openresty.us/d/6488-euleros-aarch64lua-bad-light-userdata-pointer , which indicates this had been fixed in LuaJIT/LuaJIT@e9af1ab , you could try to upgrade openresty to 1.19.3.1rc0 or use the latest LuaJit.

I verified it with openresty 1.19.3.1 today, there is no problem anymore.

idbeta avatar Jan 11 '21 05:01 idbeta