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

Kernel Panic when using Backspace #27

Open
bararchy opened this issue Jan 5, 2017 · 1 comment
Open

Kernel Panic when using Backspace #27

bararchy opened this issue Jan 5, 2017 · 1 comment

Comments

@bararchy
Copy link
Contributor

bararchy commented Jan 5, 2017

When pressing the Backspace key for a long time and pressing "enter" a kernel panic is induced.

@SplittyDev
Copy link
Member

SplittyDev commented Jan 10, 2017

Verified. This happens because of a bug with freeing.

In this case, Heap.free is called by Heap.realloc, which is used to increase the capacity of the String::Buffer used within Keyboard.gets.

This is temporarily fixed by increasing the buffer size in Keyboard.gets and removing the reallocation in String::Buffer.to_s. I will open a separate issue for the Heap bug.

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

No branches or pull requests

2 participants