Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 May 2005 18:34:29 GMT
From:      Joseph Dunn <joseph@magnesium.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/80739: Strange panic (keyboard related?) on 5.4 when dropping to single-user mode
Message-ID:  <200505071834.j47IYTxJ010704@www.freebsd.org>
Resent-Message-ID: <200505071840.j47Ie2xf035961@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         80739
>Category:       i386
>Synopsis:       Strange panic (keyboard related?) on 5.4 when dropping to single-user mode
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 07 18:40:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Joseph Dunn
>Release:        5.4
>Organization:
>Environment:
FreeBSD reason.theory 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sat May  7 08:27:10 CDT 2005     root@reason.theory:/usr/obj/usr/src/sys/REASON  i386
>Description:
On my 5.4 box (cvsup'ed and rebuilt last night), when I attempt to drop to single-user mode via 'shutdown now', I get the standard prompt for path of shell or return for /bin/sh. If I press return or begin to type the path of a shell, I immediately get a page fault:

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xae
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xae
stack pointer           = 0x10:0xcbcf2ca4
frame pointer           = 0x10:0xcbcf2cc0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 13 (irq1: atkbd0)
trap number             = 12
panic: page fault

If I attempt to boot into single-user mode, I get the same "shell path or press return" prompt, but I am unable to enter text at it. It's like the keyboard is not plugged in. Ctrl-Alt-Del does work, however, but results in the *same* page fault as above.

For what it's worth, my dmesg output is as follows:

Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 5.4-RELEASE #0: Sat May  7 08:27:10 CDT 2005
    root@reason.theory:/usr/obj/usr/src/sys/REASON
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium II/Pentium II Xeon/Celeron (398.27-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x652  Stepping = 2
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 268435456 (256 MB)
avail memory = 253009920 (241 MB)
npx0: <math processor> on motherboard
npx0: INT 16 interface
cpu0 on motherboard
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> pcibus 0 on motherboard
pir0: <PCI Interrupt Routing Table: 10 Entries> on motherboard
pci0: <PCI bus> on pcib0
agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xe4000000-0xe7ffffff at device 0.0 on pci0
pcib1: <PCIBIOS PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x18e0-0x18ef,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x18c0-0x18df irq 9 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <bridge> at device 7.3 (no driver attached)
pci0: <display, VGA> at device 13.0 (no driver attached)
pcm0: <AudioPCI ES1373-A> port 0x1880-0x18bf irq 11 at device 14.0 on pci0
pcm0: <TriTech TR28023 AC97 Codec>
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0x1800-0x187f mem 0xe0004000-0xe000407f irq 10 at device 15.0 on pci0
miibus0: <MII bus> on xl0
xlphy0: <3Com internal media interface> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:10:4b:79:59:7d
dc0: <ADMtek AN985 10/100BaseTX> port 0x1400-0x14ff mem 0xe0004400-0xe00047ff irq 9 at device 16.0 on pci0
miibus1: <MII bus> on dc0
ukphy0: <Generic IEEE 802.3u media interface> on miibus1
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
dc0: Ethernet address: 00:04:5a:6e:c9:b6
dc0: if_start running deferred for Giant
orm0: <ISA Option ROMs> at iomem 0xe4000-0xeffff,0xe0000-0xe3fff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5 irq 6 drq 2 on isa0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0c02> can't assign resources (memory)
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0c02> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0400> can't assign resources (port)
ums0: Microsoft Microsoft IntelliMouse\M-. Optical, rev 1.10/1.21, addr 2, iclass 3/1
ums0: 5 buttons and Z dir.
Timecounter "TSC" frequency 398270636 Hz quality 800
Timecounters tick every 10.000 msec
ad0: 19092MB <WDC WD200BB-32CLB0/05.04E05> [38792/16/63] at ata0-master UDMA33
ad1: 9787MB <WDC WD102AA-00BAA0/10.09K11> [19885/16/63] at ata0-slave UDMA33
acd0: CDRW <CD-RW CR52/Ver 3.30> at ata1-master PIO4
ad3: 407MB <SAMSUNG SHD-3212A (APOLLO-4) AD/AW104S> [1002/16/52] at ata1-slave WDMA0
cd0 at ata1 bus 0 target 0 lun 0
cd0: <MSI CD-RW CR52 3.30> Removable CD-ROM SCSI-0 device
cd0: 16.000MB/s transfers
cd0: cd present [10744 x 2048 byte records]
Mounting root from ufs:/dev/ad3s1a

>How-To-Repeat:
Run 'shutdown now' on a FreeBSD 5.4/i386 system. Alternatively, boot into single-user mode, and press Ctrl-Alt-Del at the prompt for shell path.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505071834.j47IYTxJ010704>