Hello. I'm trying to get luvit working on TP-LINK Archer C7 v2 (single-core ar71xx arch) running OpenWRT/LEDE. After cross-compiling&installing luajit, luv & luvi I compiled both lit and luvit and both appeared to be working until I tried to execute
https://github.com/luvit/luvit/blob/master/examples/http-client.lua and got segfault. OK, that could be expected, before digging into code I simply run luvit's tests. Test-suite freezes in tests/test-net.lua: "timeout client". Interesting, let's check it with strace:
root@LEDE:/home/tmp/luvit# strace -f luvi . -- tests/run.lua 2> tests_strace_deadlock_net_-_timeout_client.txt
(trace attached) What struck me is net.lua is not even reached, deadlock occurs already in tests/test-homepage.lua - "Chunked example with writeHead" + there's no attempt to read/write from/to client socket before it's removed from from libuv poll. Maybe some sort of exception, but nothing is printed. Could please someone help me/navigate me further? Thanks in advance, sam_
PS: noticed failed assertion only after it occured to me versions would be helpful.
root@LEDE:/home/tmp/luvit# lit --version
lit version: 3.5.4
luvi version: v2.7.6
root@LEDE:/home/tmp/luvit# luvit --version
luvit version: 2.14.2
luvi version: v2.7.6
libuv version: 1.15.0
Assertion failed: (stream->type == UV_TCP || stream->type == UV_NAMED_PIPE) && "uv_shutdown (unix) only supports uv_handle_t right now" (src/unix/stream.c: uv_shutdown: 1265)
Aborted
root@LEDE:/home/tmp/luvit# ls -l /usr/lib/libluv*
lrwxrwxrwx 1 root root 11 Nov 29 19:17 /usr/lib/libluv.so -> libluv.so.1
lrwxrwxrwx 1 root root 15 Nov 29 19:17 /usr/lib/libluv.so.1 -> libluv.so.1.9.1
-rw-r--r-- 1 root root 115800 Nov 29 19:04 /usr/lib/libluv.so.1.9.1
root@LEDE:/home/tmp/luvit#