First off, I'd like to say that I'm very, very new to
OpenBSD, and that this is also my first mailing list
message ever, so I'd like to apologize in advance if
(when) I make a really bone-headed mistake(s). So
here's what happened:
Last November, I bought a copy of OpenBSD
4.2(-release). My goal was to install it on an older
i386 machine with a couple decent-sized hard drives
and make it a file (etc.) server with RAID 1. To that
end, I tried to recompile the GENERIC kernel with RAID
support. At the same, I decided it would be good to
update to the 4.2-stable branch, since I had to
recompile anyway. Somewhere along the way, the compile
didn't work, so I thought "maybe -stable isn't for
me", so I tried to do the same with the 4.2-release
code; this failed as well. Then, for the sake of being
thorough, I tried compiling GENERIC with both -stable
and -release sources with the default config file, and
these also failed, and since they all failed the same
way, it appeared to me that it was neither RAID
support nor the -stable branch that was causing the
problem. (Just to be absolutely positive, I've also
reinstalled from both CD and floppy/http, and have
acquired the sources via CD, http, and AnonCVS, and
none of the above made any difference.)
At first I wondered if it was a memory problem (it is,
after all, an old machine), so I ran Memtest86+ for 13
straight hours (7 passes) with absolutely 0 errors.
This was the point at which I knew I was in over my
head, so I brought over a friend who's far better at
programming than I am. He couldn't figure out he
problem, and told me to pass it on to the people who
would know best what's happening with my poor machine.
Following the instructions for updating to the
4.2-stable branch from FAQ 5 (although, as I say, it
doesn't matter what branch I'm compiling from or what
my config file says, the result is the same), I get as
far as 5.3.4, specifically as far as "# make clean &&
make depend && make". While executing 'make depend',
it comes to an item called "swapgeneric.c", which it
sits on for a long time, then pops into the
interactive kernel debugger with the following message
(sorry if I've included not enough/too much
information):
uvm_fault(0xd718417c, 0xcfc1f000, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at pmap_enter+0xaf: movl 0(%edx,%eax,4),%eax
ddb> ps
PID PPID PGRP UID S FLAGS WAIT
COMMAND
*31500 2160 24858 0 7 0x2
cc
31501 9957 24858 0 3 0x4082 piperd
sed
2160 988 24858 0 3 0x4082 wait
cc
9957 15499 24858 0 3 0x82 pause
sh
988 15499 24858 0 3 0x82 pause
sh
15499 2977 24858 0 3 0x4082 pause
sh
2799 24858 24858 0 3 0x4082 pause
sh
24858 1606 24858 0 3 0x4082 wait
make
2654 1 2654 0 3 0x40180 select
sendmail
24441 1 24441 0 3 0x4082 ttyin
getty
32275 1 32275 0 3 0x4082 ttyin
getty
6003 1 6003 0 3 0x4082 ttyin
getty
24921 1 24921 0 3 0x4082 ttyin
getty
1606 1 1606 0 3 0x4082 pause
ksh
6918 1 6918 0 3 0x80 select
cron
6795 1 6795 0 3 0x80 select
sshd
27639 1 27639 0 3 0x180 select
inetd
19301 5409 5409 83 3 0x180 poll
ntpd
5409 1 5409 0 3 0x80 poll
ntpd
11438 1072 1072 73 2 0x180
syslogd
1072 1 1072 0 3 0x88 netio
syslogd
25707 1 25707 77 3 0x180 poll
dhclient
27924 1 26765 0 3 0x82 poll
dhclient
13 0 0 0 3 0x100200 crypto_wait
crypto
12 0 0 0 3 0x100200 aiodoned
aiodoned
11 0 0 0 3 0x100200 syncer
update
10 0 0 0 3 0x100200 cleaner
cleaner
9 0 0 0 3 0x100200 reaper
reaper
8 0 0 0 3 0x100200 pgdaemon
pgdaemon
7 0 0 0 3 0x100200 pftm
pfpurge
6 0 0 0 3 0x100200 usbevt
usb1
5 0 0 0 3 0x100200 usbtsk
usbtask
4 0 0 0 3 0x100200 usbevt
usb0
3 0 0 0 3 0x100200 bored
syswq
2 0 0 0 3 0x100200 kmalloc
kmthread
1 0 1 0 3 0x4080 wait
init
0 -1 0 0 3 0x80200 scheduler
swapper
ddb> trace
pmap_enter(d72b8417c,7f91000,586d000,5,20,7f98000,dc671ea4,0)
at pmap_enter+0xaf
uvm_fault(d718417c,7f94000,0,1,dc66bea0) at
uvm_fault+0xd0c
trap() at trap+0x269
--- trap (number 6) ---
0x7f942b1
# dmesg
OpenBSD 4.2 (GENERIC) #375: Tue Aug 28 10:38:44 MDT
2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Duron(tm) Processor ("AuthenticAMD"
686-class, 64KB L2 cache) 802 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem = 796487680 (759MB)
avail mem = 761987072 (726MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/16/01, BIOS32
rev. 0 @ 0xfa100, SMBIOS rev. 2.3 @ 0xfd490 (19
entries)
bios0: vendor Compaq version "786K3" date 02/16/2001
bios0: Compaq Compaq PC
pcibios0 at bios0: rev 2.1 @ 0xfa040/0x1000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfa040/128
(6 entries)
pcibios0: PCI Interrupt Router at 000:20:0 ("VIA
VT82C686 ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x10000 0xe9000/0x3000!
0xec000/0x4000!
acpi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8363 Host" rev
0x81
ppb0 at pci0 dev 1 function 0 "VIA VT8363 AGP" rev
0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "S3 ProSavage KM133" rev
0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100
emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
vr0 at pci0 dev 3 function 0 "VIA VT6105 RhineIII" rev
0x86: irq 3, address 00:05:5d:78:c0:ae
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media
interface, rev. 4: OUI 0x004063, model 0x0034
vr1 at pci0 dev 4 function 0 "VIA VT6105 RhineIII" rev
0x86: irq 10, address 00:11:95:d2:d6:59
ukphy1 at vr1 phy 1: Generic IEEE 802.3u media
interface, rev. 5: OUI 0x004063, model 0x0034
vr2 at pci0 dev 5 function 0 "VIA VT6105 RhineIII" rev
0x86: irq 5, address 00:0f:3d:e9:29:9c
ukphy2 at vr2 phy 1: Generic IEEE 802.3u media
interface, rev. 4: OUI 0x004063, model 0x0034
pcib0 at pci0 dev 20 function 0 "VIA VT82C686 ISA" rev
0x22
pciide0 at pci0 dev 20 function 1 "VIA VT82C571 IDE"
rev 0x10: ATA66, channel 0 configured to
compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <WDC
WD5000AAKB-00YSA0>
wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
wd1 at pciide0 channel 1 drive 0: <WDC
WD5000AAKB-00YSA0>
wd1: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
uhci0 at pci0 dev 20 function 2 "VIA VT83C572 USB" rev
0x10: irq 11
uhci1 at pci0 dev 20 function 3 "VIA VT83C572 USB" rev
0x10: irq 11
viaenv0 at pci0 dev 20 function 4 "VIA VT82C686 SMBus"
rev 0x30: HWM disabled: 32-bit timer at 3579545Hz
auvia0 at pci0 dev 20 function 5 "VIA VT82C686 AC97"
rev 0x20: irq 10
ac97: codec id 0x41445348 (Analog Devices AD1881A)
ac97: codec features headphone, Analog Devices Phat
Stereo
audio0 at auvia0
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using
exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte
fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
usb0 at uhci0: USB revision 1.0
uhub0 at usb0: VIA UHCI root hub, rev 1.00/1.00, addr
1
usb1 at uhci1: USB revision 1.0
uhub1 at usb1: VIA UHCI root hub, rev 1.00/1.00, addr
1
biomask fb45 netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
root on wd0a swap on wd0b dump on wd0b
Any ideas?
-Russell Ault
Ask a question on any topic and get answers from real people. Go to
Yahoo! Answers and share what you know at http://ca.answers.yahoo.com