Open centminmod opened 6 years ago
I'm getting this error using wrk package from Ubuntu 18.04 which is also 4.0.2-2 version, did you manage to make it work?
i just use make
these days works on my forked wrk branch
Experiencing this with Mint 19
I'm getting this error using wrk package from Ubuntu 18.04 which is also 4.0.2-2 version, did you manage to make it work?
me too
i occurs the runtime error,but i solved
Same issue on Debian 9:
Package: wrk
Version: 4.0.2-2~deb9u1
State: installed
Automatically installed: no
Priority: optional
Section: web
Maintainer: Robert Edmonds <edmonds@debian.org>
Architecture: amd64
Uncompressed Size: 116 k
Depends: libc6 (>= 2.14), libluajit-5.1-2, libssl1.1 (>= 1.1.0)
Description: HTTP benchmarking tool
wrk is a modern HTTP benchmarking tool capable of generating significant load when run on a single multi-core CPU. It combines a multithreaded design
with scalable event notification systems such as epoll and kqueue.
An optional LuaJIT script can perform HTTP request generation, response processing, and custom reporting.
Homepage: https://github.com/wg/wrk
ldd:
ldd /usr/bin/wrk
linux-vdso.so.1 (0x00007fff71b94000)
libluajit-5.1.so.2 => /usr/lib/x86_64-linux-gnu/libluajit-5.1.so.2 (0x00007f1b1ca8b000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1b1c86e000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1b1c56a000)
libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f1b1c0d0000)
libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f1b1be64000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1b1bac5000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1b1b8c1000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f1b1b6aa000)
/lib64/ld-linux-x86-64.so.2 (0x00007f1b1cf18000)
luajit:
aptitude show libluajit-5.1-2
Package: libluajit-5.1-2
Version: 2.1.0~beta3+dfsg-5.1~bpo9+1
State: installed
Automatically installed: no
Multi-Arch: same
Priority: optional
Section: interpreters
Maintainer: Enrico Tassi <gareuselesinge@debian.org>
Architecture: amd64
Uncompressed Size: 528 k
Depends: libluajit-5.1-common (= 2.1.0~beta3+dfsg-5.1~bpo9+1), libc6 (>= 2.14), libgcc1 (>= 1:3.3)
On Debian 9, the default libluajit-5.1-2
version is 2.0.4+dfsg-1+b1
. If you're running on backports luajit (2.1.0~beta3+dfsg-5.1~bpo9+1
), you need to recompile wrk
.
I'm getting the same on macos with clang-12 after stripping the binary:
$ file wrk
wrk: Mach-O 64-bit executable x86_64
$ otool -L wrk
wrk:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.60.1)
/opt/pkg/lib/libssl.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
/opt/pkg/lib/libcrypto.1.1.dylib (compatibility version 1.1.0, current version 1.1.0)
$ ./wrk -c 1 -t 1 http://localhost
unable to connect to localhost:http Connection refused
$ strip wrk
$ ./wrk -c 1 -t 1 http://localhost
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
Have no idea what's the real reason. I'm building wrk with static LuaJIT, and I don't have any LuaJIT libs in the system.
UDPATE: it is failing in https://github.com/wg/wrk/blob/master/src/script.c#L102:
$ nm wrk.orig | fgrep luaJIT_BC
0000000100080460 S _luaJIT_BC_wrk
$ nm wrk.stripped | fgrep luaJIT_BC
$
Looks interesting.
i occurs the runtime error,but i solved
- ensure the compile-make luajit is same with the ldd dependency luajit
- it occurs when the system LD_LIBRARY_PATH has a luajit,this luajit is not same with the compile luajit
this do solve my problem!
Still happening in Ubuntu 23.10 :(
@centminmod Thanks your fork is working on WSL https://github.com/centminmod/wrk/tree/centminmod
I've been receiving some messages, I don't know if this is normal
unable to record connect unable to record connect unable to record first byte metrics unable to record first byte metrics
Same problem here with this script.
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.04
Release: 23.04
Codename: lunar
I install Wrk via git clone on CentOS 7.4 64bit systems. Usually it works fine except for one system I get the following error when running
wrk
with parametersI installed using following steps on all systems that are working as well