Hi,

Few questions on LuaJIT in relation to the ts_lua plugin.

1. We did get the following core dump in production. Does this fit the signature
for a LuaJIT memory exhaust?

Program terminated with signal 11, Segmentation fault.
#0  0x00002b67b4bfeacd in __run_exit_handlers () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install ATTats-7.1.4-126.el7.x86_64
(gdb) bt
#0  0x00002b67b4bfeacd in __run_exit_handlers () from /lib64/libc.so.6
#1  0x00002b67b4bfebb7 in exit () from /lib64/libc.so.6
#2  0x0000000000543d15 in lj_err_throw ()
#3  0x0000000000543f33 in lj_err_mem ()
#4  0x0000000000547e72 in lj_mem_realloc ()
#5  0x000000000055ffe5 in stack_init ()
#6  0x00000000005605b6 in lj_state_new ()
#7  0x000000000052788b in lua_newthread ()
#8  0x00002b67b7eb1cf3 in ts_lua_create_http_ctx 
(main_ctx=main_ctx@entry=0x8bdeab0,
    conf=conf@entry=0x2b692bd5f400) at experimental/ts_lua/ts_lua_util.c:421
#9  0x00002b67b7ea8941 in ts_lua_remap_plugin_init (rri=0x4f85e50, 
rh=0x2b69481b0520, ih=0x2b692bd5f400)
    at experimental/ts_lua/ts_lua.c:174
#10 TSRemapDoRemap (ih=0x2b692bd5f400, rh=0x2b69481b0520, rri=0x4f85e50) at 
experimental/ts_lua/ts_lua.c:237

2. I notice in 8.0.x forwards that the LuaJIT bundled with ATS was removed.
I saw that the LuaJIT that was bundled with ATS 7.1.x was 2.0.4 which only
supports 1GB of memory in Linux. If we use the system libluajit in conjunction
with ATS 8.0.x (under Ubuntu Linux 18.04 LTS this is 2.1.0-beta3) we should
now be able to use 2GB correct?

Thanks,
Peter

Reply via email to