Hi all,
So far we found 2 issues in the LuaJIT project :
- light userdata problem on 48-bit VA kernel. - Currently, Zhongwei is looking into it. The plan is to get a workable solution and push to upstream to discuss the problem. - wrk doesn't work with LuaJIT.(Unknown cause, reproduced on SoftIron) - Currently, we don't have bandwidth to look into that.
So for the wrk related issue, it would be very appreciated if anyone can take a look.
Steps to reproduce the problem :
- Build and install wrk
echo "===== Install libssl-dev which is needed by wrk" apt-get -y install libssl-dev echo "===== Download, build and install LuaJIT-2.1 which is also needed by wrk" wget -O /root/LuaJIT-2.1.zip https://github.com/LuaJIT/LuaJIT/archive/v2.1.zip # having problems with both on upstream and linaro branches unzip /root/LuaJIT-2.1.zip -d /root/ make PREFIX=/usr install -C /root/LuaJIT-2.1 ln -sf luajit-2.1.0-beta2 /usr/bin/luajit echo "===== Download wrk" wget -O /root/wrk-4.0.2.zip https://github.com/wg/wrk/archive/4.0.2.zip unzip /root/wrk-4.0.2.zip -d /root/ echo "===== Patch wrk to use luajit-2.1 rather than luajit-2.0" sed -i 's/luajit-2.0/luajit-2.1/g' /root/wrk-4.0.2/src/* echo "===== Build and install wrk" make WITH_LUAJIT=/usr WITH_OPENSSL=/usr -C /root/wrk-4.0.2 cp /root/wrk-4.0.2/wrk /usr/bin/
- run
wrk -d 1s -c 1 http://www.google.com
PANIC: unprotected error in call to Lua API
Regards, Zheng
Hi, Zheng,
I'll take a look at the issue of wrk.
On 14 October 2016 at 09:27, Zheng Xu zheng.xu@linaro.org wrote:
Hi all,
So far we found 2 issues in the LuaJIT project :
- light userdata problem on 48-bit VA kernel.
workable solution and push to upstream to discuss the problem.
- Currently, Zhongwei is looking into it. The plan is to get a
- wrk doesn't work with LuaJIT.(Unknown cause, reproduced on SoftIron)
- Currently, we don't have bandwidth to look into that.
So for the wrk related issue, it would be very appreciated if anyone can take a look.
Steps to reproduce the problem :
- Build and install wrk
echo "===== Install libssl-dev which is needed by wrk" apt-get -y install libssl-dev echo "===== Download, build and install LuaJIT-2.1 which is also needed by wrk" wget -O /root/LuaJIT-2.1.zip https://github.com/LuaJIT/ LuaJIT/archive/v2.1.zip # having problems with both on upstream and linaro branches unzip /root/LuaJIT-2.1.zip -d /root/ make PREFIX=/usr install -C /root/LuaJIT-2.1 ln -sf luajit-2.1.0-beta2 /usr/bin/luajit echo "===== Download wrk" wget -O /root/wrk-4.0.2.zip https://github.com/wg/wrk/archive/4.0.2.zip unzip /root/wrk-4.0.2.zip -d /root/ echo "===== Patch wrk to use luajit-2.1 rather than luajit-2.0" sed -i 's/luajit-2.0/luajit-2.1/g' /root/wrk-4.0.2/src/* echo "===== Build and install wrk" make WITH_LUAJIT=/usr WITH_OPENSSL=/usr -C /root/wrk-4.0.2 cp /root/wrk-4.0.2/wrk /usr/bin/
- run
wrk -d 1s -c 1 http://www.google.com
PANIC: unprotected error in call to Lua API
Regards, Zheng
luajit mailing list luajit@lists.linaro.org https://lists.linaro.org/mailman/listinfo/luajit
Hi, all, It turns out that the wrk crash is also caused by light user data issue on 48bit VA machine. The error is gone after applying "fix lightud type for 48-bit virtual address" patch ( https://www.freelists.org/post/luajit/fix-lightud-type-for-48bit-virtual-add... ).
On 20 October 2016 at 09:00, Zhongwei Yao zhongwei.yao@linaro.org wrote:
Hi, Zheng,
I'll take a look at the issue of wrk.
On 14 October 2016 at 09:27, Zheng Xu zheng.xu@linaro.org wrote:
Hi all,
So far we found 2 issues in the LuaJIT project :
- light userdata problem on 48-bit VA kernel.
workable solution and push to upstream to discuss the problem.
- Currently, Zhongwei is looking into it. The plan is to get a
- wrk doesn't work with LuaJIT.(Unknown cause, reproduced on SoftIron)
- Currently, we don't have bandwidth to look into that.
So for the wrk related issue, it would be very appreciated if anyone can take a look.
Steps to reproduce the problem :
- Build and install wrk
echo "===== Install libssl-dev which is needed by wrk" apt-get -y install libssl-dev echo "===== Download, build and install LuaJIT-2.1 which is also needed by wrk" wget -O /root/LuaJIT-2.1.zip https://github.com/LuaJIT/LuaJ IT/archive/v2.1.zip # having problems with both on upstream and linaro branches unzip /root/LuaJIT-2.1.zip -d /root/ make PREFIX=/usr install -C /root/LuaJIT-2.1 ln -sf luajit-2.1.0-beta2 /usr/bin/luajit echo "===== Download wrk" wget -O /root/wrk-4.0.2.zip https://github.com/wg/wrk/archive/4.0.2.zip unzip /root/wrk-4.0.2.zip -d /root/ echo "===== Patch wrk to use luajit-2.1 rather than luajit-2.0" sed -i 's/luajit-2.0/luajit-2.1/g' /root/wrk-4.0.2/src/* echo "===== Build and install wrk" make WITH_LUAJIT=/usr WITH_OPENSSL=/usr -C /root/wrk-4.0.2 cp /root/wrk-4.0.2/wrk /usr/bin/
- run
wrk -d 1s -c 1 http://www.google.com
PANIC: unprotected error in call to Lua API
Regards, Zheng
luajit mailing list luajit@lists.linaro.org https://lists.linaro.org/mailman/listinfo/luajit
-- Best regards, Zhongwei