Subject: xsrc/10964: once X dies /dev/wsmouse
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mcr@solidum.com>
List: netbsd-bugs
Date: 09/06/2000 08:05:31
>Number:         10964
>Category:       xsrc
>Synopsis:       /dev/wsmouse is not closed properly when X dies
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 06 08:06:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Michael Richardson
>Release:        NetBSD-1.5_ALPHA2
>Organization:
Solidum Systems Corporation
>Environment:
	
System: NetBSD phobos.solidum.com 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (XTERM) #4: Mon Aug 28 12:02:12 EDT 2000 rootmcr@phobos.solidum.com:/usr/src/sys/arch/i386/compile/XTERM i386

>Description:

	If X dies (not sure why, but xdm died as well) I can not restart it
	as /dev/wsmouse is busy. I can find no X server running, so I can not
	see why it would be busy.

>How-To-Repeat:
	kill -SEGV your X server, and the restart it.

XFree86 Version 3.3.6 / X Window System
(protocol Version 11, revision 0, vendor release 6300)
Release Date: December 20 1999
	If the server is older than 6-12 months, or if your card is newer
	than the above date, look for a newer version before reporting
	problems.  (see http://www.XFree86.Org/FAQ)
Operating System: NetBSD/i386 1.5_ALPHA2 [ELF] The NetBSD Foundation, Inc.
Configured drivers:
  Mach64: accelerated server for ATI Mach64 graphics adaptors (Patchlevel 0)
Using pcvt driver (version 3.32)
XF86Config: /etc/XF86Config
(**) stands for supplied, (--) stands for probed/default values
(**) XKB: keymap: "xfree86(us)" (overrides other XKB settings)
(**) Mouse: type: WSMOUSE, device: /dev/wsmouse, buttons: 3
(**) Mach64: Graphics device ID: "ATI"
(**) Mach64: Monitor ID: "ViewSonic"
(--) Mach64: Mode "1280x1024" needs hsync freq of 91.15 kHz. Deleted.
(--) Mach64: Mode "1600x1200" needs hsync freq of 93.75 kHz. Deleted.
(--) Mach64: Mode "1600x1200" needs hsync freq of 105.77 kHz. Deleted.
(--) Mach64: Mode "1280x1024" needs hsync freq of 107.16 kHz. Deleted.
(--) Mach64: Mode "1800X1440" needs hsync freq of 96.15 kHz. Deleted.
(--) Mach64: Mode "1800X1440" needs hsync freq of 104.52 kHz. Deleted.
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/local/,/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/"
(--) Mach64: PCI: Mach64 RagePro rev 92, Aperture @ 0xdf000000, Registers @ 0xde800000, Block I/O @ 0xd800
(--) Mach64: PCI (92) and CONFIG_CHIP_ID (124) don't agree on ChipRev,
	using PCI value
(--) Mach64: Card type: AGP
(--) Mach64: Memory type: SDRAM (4)
(--) Mach64: Clock type: Internal
(--) Mach64: Maximum allowed dot-clock: 230.000 MHz
(**) Mach64: Mode "1600x1200": mode clock = 189.000
(--) Mach64: Illegal mode according to Mach64 BIOS
(--) Mach64: Removing mode "1600x1200" from list of valid modes.
(**) Mach64: Mode "1280x1024": mode clock = 135.000
(**) Mach64: Mode "640x480": mode clock =  45.800
(**) Mach64: Mode "800x600": mode clock =  69.650
(**) Mach64: Mode "1024x768": mode clock = 115.500
(--) Mach64: Virtual resolution: 1280x1024
(--) Mach64: Video RAM: 8192k
(--) Mach64: Using hardware cursor
(--) Mach64: Using 16 MB aperture @ 0xdf000000
(--) Mach64: Using 4 KB register aperture @ 0xde800000
(--) Mach64: Ramdac is Internal
(--) Mach64: Ramdac speed: 230 MHz
Warning: Ron = 43, Rloop = 10, Roff = 46
(--) Mach64: Pixmap cache: 1 256x256 slots, 2 128x128 slots, 8 64x64 slots
(--) Mach64: Font cache: 16 fonts
System: `/usr/X11R6/lib/X11/xkb/xkbcomp -w 1 -R/usr/X11R6/lib/X11/xkb -xkm -m us -em1 "The XKEYBOARD keymap compiler (xkbcomp) reports:" -emp "> " -eml "Errors from xkbcomp are not fatal to the X server" keymap/xfree86 compiled/xfree86.xkm'

Fatal server error:
Cannot open mouse (Device busy)


When reporting a problem related to a server crash, please send
the full server output, not just the last messages

mach64ProgramClkMach64CT: Warning: Q < 10.66666667
xdm error (pid 575): IO Error in XOpenDisplay
xdm error (pid 571): Display :0 cannot be opened

XFree86 Version 3.3.6 / X Window System
(protocol Version 11, revision 0, vendor release 6300)
Release Date: December 20 1999
	If the server is older than 6-12 months, or if your card is newer
	than the above date, look for a newer version before reporting
	problems.  (see http://www.XFree86.Org/FAQ)
Operating System: NetBSD/i386 1.5_ALPHA2 [ELF] The NetBSD Foundation, Inc.
Configured drivers:
  Mach64: accelerated server for ATI Mach64 graphics adaptors (Patchlevel 0)
Using pcvt driver (version 3.32)
XF86Config: /etc/XF86Config
(**) stands for supplied, (--) stands for probed/default values
(**) XKB: keymap: "xfree86(us)" (overrides other XKB settings)
(**) Mouse: type: WSMOUSE, device: /dev/wsmouse, buttons: 3
(**) Mach64: Graphics device ID: "ATI"
(**) Mach64: Monitor ID: "ViewSonic"
(--) Mach64: Mode "1280x1024" needs hsync freq of 91.15 kHz. Deleted.
(--) Mach64: Mode "1600x1200" needs hsync freq of 93.75 kHz. Deleted.
(--) Mach64: Mode "1600x1200" needs hsync freq of 105.77 kHz. Deleted.
(--) Mach64: Mode "1280x1024" needs hsync freq of 107.16 kHz. Deleted.
(--) Mach64: Mode "1800X1440" needs hsync freq of 96.15 kHz. Deleted.
(--) Mach64: Mode "1800X1440" needs hsync freq of 104.52 kHz. Deleted.
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/local/,/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/"
(--) Mach64: PCI: Mach64 RagePro rev 92, Aperture @ 0xdf000000, Registers @ 0xde800000, Block I/O @ 0xd800
(--) Mach64: PCI (92) and CONFIG_CHIP_ID (124) don't agree on ChipRev,
	using PCI value
(--) Mach64: Card type: AGP
(--) Mach64: Memory type: SDRAM (4)
(--) Mach64: Clock type: Internal
(--) Mach64: Maximum allowed dot-clock: 230.000 MHz
(**) Mach64: Mode "1600x1200": mode clock = 189.000
(--) Mach64: Illegal mode according to Mach64 BIOS
(--) Mach64: Removing mode "1600x1200" from list of valid modes.
(**) Mach64: Mode "1280x1024": mode clock = 135.000
(**) Mach64: Mode "640x480": mode clock =  45.800
(**) Mach64: Mode "800x600": mode clock =  69.650
(**) Mach64: Mode "1024x768": mode clock = 115.500
(--) Mach64: Virtual resolution: 1280x1024
(--) Mach64: Video RAM: 8192k
(--) Mach64: Using hardware cursor
(--) Mach64: Using 16 MB aperture @ 0xdf000000
(--) Mach64: Using 4 KB register aperture @ 0xde800000
(--) Mach64: Ramdac is Internal
(--) Mach64: Ramdac speed: 230 MHz
Warning: Ron = 43, Rloop = 10, Roff = 46
(--) Mach64: Pixmap cache: 1 256x256 slots, 2 128x128 slots, 8 64x64 slots
(--) Mach64: Font cache: 16 fonts
System: `/usr/X11R6/lib/X11/xkb/xkbcomp -w 1 -R/usr/X11R6/lib/X11/xkb -xkm -m us -em1 "The XKEYBOARD keymap compiler (xkbcomp) reports:" -emp "> " -eml "Errors from xkbcomp are not fatal to the X server" keymap/xfree86 compiled/xfree86.xkm'

Fatal server error:
Cannot open mouse (Device busy)


When reporting a problem related to a server crash, please send
the full server output, not just the last messages

mach64ProgramClkMach64CT: Warning: Q < 10.66666667
xdm error (pid 579): IO Error in XOpenDisplay
xdm error (pid 571): Display :0 cannot be opened

XFree86 Version 3.3.6 / X Window System
(protocol Version 11, revision 0, vendor release 6300)
Release Date: December 20 1999
	If the server is older than 6-12 months, or if your card is newer
	than the above date, look for a newer version before reporting
	problems.  (see http://www.XFree86.Org/FAQ)
Operating System: NetBSD/i386 1.5_ALPHA2 [ELF] The NetBSD Foundation, Inc.
Configured drivers:
  Mach64: accelerated server for ATI Mach64 graphics adaptors (Patchlevel 0)
Using pcvt driver (version 3.32)
XF86Config: /etc/XF86Config
(**) stands for supplied, (--) stands for probed/default values
(**) XKB: keymap: "xfree86(us)" (overrides other XKB settings)
(**) Mouse: type: WSMOUSE, device: /dev/wsmouse, buttons: 3
(**) Mach64: Graphics device ID: "ATI"
(**) Mach64: Monitor ID: "ViewSonic"
(--) Mach64: Mode "1280x1024" needs hsync freq of 91.15 kHz. Deleted.
(--) Mach64: Mode "1600x1200" needs hsync freq of 93.75 kHz. Deleted.
(--) Mach64: Mode "1600x1200" needs hsync freq of 105.77 kHz. Deleted.
(--) Mach64: Mode "1280x1024" needs hsync freq of 107.16 kHz. Deleted.
(--) Mach64: Mode "1800X1440" needs hsync freq of 96.15 kHz. Deleted.
(--) Mach64: Mode "1800X1440" needs hsync freq of 104.52 kHz. Deleted.
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/local/,/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/"
(--) Mach64: PCI: Mach64 RagePro rev 92, Aperture @ 0xdf000000, Registers @ 0xde800000, Block I/O @ 0xd800
(--) Mach64: PCI (92) and CONFIG_CHIP_ID (124) don't agree on ChipRev,
	using PCI value
(--) Mach64: Card type: AGP
(--) Mach64: Memory type: SDRAM (4)
(--) Mach64: Clock type: Internal
(--) Mach64: Maximum allowed dot-clock: 230.000 MHz
(**) Mach64: Mode "1600x1200": mode clock = 189.000
(--) Mach64: Illegal mode according to Mach64 BIOS
(--) Mach64: Removing mode "1600x1200" from list of valid modes.
(**) Mach64: Mode "1280x1024": mode clock = 135.000
(**) Mach64: Mode "640x480": mode clock =  45.800
(**) Mach64: Mode "800x600": mode clock =  69.650
(**) Mach64: Mode "1024x768": mode clock = 115.500
(--) Mach64: Virtual resolution: 1280x1024
(--) Mach64: Video RAM: 8192k
(--) Mach64: Using hardware cursor
(--) Mach64: Using 16 MB aperture @ 0xdf000000
(--) Mach64: Using 4 KB register aperture @ 0xde800000
(--) Mach64: Ramdac is Internal
(--) Mach64: Ramdac speed: 230 MHz
Warning: Ron = 43, Rloop = 10, Roff = 46
(--) Mach64: Pixmap cache: 1 256x256 slots, 2 128x128 slots, 8 64x64 slots
(--) Mach64: Font cache: 16 fonts
System: `/usr/X11R6/lib/X11/xkb/xkbcomp -w 1 -R/usr/X11R6/lib/X11/xkb -xkm -m us -em1 "The XKEYBOARD keymap compiler (xkbcomp) reports:" -emp "> " -eml "Errors from xkbcomp are not fatal to the X server" keymap/xfree86 compiled/xfree86.xkm'

Fatal server error:
Cannot open mouse (Device busy)


When reporting a problem related to a server crash, please send
the full server output, not just the last messages

mach64ProgramClkMach64CT: Warning: Q < 10.66666667
xdm error (pid 583): IO Error in XOpenDisplay
xdm error (pid 571): Display :0 cannot be opened

XFree86 Version 3.3.6 / X Window System
(protocol Version 11, revision 0, vendor release 6300)
Release Date: December 20 1999
	If the server is older than 6-12 months, or if your card is newer
	than the above date, look for a newer version before reporting
	problems.  (see http://www.XFree86.Org/FAQ)
Operating System: NetBSD/i386 1.5_ALPHA2 [ELF] The NetBSD Foundation, Inc.
Configured drivers:
  Mach64: accelerated server for ATI Mach64 graphics adaptors (Patchlevel 0)
Using pcvt driver (version 3.32)
XF86Config: /etc/XF86Config
(**) stands for supplied, (--) stands for probed/default values
(**) XKB: keymap: "xfree86(us)" (overrides other XKB settings)
(**) Mouse: type: WSMOUSE, device: /dev/wsmouse, buttons: 3
(**) Mach64: Graphics device ID: "ATI"
(**) Mach64: Monitor ID: "ViewSonic"
(--) Mach64: Mode "1280x1024" needs hsync freq of 91.15 kHz. Deleted.
(--) Mach64: Mode "1600x1200" needs hsync freq of 93.75 kHz. Deleted.
(--) Mach64: Mode "1600x1200" needs hsync freq of 105.77 kHz. Deleted.
(--) Mach64: Mode "1280x1024" needs hsync freq of 107.16 kHz. Deleted.
(--) Mach64: Mode "1800X1440" needs hsync freq of 96.15 kHz. Deleted.
(--) Mach64: Mode "1800X1440" needs hsync freq of 104.52 kHz. Deleted.
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/local/,/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/"
(--) Mach64: PCI: Mach64 RagePro rev 92, Aperture @ 0xdf000000, Registers @ 0xde800000, Block I/O @ 0xd800
(--) Mach64: PCI (92) and CONFIG_CHIP_ID (124) don't agree on ChipRev,
	using PCI value
(--) Mach64: Card type: AGP
(--) Mach64: Memory type: SDRAM (4)
(--) Mach64: Clock type: Internal
(--) Mach64: Maximum allowed dot-clock: 230.000 MHz
(**) Mach64: Mode "1600x1200": mode clock = 189.000
(--) Mach64: Illegal mode according to Mach64 BIOS
(--) Mach64: Removing mode "1600x1200" from list of valid modes.
(**) Mach64: Mode "1280x1024": mode clock = 135.000
(**) Mach64: Mode "640x480": mode clock =  45.800
(**) Mach64: Mode "800x600": mode clock =  69.650
(**) Mach64: Mode "1024x768": mode clock = 115.500
(--) Mach64: Virtual resolution: 1280x1024
(--) Mach64: Video RAM: 8192k
(--) Mach64: Using hardware cursor
(--) Mach64: Using 16 MB aperture @ 0xdf000000
(--) Mach64: Using 4 KB register aperture @ 0xde800000
(--) Mach64: Ramdac is Internal
(--) Mach64: Ramdac speed: 230 MHz
Warning: Ron = 43, Rloop = 10, Roff = 46
(--) Mach64: Pixmap cache: 1 256x256 slots, 2 128x128 slots, 8 64x64 slots
(--) Mach64: Font cache: 16 fonts
System: `/usr/X11R6/lib/X11/xkb/xkbcomp -w 1 -R/usr/X11R6/lib/X11/xkb -xkm -m us -em1 "The XKEYBOARD keymap compiler (xkbcomp) reports:" -emp "> " -eml "Errors from xkbcomp are not fatal to the X server" keymap/xfree86 compiled/xfree86.xkm'

Fatal server error:
Cannot open mouse (Device busy)


When reporting a problem related to a server crash, please send
the full server output, not just the last messages

mach64ProgramClkMach64CT: Warning: Q < 10.66666667
xdm error (pid 587): IO Error in XOpenDisplay
xdm error (pid 571): Display :0 cannot be opened
xdm error (pid 571): Display :0 is being disabled
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: