Subject: port-i386/9773: X server crash leaves machine unusable
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rafal@mediaone.net>
List: netbsd-bugs
Date: 04/04/2000 14:51:05
>Number:         9773
>Category:       port-i386
>Synopsis:       X server crash leaves machine in hung state.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 04 12:02:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Charlie Root
>Release:        -current from 4/3/2000, xsrc of 3/27/2000
>Organization:
I doubt it...
>Environment:
System: NetBSD cyclops 1.4X NetBSD 1.4X (CYCLOPS) #1: Tue Apr 4 04:09:09 PDT 2000 root@cyclops:/extra/src/sys/arch/i386/compile/CYCLOPS i386

	System is using wscons, with all compatibility options on.
	X server believes it's talking to pcvt v3.22

>Description:
	I was attempting to debug a failure of the X server to output readable
	text on my new ATI Rage 128 board.  To do so, I added an 
		Options "no_accel"
	to the "Device" section in my XF86Config.

	It turns out that that is incorrect XF86Config syntax (the correct
	syntax is:
		 Option "no_accel"
	(note the correct *Option* vs. my attempt *Options*).

	The result of the incorrect syntax is that the X server would crash
	and freeze my machine to the point of needing to power cycle it (no
	keyboard response, no network, ...)

>How-To-Repeat:
	Add 'Options "no_accel"' to the "Device" section of your XF86Config.
	Start X (preferrably over the network or via serial connection so you
	still see the messages after the machine hangs with the text screen
	inaccessible).  The X server output looks like the following:

------8<------8<------8<------8<------8<------8<------8<------8<------
XFree86 Version 3.3.6 / X Window System
(protocol Version 11, revision 0, vendor release 6300)
Release Date: January 8 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.4X [ELF] The NetBSD Foundation, Inc.
Configured drivers:
  SVGA: server for SVGA graphics adaptors (Patchlevel 0):
      NV1, STG2000, RIVA 128, RIVA TNT, RIVA TNT2, RIVA ULTRA TNT2,
      RIVA VANTA, RIVA ULTRA VANTA, RIVA INTEGRATED, GeForce 256,
      GeForce DDR, Quadro, ET4000, ET4000W32, ET4000W32i, ET4000W32i_rev_b,
      ET4000W32i_rev_c, ET4000W32p, ET4000W32p_rev_a, ET4000W32p_rev_b,
      ET4000W32p_rev_c, ET4000W32p_rev_d, ET6000, ET6100, et3000, pvga1,
      wd90c00, wd90c10, wd90c30, wd90c24, wd90c31, wd90c33, gvga, r128, ati,
      sis86c201, sis86c202, sis86c205, sis86c215, sis86c225, sis5597,
      sis5598, sis6326, sis530, sis620, sis300, sis630, sis540, tvga8200lx,
      tvga8800cs, tvga8900b, tvga8900c, tvga8900cl, tvga8900d, tvga9000,
      tvga9000i, tvga9100b, tvga9200cxr, tgui9400cxi, tgui9420, tgui9420dgi,
      tgui9430dgi, tgui9440agi, cyber9320, tgui9660, tgui9680, tgui9682,
      tgui9685, cyber9382, cyber9385, cyber9388, cyber9397, cyber9520,
      cyber9525, 3dimage975, 3dimage985, cyber9397dvd, blade3d, cyberblade,
      clgd5420, clgd5422, clgd5424, clgd5426, clgd5428, clgd5429, clgd5430,
      clgd5434, clgd5436, clgd5446, clgd5480, clgd5462, clgd5464, clgd5465,
      clgd6205, clgd6215, clgd6225, clgd6235, clgd7541, clgd7542, clgd7543,
      clgd7548, clgd7555, clgd7556, ncr77c22, ncr77c22e, cpq_avga, mga2064w,
      mga1064sg, mga2164w, mga2164w AGP, mgag200, mgag100, mgag400, oti067,
      oti077, oti087, oti037c, al2101, ali2228, ali2301, ali2302, ali2308,
      ali2401, cl6410, cl6412, cl6420, cl6440, video7, ark1000vl, ark1000pv,
      ark2000pv, ark2000mt, mx, realtek, s3_virge, AP6422, AT24, AT3D,
      s3_svga, NM2070, NM2090, NM2093, NM2097, NM2160, NM2200, ct65520,
      ct65525, ct65530, ct65535, ct65540, ct65545, ct65546, ct65548,
      ct65550, ct65554, ct65555, ct68554, ct69000, ct64200, ct64300,
      mediagx, V1000, V2100, V2200, p9100, spc8110, i740, i740_pci,
      Voodoo Banshee, Voodoo3, smi, generic
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
(**) SVGA: Graphics device ID: "ATI Rage128GL"
(**) SVGA: Monitor ID: "Gateway EV700"
(--) SVGA: Mode "640x480" needs vert refresh rate of 100.02 Hz. Deleted.
[...more deleted modes...]
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/local/,/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/"
(--) SVGA: PCI: ATI Rage 128 RF rev 0, Memory @ 0xd8000000, MMIO @ 0xff9fc000, I/O @ 0xdc00
(--) SVGA: r128: PLL parameters: rf=2950 rd=65 min=12500 max=25000; xclk=10300
(--) SVGA: chipset:  r128
(--) SVGA: videoram: 16384k
(**) SVGA: Option "xaa_no_color_exp"
(**) SVGA: Option "dac_8_bit"
(**) SVGA: Using 16 bpp, Depth 16, Color weight: 565
(--) SVGA: Maximum allowed dot-clock: 250.000 MHz
(**) SVGA: Mode "1152x864": mode clock =  92.000
(**) SVGA: Mode "1024x768": mode clock =  85.000
(**) SVGA: Mode "800x600": mode clock =  60.750
(--) SVGA: Virtual resolution set to 1152x864
(--) SVGA: SpeedUp code selection modified because virtualX != 1024
(--) SVGA: r128: ATI Rage 128 RF (AGP)
(--) SVGA: r128: Using hardware cursor
(--) SVGA: r128: Acceleration enabled

Config Error: /etc/XF86Config:508
	Options "no_accel"
	^^^^^^^^
Unknown device section keyword.

Fatal Server Error:


When reporting a problem due to server crash, please send the
full server output, not just the last messages
------8<------8<------8<------8<------8<------8<------8<------8<------

Here's the output of dmesg on this machine:
------8<------8<------8<------8<------8<------8<------8<------8<------
NetBSD 1.4X (CYCLOPS) #1: Tue Apr  4 04:09:09 PDT 2000
    root@cyclops:/extra/src/sys/arch/i386/compile/CYCLOPS
cpu0: family 6 model 8 step 1
cpu0: Intel Pentium III (E) (686-class)
total memory = 255 MB
avail memory = 234 MB
using 3296 buffers containing 13184 KB of memory
BIOS32 rev. 0 found at 0xfdb60
PCI BIOS rev. 2.1 found at 0xfdb81
pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
PCI BIOS has 8 Interrupt Routing table entries
--------------------------------------------
  device vendor product pin PIRQ   IRQ stage
--------------------------------------------
000:07:2 0x8086 0x7112  D   0x03   09  0
000:17:0 0x9005 0x0010  A   0x01   10  0
000:18:0 0x1274 0x1371  A   0x02   05  0
000:19:0 0x10b7 0x9200  A   0x03   09  0
--------------------------------------------
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI bus #1 is the last bus
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443BX Host Bridge/Controller (rev. 0x03)
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: ATI Technologies product 0x5246 (rev. 0x00)
wsdisplay0 at vga0: console (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <QUANTUM FIREBALLP LM30>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 28629 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 58633344 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
pciide0: disabling secondary channel (no drives)
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 0x01)
uhci0: can't map i/o space
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x02) at pci0 dev 7 function 3 not configured
ahc0 at pci0 dev 17 function 0
ahc0: interrupting at irq 10
ahc0: aic7890/91 Wide Channel A, SCSI Id=7, 16/255 SCBs
scsibus0 at ahc0 channel 0: 16 targets, 8 luns per target
eap0 at pci0 dev 18 function 0: Ensoniq AudioPCI 97 (rev. 0x08)
eap0: interrupting at irq 5
eap0: CRY19 codec; headphone, 20 bit DAC, 18 bit ADC, Spatializer 3D
audio0 at eap0: full duplex, mmap, independent
midi0 at eap0: AudioPCI MIDI UART
ex0 at pci0 dev 19 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt (rev. 0x78)
ex0: interrupting at irq 9
ex0: MAC address 00:01:02:29:aa:5e
ukphy0 at ex0 phy 24: Generic IEEE 802.3u media interface
ukphy0: OUI 0x001018, model 0x0017, rev. 7
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
lm0 at isa0 port 0x290-0x297: LM79
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
spkr0 at pcppi0
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2
biomask ed45 netmask ef45 ttymask ffc7
scsibus0: waiting 2 seconds for devices to settle...
ahc0: target 4 using 8bit transfers
ahc0: target 4 synchronous at 20.0MHz, offset = 0x8
cd1 at scsibus0 target 4 lun 0: <PLEXTOR, CD-R   PX-W124TS, 1.02> SCSI2 5/cdrom removable
ahc0: target 5 using 8bit transfers
ahc0: target 5 synchronous at 20.0MHz, offset = 0x10
cd0 at scsibus0 target 5 lun 0: <TOSHIBA, CD-ROM XM-6401TA, 1015> SCSI2 5/cdrom removable
IPsec: Initialized Security Association Processing.
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsdisplay0: screen 5 added (80x25, vt100 emulation)
wsdisplay0: screen 6 added (80x25, vt100 emulation)
wsdisplay0: screen 7 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
------8<------8<------8<------8<------8<------8<------8<------8<------

>Fix:
	Unknown.  For now, don't make syntax errors in your XF86Config 8-/
>Release-Note:
>Audit-Trail:
>Unformatted: