Test fails during compilation on WSL
skyegecko opened this issue · 4 comments
Trying to compile under Ubuntu 20.04 in WSL causes test test_socket.test_unix_echo_2
to crash.
Full output of bootstrap -v
:
$ build/linux/bin/bootstrap test/test.lua -v
OS: Linux
Arch: 64
Compiler: GCC 9.3.0
CRT: libstdc++ 20200408
DEBUG: false
Started on Mon Jun 1 18:16:11 2020
test_fs.test_absolute ... Ok
test_fs.test_absolute_relative ... Ok
test_fs.test_add_remove_permissions ... Ok
test_fs.test_concat ... Ok
test_fs.test_copy_file ... Ok
test_fs.test_create_directories ... Ok
test_fs.test_create_directory ... Ok
test_fs.test_current_path ... Ok
test_fs.test_div ... Ok
test_fs.test_dll_path ... Ok
test_fs.test_eq ... Ok
test_fs.test_equal_extension ... Ok
test_fs.test_exe_path ... Ok
test_fs.test_exists ... Ok
test_fs.test_extension ... Ok
test_fs.test_filelock_1 ... Ok
test_fs.test_filelock_2 ... Ok
test_fs.test_filename ... Ok
test_fs.test_is_directory ... Ok
test_fs.test_is_regular_file ... Ok
test_fs.test_last_write_time ... Ok
test_fs.test_list_directory ... Ok
test_fs.test_parent_path ... Ok
test_fs.test_path ... Ok
test_fs.test_permissions ... Ok
test_fs.test_relative ... Ok
test_fs.test_remove ... Ok
test_fs.test_remove_all ... Ok
test_fs.test_remove_filename ... Ok
test_fs.test_rename ... Ok
test_fs.test_replace_extension ... Ok
test_fs.test_setup ... Ok
test_fs.test_stem ... Ok
test_fs.test_string ... Ok
test_fs.test_tostring ... Ok
test_fw.test_1 ... Ok
test_fw.test_2 ... Ok
test_lua.test_next ... Ok
test_lua.test_stack_overflow_1 ... Ok
test_lua.test_stack_overflow_2 ... Ok
test_plat.test_1 ... Ok
test_seri.test_err_1 ... Ok
test_seri.test_err_2 ... Ok
test_seri.test_err_3 ... Ok
test_seri.test_ok_1 ... Ok
test_seri.test_ref ... Ok
test_socket.test_bind ... Ok
test_socket.test_pair ... Ok
test_socket.test_tcp_accept ... Ok
test_socket.test_tcp_connect ... Ok
test_socket.test_tcp_echo_1 ... Ok
test_socket.test_tcp_echo_2 ... Ok
test_socket.test_tcp_echo_3 ... Ok
test_socket.test_unix_accept ... Ok
test_socket.test_unix_connect ... Ok
test_socket.test_unix_echo_1 ...
I don't see a core dump anywhere but I'm not sure if they're enabled by default in this distro.
Libc6 version is 2.31-0ubuntu9
.
Upon further testing, it seems somewhat non-deterministic. Any of test_unix_echo 1, 2 or 3 can fail. I'm not sure what's causing this.
I can't reproduce it. The error may be in other simpler modules instead of sockets, but now the test cannot specify the order. I will plan to improve test, but your problem, I have no idea yet.
wsl2 does not support unix domain socket, you can change your wsl to wsl1.
The reverse, actually. Compilation succeeds on WSL2, but not on WSL1.