Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mguinhos opened this issue Mar 5, 2022 · 13 comments
Closed

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

mguinhos opened this issue Mar 5, 2022 · 13 comments

Comments

@mguinhos
Copy link

mguinhos commented Mar 5, 2022

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
Copy link
Author

mguinhos commented Mar 5, 2022

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

@FrostyTheSouthernSnowman

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

@8dcc
Copy link

8dcc commented Apr 22, 2022

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

@FrostyTheSouthernSnowman

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

@8dcc
Copy link

8dcc commented Apr 22, 2022

I just installed the ISO.

@FrostyTheSouthernSnowman

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.

@FrostyTheSouthernSnowman

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

@FrostyTheSouthernSnowman

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

@FrostyTheSouthernSnowman

make distro failed

@mguinhos
Copy link
Author

mguinhos commented Apr 25, 2022

I am also not using the US layout.

My layout is BR ABNT2.

@8dcc
Copy link

8dcc commented Apr 25, 2022

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 🙂

@mintsuki
Copy link
Collaborator

This seems to be a duplicate of #104.

@mintsuki mintsuki closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2024
@mintsuki
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants