panic and uvm_fault on i386 -release and -current

2008-11-28 Thread Thomas Pfaff
Hi.

I'm trying to get OpenBSD 4.4/i386 working on some new hardware, but I'm
getting uvm_fault and panic that are easily reproduced.  I've tried both
4.4-release and 4.4-current but they both have the same problem (crash).

It seems the problem surfaces during heavy-ish disk I/O.  I first noticed
it when I tried to extract ports.tar.gz after installation; it would run
for a while and then panic.  Running CPU-intensive tasks such as `openssl
speed' works fine.

Since this is partly new hardware, I ran memtest86 for a while which passed,
and then installed another OS (Debian) which I tried to crash.  Apart from
the initial shock of being back in Linux, I encountered no problems.

Output from a serial console session using November 26th snapshot:

Script started on Fri Nov 28 21:22:42 2008
$ sudo cu -l tty02 -s 9600
Connected
>> OpenBSD/i386 BOOT 3.02
boot> 
booting hd0a:/bsd:
entry point at 0x200120

[ using 640716 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2008 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 4.4-current (GENERIC) #1511: Tue Nov 25 19:11:50 MST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Pentium(R) Dual-Core CPU E5200 @ 2.50GHz ("GenuineIntel" 686-class) 2.51 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xTPR
cpu0: unknown i686 EBL_CR_POWERON value 3 (0x430c)
real mem  = 1072914432 (1023MB)
avail mem = 1029177344 (981MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/19/08, BIOS32 rev. 0 @ 0xf0010, SMBIOS 
rev. 2.5 @ 0xf06d0 (66 entries)
bios0: vendor American Megatrends Inc. version "1001" date 06/19/2008
bios0: ASUSTeK Computer INC. P5B SE
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC MCFG OEMB
acpi0: wakeup devices P0P2(S4) P0P1(S4) PS2K(S4) PS2M(S4) UAR1(S4) USB0(S4) 
EUSB(S4) USB5(S4) USBE(S4) P0P4(S4) P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) 
P0P9(S4) GBEC(S4) USB1(S4) USB2(S4) USB3(S4) USB4(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: unknown i686 EBL_CR_POWERON value 3 (0x430c)
cpu0: unknown i686 EBL_CR_POWERON value 3 (0x430c)
cpu0: apic clock running at 199MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P2)
acpiprt2 at acpi0: bus 5 (P0P1)
acpiprt3 at acpi0: bus 4 (P0P4)
acpiprt4 at acpi0: bus -1 (P0P5)
acpiprt5 at acpi0: bus 3 (P0P6)
acpiprt6 at acpi0: bus 2 (P0P7)
acpiprt7 at acpi0: bus -1 (P0P8)
acpiprt8 at acpi0: bus -1 (P0P9)
acpicpu0 at acpi0
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc/0x8000 0xc8000/0x1000 0xc9000/0x3000
cpu0: EST: unknown system bus clock
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82G965 Host" rev 0x02
ppb0 at pci0 dev 1 function 0 "Intel 82G965 PCIE" rev 0x02: apic 2 int 16 (irq 
11)
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x02: apic 2 int 17 (irq 
5)
pci2 at ppb1 bus 4
ppb2 at pci0 dev 28 function 2 "Intel 82801H PCIE" rev 0x02: apic 2 int 18 (irq 
15)
pci3 at ppb2 bus 3
ppb3 at pci0 dev 28 function 3 "Intel 82801H PCIE" rev 0x02: apic 2 int 19 (irq 
10)
pci4 at ppb3 bus 2
jmb0 at pci4 dev 0 function 0 "JMicron JMB363 IDE/SATA" rev 0x03
ahci0 at jmb0: apic 2 int 19 (irq 10), AHCI 1.0
scsibus0 at ahci0: 32 targets, initiator 32
pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to 
native-PCI
pciide0: using apic 2 int 19 (irq 10) for native-PCI interrupt
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus1 targ 0 lun 0:  ATAPI 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
uhci0 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x02: apic 2 int 23 (irq 
7)
uhci1 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x02: apic 2 int 20 (irq 
14)
ehci0 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x02: apic 2 int 23 (irq 
7)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xf2
pci5 at ppb4 bus 5
vga1 at pci5 dev 0 function 0 "ATI Mach64" rev 0x3a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci5 dev 2 function 0 "Intel PRO/1000GT (82541GI)" rev 0x05: apic 2 int 
23 (irq 7), address 00:0e:0c:cf:fc:58
ichpcib0 at pci0 dev 31 function 0 "Intel 82801H LPC" rev 0x02: PM disabled
ahci1 at pci0 dev 31 function 2 "Intel 82801H AHCI" rev 0x02: apic 2 int 18 
(irq 15), AHCI 1.1
scsibus2 at ahci1: 32 targets, initiator 32
sd0 at scsibus2 targ 0 lun 0:  SCSI3 0/direct fixed
sd

Re: panic and uvm_fault on i386 -release and -current

2008-11-29 Thread Thomas Pfaff
On Fri, 28 Nov 2008 23:01:47 +0100
Thomas Pfaff <[EMAIL PROTECTED]> wrote:
[...]
> # tar -zxf ports.tar.gz
> free vnode: 0xd78023a0, type VREG, use 8, write 0, hold 1, flags 
> (VBIOONFREELIST)
>   tag VT_UFS, ino 432058, on dev 4, 0 flags 0x0, effnlink 1, nlink 1
>   mode 0100644, owner 0, group 0, size 2455 not locked
> panic: free vnode isn't
> Stopped at  Debugger+0x4:   leave
> RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
> DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
> ddb>

I have submitted this as a PR through sendbug(1).