Hi Sebastien, * Sebastien Marie wrote: > Hi, > > Could you test the following patch in ports/lang/luajit ? > > I don't bump REVISION on purpose for testing. > > The patches are enough to make the "testsuite" to pass, but as it is just > running luajit -e "print('hello world')" I am unsure that it is enough. > > Some real testing would be welcome. > > To test: > $ cd /usr/ports/lang/luajit > $ patch -p0 < luajit.diff > $ make && make repackage > $ make reinstall > > If SIGILL still occurs, please report the egdb backtrace.
I followed your steps above and verified that the new luajit package is installed. Before: $ luajit51 -e "print('hello world')" Illegal instruction (core dumped) With your patch: $ luajit51 -e "print('hello world')" hello world However, neovim still fails $ egdb /usr/local/bin/nvim nvim.core Reading symbols from /usr/local/bin/nvim... (No debugging symbols found in /usr/local/bin/nvim) [New process 406494] Core was generated by `nvim'. Program terminated with signal SIGILL, Illegal instruction. #0 0x00000b287f38f152 in lj_BC_FUNCC () (gdb) bt #0 0x00000b287f38f152 in lj_BC_FUNCC () #1 0x00000b287f405f1a in luaL_openlibs () #2 0x00000b287f5dfd54 in nlua_init () #3 0x00000b287f4123b5 in main () (gdb) disassemble Dump of assembler code for function lj_BC_FUNCC: => 0x00000b287f38f152 <+0>: mov rbp,QWORD PTR [rdx-0x10] 0x00000b287f38f156 <+4>: shl rbp,0x11 0x00000b287f38f15a <+8>: shr rbp,0x11 0x00000b287f38f15e <+12>: mov r15,QWORD PTR [rbp+0x28] 0x00000b287f38f162 <+16>: mov rbp,QWORD PTR [rsp+0x10] 0x00000b287f38f167 <+21>: lea rax,[rdx+rax*8-0x8] 0x00000b287f38f16c <+26>: mov QWORD PTR [rbp+0x20],rdx 0x00000b287f38f170 <+30>: lea rcx,[rax+0xa0] 0x00000b287f38f177 <+37>: cmp rcx,QWORD PTR [rbp+0x30] 0x00000b287f38f17b <+41>: mov QWORD PTR [rbp+0x28],rax 0x00000b287f38f17f <+45>: mov rdi,rbp 0x00000b287f38f182 <+48>: ja 0xb287f38f39f <lj_vm_growstack_c> 0x00000b287f38f188 <+54>: mov DWORD PTR [r14-0xec8],0xfffffffe 0x00000b287f38f193 <+65>: call r15 0x00000b287f38f196 <+68>: mov rdx,QWORD PTR [rbp+0x20] 0x00000b287f38f19a <+72>: mov QWORD PTR [r14-0xe10],rbp 0x00000b287f38f1a1 <+79>: mov DWORD PTR [r14-0xec8],0xffffffff 0x00000b287f38f1ac <+90>: lea rcx,[rdx+rax*8] 0x00000b287f38f1b0 <+94>: neg rcx 0x00000b287f38f1b3 <+97>: add rcx,QWORD PTR [rbp+0x28] 0x00000b287f38f1b7 <+101>: mov rbx,QWORD PTR [rdx-0x8] 0x00000b287f38f1bb <+105>: jmp 0xb287f38f25c <lj_vm_returnc> End of assembler dump. Cheers Matthias