Subject: xsrc/9581: keyboard hang under X window, and system panic
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Florence.Henry@obspm.fr>
List: netbsd-bugs
Date: 03/08/2000 14:33:38
>Number:         9581
>Category:       xsrc
>Synopsis:       keyboard hang under X window, and system panic
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    xsrc-manager (NetBSD X11 bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar  8 14:33:01 2000
>Last-Modified:
>Originator:     Florence Henry
>Organization:
None
>Release:        NetBSD-1.4.2_ALPHA/i386
>Environment:
NetBSD pimousse 1.4.2_ALPHA NetBSD 1.4.2_ALPHA (PCVT142A) #0: Mon 28 10:34:15 CET 2000     root@pimousse:/usr/src/sys-1.4.2ALPHA/arch/i386/compile/PCVT142A  i386


>Description:
When working with X, sometimes, a key gets stuck: On the keyboard, it's 
released, but for the system, it's pressed.
The problem does not come from the keyboard, I checked with another 
one, and got the same result. Windows98 and Linux never had any 
problem of this kind with the same hardware.

On NetBSD 1.4.2ALPHA, it arises with both PCVT and WSCONS console drivers
On NetBSD 1.4.1, it arises with WSCONS. the X server crashes at launch with PCVT
On NetBSD 1.3.3, it arises with PCCONS, and everything is fine with PCVT

After the probem occurs, the keyboard can be completely hang (even a 
ctrl-alt-del does nothing), or hitting a key can bring X to a normal
behavior, it depends how lucky I am on that day.

Quitting the X server with WSCONS on 1.4.2ALPHA panics the kernel, even
if we do not have any problem with the keyboard at that time (Tell me 
if I should do another send-pr in the kern category)
>How-To-Repeat:
With PCVT and 1.4.2ALPHA, it's very easy to trigger the problem, but 
it's very hard to get exactly the same behavior: sometimes it is 
recoverable, sometimes it is not. Sometimes the kernel panics, 
sometimes not.

The video board is a Matrox MGA MG200 AGP. The motherboard is a Asus P2B
440BX AGPset. The keyboard is a PS/2 102 keys french keyboard from
KEYTRONIC.

Various versions of the bug to reproduce:

A first way of reproducing the problem on my configuration is to start 
X window, and press return in a shell window for two or three minutes.
After that time, usually, the return key gets stuck, and sometimes the
keyboard is hang and a hard reboot is the only way out.

Another problem to reproduce (easier!)
Switching from a virtual console where I have a text console to a 
virtual console where X is running while pressing another key (eg: 
pressing ctrl-alt-F2-e) hang the keyboard.

For the panic after exiting of X with WSCONS and 1.4.2ALPHA, I got it 
every time.

For X crashing at launch with PCVT and 1.3.3, I also got it every time.
>Fix:
Run NetBSD-1.3.3 with PCVT... :o(
>Audit-Trail:
>Unformatted: