ykjit / yklua

yk-enabled Lua interpreter
4 stars 4 forks source link

Failing test - utf8.lua #54

Open Pavel-Durov opened 1 year ago

Pavel-Durov commented 1 year ago

Issue

Failing test utf8.lua

Reproduction steps:

$ YKD_SERIALISE_COMPILATION=1 ../try_repeat -v 1000  ../src/lua -v utf8.lua
Lua 5.4.4  Copyright (C) 1994-2022 Lua.org, PUC-Rio
testing UTF-8 library
ok
mremap_chunk(): invalid pointer
Aborted

Backtraces

$ YKD_SERIALISE_COMPILATION=1 gdb --batch -ex "r" -ex "bt" --args ../src/lua -v utf8.lua
Thread 16 "lua" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffee9f36c0 (LWP 3112743)]
__memcpy_evex_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:664
664     ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory.
#0  __memcpy_evex_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:664
#1  0x00007ffff7ae502a in read_aux (aux_buf=0x7fffe4000000, hdr=0x7ffff2913000, trace=0x3ec6020, err=0x7622378) at src/collect/perf/collect.c:290
#2  0x00007ffff7ae4e25 in handle_sample (aux_buf=0x7fffe4000000, hdr=0x7ffff2913000, trace=0x3ec6020, data_tmp=0x7fffe8000b70, err=0x7622378) at src/collect/perf/collect.c:224
#3  0x00007ffff7ae4bcc in poll_loop (perf_fd=4, stop_fd=3, mmap_hdr=0x7ffff2913000, aux=0x7fffe4000000, trace=0x3ec6020, err=0x7622378) at src/collect/perf/collect.c:347
#4  0x00007ffff7ae48b0 in collector_thread (arg=0x7fffffffbb68) at src/collect/perf/collect.c:474
#5  0x00007ffff78a7fd4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#6  0x00007ffff79285bc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Versions

YKLua - main/98807dcb129adae7f3a0f43c02061282b0a9d514 YK - master/44b8f950a9c013aba4b5f922418b32baae7594bf

Pavel-Durov commented 11 months ago

Error update

YKLUA - 01d6f56aca47a5f22154a33ab14c71a4b619b896 YK - c6a0b9ca333408693a0c904bd502b1cdf0dc8d3f

YKD_SERIALISE_COMPILATION=1 seems to be working fine.

YKD_SERIALISE_COMPILATION=1 try_repeat -v 1000  gdb -batch -ex r -ex bt -args ../src/lua -e"_U=true" utf8.lua 

Thread 24 "lua" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff1afe6c0 (LWP 1289715)]
__memcpy_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:664
664     ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory.
#0  __memcpy_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:664
#1  0x00007ffff7b122e5 in read_aux (aux_buf=0x7fffe8000000, hdr=0x7ffff243f000, trace=0x393f870, err=0x460db18) at src/perf/collect.c:296
#2  0x00007ffff7b12165 in handle_sample (aux_buf=0x7fffe8000000, hdr=0x7ffff243f000, trace=0x393f870, data_tmp=0x7fffed033440, err=0x460db18) at src/perf/collect.c:241
#3  0x00007ffff7b11f0c in poll_loop (perf_fd=5, stop_fd=3, mmap_hdr=0x7ffff243f000, aux=0x7fffe8000000, trace=0x393f870, err=0x460db18) at src/perf/collect.c:353
#4  0x00007ffff7b11bf0 in collector_thread (arg=0x7fffffffa1c8) at src/perf/collect.c:480
#5  0x00007ffff78a8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#6  0x00007ffff792861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81