Hi all,

So far we found 2 issues in the LuaJIT project :
So for the wrk related issue, it would be very appreciated if anyone can take a look.

Steps to reproduce the problem :
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/
wrk -d 1s -c 1 http://www.google.com
PANIC: unprotected error in call to Lua API

Regards,
Zheng