[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#565356: Segmentation fault when adapter only has one of kbd or mouse plugged in



Package: xserver-xorg-input-evdev
Version: 1:2.3.2-2
Severity: wishlist

I have a PS2 to USB adapter. One connects a PS2 mouse, and a PS2
Keyboard to it. Then plugs it into a USB port on one's computer.

The problem is X-windows never expected that I would only plug in a
keyboard, or only plug in a mouse, to it.

So it ends up Segmentation faulting.

However if I unplug it from USB, restart X, then plug it back in, all is well.

Or, before I start X, I must be sure both a keyboard and a mouse are
plugged in, then all also will be well.

So you should double check, and if you cannot get an address you want,
you should not segfault, but instead merely leave a warning in the logs.
Anyway, you already detected at least one working mouse and one working
keyboard, so there is no reason to ruin the session just because some of
the additional ones were not where you thought they were (without double
checking, and instead segfaulting.)

Here I only plug in a keyboard to the PS2 adapter, then start xdm.
Segmentation fault.

Attachment: Xorg.SEGFAULT.log.gz
Description: segfault

Now i unplug my adapter, start xdm, then plug it back in. Everything
works fine.

Attachment: Xorg.REPLUG.log.gz
Description: replug

Now I put both mouse and keyboard onto the PS2 adapter and reboot. Fine
again.

Attachment: Xorg.MOUSE+KBD.log.gz
Description: mouse + kbd

And in this final state:
/dev/input/by-id:
usb-13ba_Generic_USB_K_B-event-kbd -> ../event10
usb-13ba_Generic_USB_K_B-event-mouse -> ../event11
usb-13ba_Generic_USB_K_B-mouse -> ../mouse1
usb-Logitech_Trackball-event-mouse -> ../event12
usb-Logitech_Trackball-mouse -> ../mouse2
usb-eb1a_2761-event-if00 -> ../event8
$ lsusb
lsusb
Bus 002 Device 002: ID 13ba:0017 Unknown PS/2 Keyboard+Mouse Adapter
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 046d:c404 Logitech, Inc. TrackMan Wheel
Bus 001 Device 006: ID 058f:6362 Alcor Micro Corp. Hi-Speed 21-in-1 Flash Card Reader/Writer (Internal/External)
Bus 001 Device 005: ID eb1a:2761 eMPIA Technology, Inc. EeePC 701 integrated Webcam
Bus 001 Device 004: ID 0951:1606 Kingston Technology
Bus 001 Device 003: ID 0409:0059 NEC Corp. HighSpeed Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Reply to: