vinix icon indicating copy to clipboard operation
vinix copied to clipboard

Vinix halts when pressed keys '(' and ')' in vim or nano

Open mguinhos opened this issue 2 years ago • 11 comments

Description

The system simply stops when pressed keys like '(', ')', '.', ',', TAB, BACKSPACE in nano or vim

Info

Emulator: qemu-system-x86_64 Host Memory: 8 GiB Guest Memory: 4 GiB Command: qemu-system-x86_64 -cdrom vinix.iso -m 4096

Reproduction

  • OPEN vim test.c
  • TYPE int main()
  • THE SYSTEM HALTS

Debug Info

0xffffffff800280f6: f4         hlt
0xffffffff800280f7: f4         jmp 0xffffffff800280f6
0xffffffff800280f8: eb fd      popq %rbp

mguinhos avatar Mar 05 '22 22:03 mguinhos

I think that is related with interrupt processing or something. or a buffer overflow.

mguinhos avatar Mar 05 '22 22:03 mguinhos

Try using make run, I used make run and didn't find any issues while using vim.

It happens to me when using the \ key. One think that might be worth mentioning is that my layout is not US, so the key should be \ in the US layout.

image

8dcc avatar Apr 22 '22 14:04 8dcc

\ also didn't give me any problems. I used the make run command. What command did you use, @r4v10l1?

I just installed the ISO.

8dcc avatar Apr 22 '22 14:04 8dcc

Ok. I used make to build it from source and then ran it with make run. I wonder if the ISO you downloaded was built using make distro which adds some extra features.

I will try to test it with the make distro command.

I downloaded the ISO file and ran the VM using make run and still couldn't find the issue.

make distro failed

I am also not using the US layout.

My layout is BR ABNT2.

mguinhos avatar Apr 25 '22 15:04 mguinhos

Maybe the error in my screenshot has something to do with trying to access a key in a position that does not exist in the vinix default layout?
For example if some layout has more keys or characters, the \ key might get 'shifted', and vinix tries to access it in a smaller array.

I don't know how vinix handles layouts or keys, and I don't even know if the error is related, just pure speculation 🙂

8dcc avatar Apr 25 '22 23:04 8dcc

This seems to be a duplicate of #104.

mintsuki avatar Apr 17 '24 19:04 mintsuki

In any case I cannot reproduce the nano panic by pressing ( or ).

mintsuki avatar Apr 17 '24 19:04 mintsuki