Check for synchronization problems in the keyboard and console drivers.

Project:JNode Core
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description

I've had the console system lock up on me a number of times for no obvious
reason. Usually I'm just scrolling or switching virtual consoles. I've also
got this to happen by just holding down the Return key in the shell console.

Observations:

1) There doesn't appear to be anything (e.g. 'synchronized' methods) to
protect the data structures of TextScreenConsole or the text screen device
drivers from concurrent updates.

2) There doesn't seem to be any code to "roll" the text buffer when it fills
up; i.e. goes beyond 500 lines.

Am I missing something?

#1

I haven't observed console lockups recently. However, it might be worth "promoting" the two observations to issues in their own right. In particular, the first one (absence of synchronization in the console subsystem) is a time-bomb waiting to go off, IMO.

#1

Status:active» fixed

Nothing to do here I think ...

#2

Status:fixed» active

The issues makes a valid point regarding synchronization which hasn't been addressed yet. And the console still blocks occasionally. So I reopen the issue.

#3

Title:I've had the console system lock up on me » Check for synchronization problems in the keyboard and console drivers.
Category:bug report» task
Priority:critical» normal

This shouldn't be critical. Also changing the issue title and category to reflect what it is really about now.