Hello
Few days ago my friend ask me to update his firewall (he is running OBSD
4.1).
I prepared new box and installed OpenBSD 4.6 (i386.mp).
I did have prepared pf.conf also so it work without problems and at night
i just swithed cables and it did work. But in the morning when i wake up
there was problem:
uvm_fault(0xd0891180, 0x4000, 0, 3) ->e
kernel: page fault trap, code=0
Stopped at pf_state_key_detach+0x40: movl %eax0,4(%ecx)
ddb{0}>
The problem is i cannot make "trace" in ddb because computer freeze then
and it do not
respond on anything. After reset i cannot also find any core dump.
I happend in 3 days now, one after another. So i always swith back to
old box.
It is always same situation, at morning more people use internet, so the
transfer
go up for interfaces and then it happen. The last time when i checked it was
7335 Kbps in and 12775Kbps out on em1
12825 Kbps in and 7263 Kbps out on em2
em0 transfer was null because i use it only to connect it directly to
other computers.
I laso got some messages on "ifstat" screen like this:
"istat: warning: rollover for interface % reinitialising"
Here are some additional informations that may help:
The kernel was generic (stable). I had to change one line in altq_hfsc.h
from #define HFSC_MAX_CLASSES 64
to #define HFSC_MAX_CLASSES 4096
dmesg:
OpenBSD 4.6 (NICRAM.MP) #0: Wed Feb 10 12:10:36 CET 2010
r...@router.marponet.pl:/usr/src/sys/arch/i386/compile/NICRAM.MP
cpu0: Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz ("GenuineIntel"
686-class) 2.99 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,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR
real mem = 2097115136 (1999MB)
avail mem = 2018914304 (1925MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 07/16/09, SMBIOS rev. 2.4 @
0xe23e0 (35 entries)
bios0: vendor Intel Corp. version "JOQ3510J.86A.1109.2009.0716.0319"
date 07/16/2009
bios0: Intel Corporation DQ35JO
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC WDDT MCFG ASF! DMAR ASPT WDTT SSDT SSDT
SSDT SSDT SSDT SSDT SSDT TCPA
acpi0: wakeup devices SLPB(S4) P32_(S4) UAR1(S4) ILAN(S4) PEGP(S4)
PEX0(S4) PEX1(S4) PEX2(S4) PEX3(S4) PEX4(S4) PEX5(S4) UHC1(S3) UHC2(S3)
UHC3(S3) UHC4(S3) EHCI(S3) EHC2(S3) UH42(S3) UHC5(S3) UHC6(S3) AZAL(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 332MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz ("GenuineIntel"
686-class) 2.99 GHz
cpu1:
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,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 6 (P32_)
acpiprt2 at acpi0: bus 1 (PEX0)
acpiprt3 at acpi0: bus 2 (PEX1)
acpiprt4 at acpi0: bus 3 (PEX2)
acpiprt5 at acpi0: bus 4 (PEX3)
acpiprt6 at acpi0: bus 5 (PEX4)
acpiprt7 at acpi0: bus -1 (PEX5)
acpicpu0 at acpi0: C1, PSS
acpicpu1 at acpi0: C1, PSS
acpibtn0 at acpi0: SLPB
bios0: ROM list: 0xc0000/0xb400! 0xcb800/0x2200!
cpu0: Enhanced SpeedStep 2990 MHz: speeds: 2997, 2664, 2331, 1998 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82Q35 Host" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel 82Q35 Video" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0x80000000, size 0x8000000
inteldrm0 at vga1: apic 2 int 16 (irq 11)
drm0 at inteldrm0
"Intel 82Q35 Video" rev 0x02 at pci0 dev 2 function 1 not configured
"Intel 82Q35 HECI" rev 0x02 at pci0 dev 3 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel ICH9 IGP AMT" rev 0x02: apic 2 int
20 (irq 9), address 00:1c:c0:06:8f:d1
uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 2 int
18 (irq 10)
uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 2 int
21 (irq 11)
uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x02: apic 2 int
17 (irq 9)
ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x02: apic 2 int
17 (irq 9)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb0 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x02: apic 2 int
17 (irq 255)
pci1 at ppb0 bus 1
em1 at pci1 dev 0 function 0 "Intel PRO/1000 PT (82572EI)" rev 0x06:
apic 2 int 16 (irq 11), address 00:1b:21:04:ec:92
ppb1 at pci0 dev 28 function 1 "Intel 82801I PCIE" rev 0x02: apic 2 int
20 (irq 255)
pci2 at ppb1 bus 2
em2 at pci2 dev 0 function 0 "Intel PRO/1000 PT (82572EI)" rev 0x06:
apic 2 int 17 (irq 9), address 00:1b:21:04:bb:1f
ppb2 at pci0 dev 28 function 2 "Intel 82801I PCIE" rev 0x02: apic 2 int
18 (irq 255)
pci3 at ppb2 bus 3
pciide0 at pci3 dev 0 function 0 "Marvell 88SE6101 IDE" rev 0xb2: DMA
(unsupported), channel 0 configured to native-PCI, channel 1 configured
to native-PCI
pciide0: using apic 2 int 18 (irq 10) for native-PCI interrupt
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVD-RAM GSA-H55L, 1.03> ATAPI
5/cdrom removable
pciide0: channel 1 ignored (not responding; disabled or no drives?)
ppb3 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x02: apic 2 int
19 (irq 255)
pci4 at ppb3 bus 4
ppb4 at pci0 dev 28 function 4 "Intel 82801I PCIE" rev 0x02: apic 2 int
17 (irq 255)
pci5 at ppb4 bus 5
uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x02: apic 2 int
23 (irq 10)
uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x02: apic 2 int
19 (irq 11)
uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x02: apic 2 int
18 (irq 10)
ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x02: apic 2 int
23 (irq 10)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x92
pci6 at ppb5 bus 6
ichpcib0 at pci0 dev 31 function 0 "Intel 82801IO LPC" rev 0x02: PM disabled
ahci0 at pci0 dev 31 function 2 "Intel 82801I AHCI" rev 0x02: apic 2 int
21 (irq 11), AHCI 1.2
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, ST3500320NS, SN04> SCSI3 0/direct fixed
sd0: 476940MB, 512 bytes/sec, 976773168 sec total
ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x02: apic 2
int 18 (irq 10)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-6400CL5
spdmem1 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-6400CL5
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb7 at uhci5: USB revision 1.0
uhub7 at usb7 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
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
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
uhidev0 at uhub6 port 2 configuration 1 interface 0 "BTC USB Multimedia
Keyboard" rev 1.10/1.00 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub6 port 2 configuration 1 interface 1 "BTC USB Multimedia
Keyboard" rev 1.10/1.00 addr 2
uhidev1: iclass 3/0, 3 report ids
uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=3, output=0, feature=0
uhid2 at uhidev1 reportid 3: input=3, output=0, feature=8
softraid0 at root
root on sd0a swap on sd0b dump on sd0b
ps ax:
PID TT STAT TIME COMMAND
1 ?? Is 0:00.00 /sbin/init
14566 ?? Is 0:00.00 syslogd: [priv] (syslogd)
11801 ?? I 0:00.01 syslogd -a /var/named/dev/log -a
/var/empty/dev/log
23026 ?? Is 0:00.00 pflogd: [priv] (pflogd)
12478 ?? S 0:07.72 pflogd: [running] -s 116 -i pflog0 -f
/var/log/pflog
6068 ?? Is 0:00.00 named: [priv] (named)
23074 ?? I 0:00.79 named
31495 ?? Is 0:00.00 /usr/sbin/dhcpd
26129 ?? Ss 0:00.16 httpd: parent [chroot /var/www] (httpd)
12548 ?? Is 0:00.00 /usr/libexec/ftpd -D -n -4 -l -t 120
12088 ?? Is 0:00.00 /usr/libexec/identd -b elo
2020 ?? Is 0:00.00 inetd
29996 ?? I 0:00.03 httpd: child (httpd)
18057 ?? I 0:00.03 httpd: child (httpd)
32703 ?? I 0:00.00 httpd: child (httpd)
20141 ?? I 0:00.03 httpd: child (httpd)
11409 ?? I 0:00.00 httpd: child (httpd)
28506 ?? Is 0:00.00 /usr/sbin/sshd
25965 ?? S 0:00.05 /usr/local/sbin/snmpd -c /etc/snmp.conf
3348 ?? Ss 0:00.02 /usr/local/sbin/thttpd -p 200 -dd /var/blokada
22494 ?? Ss 0:00.01 /usr/local/sbin/thttpd -p 201 -dd /var/biuletyn
24508 ?? Ss 0:00.01 /usr/local/sbin/ipfm -c /etc/ipfm.conf
32520 ?? Ss 0:00.48 /usr/local/libexec/symux
17599 ?? Ss 0:00.08 /usr/local/libexec/symon
3309 ?? Ss 0:00.00 cron
31688 ?? Is 0:00.17 sshd: r...@ttyp0 (sshd)
24575 p0 Is+ 0:00.01 -bash (bash)
11547 C0 Ss 0:00.02 -bash (bash)
21550 C0 R+/1 0:00.25 ps -ax
26008 C1 Is+ 0:00.00 /usr/libexec/getty std.9600 ttyC1
9754 C2 Is+ 0:00.00 /usr/libexec/getty std.9600 ttyC2
18646 C3 Is+ 0:00.00 /usr/libexec/getty std.9600 ttyC3
11851 C5 Is+ 0:00.00 /usr/libexec/getty std.9600 ttyC5
pfctl -si (on the working old box i'm not sure if it may help):
Status: Enabled for 1 days 00:00:27 Debug: Urgent
Interface Stats for em0 IPv4 IPv6
Bytes In 398061297746 0
Bytes Out 207618936652 64
Packets In
Passed 468100154 0
Blocked 9324452 0
Packets Out
Passed 434784520 1
Blocked 14957 0
State Table Total Rate
current entries 52829
searches 1840114191 21291.0/s
inserts 56481291 653.5/s
removals 56428462 652.9/s
Counters
match 66942622 774.6/s
bad-offset 0 0.0/s
fragment 27608 0.3/s
short 11835 0.1/s
normalize 0 0.0/s
memory 2993 0.0/s
bad-timestamp 0 0.0/s
congestion 777927 9.0/s
ip-option 9976 0.1/s
proto-cksum 0 0.0/s
state-mismatch 67929 0.8/s
state-insert 167 0.0/s
state-limit 0 0.0/s
src-limit 0 0.0/s
synproxy 0 0.0/s
sysctl.conf:
# $OpenBSD: sysctl.conf,v 1.46 2008/01/05 18:38:37 mbalmer Exp $
#
# This file contains a list of sysctl options the user wants set at
# boot time. See sysctl(3) and sysctl(8) for more information on
# the many available variables.
#
net.inet.ip.forwarding=1 # 1=Permit forwarding (routing) of IPv4 packets
#net.inet.ip.mforwarding=1 # 1=Permit forwarding (routing) of IPv4
multicast packets
#net.inet.ip.multipath=1 # 1=Enable IP multipath routing
#net.inet6.ip6.forwarding=1 # 1=Permit forwarding (routing) of IPv6
packets
#net.inet6.ip6.mforwarding=1 # 1=Permit forwarding (routing) of IPv6
multicast packets
#net.inet6.ip6.multipath=1 # 1=Enable IPv6 multipath routing
#net.inet6.ip6.accept_rtadv=1 # 1=Permit IPv6 autoconf (forwarding
must be 0)
#net.inet.tcp.rfc1323=0 # 0=Disable TCP RFC1323 extensions (for
if tcp is slow)
#net.inet.tcp.rfc3390=0 # 0=Disable RFC3390 for TCP window increasing
#net.inet.esp.enable=0 # 0=Disable the ESP IPsec protocol
#net.inet.ah.enable=0 # 0=Disable the AH IPsec protocol
#net.inet.esp.udpencap=0 # 0=Disable ESP-in-UDP encapsulation
#net.inet.ipcomp.enable=1 # 1=Enable the IPCOMP protocol
#net.inet.etherip.allow=1 # 1=Enable the Ethernet-over-IP protocol
#net.inet.tcp.ecn=1 # 1=Enable the TCP ECN extension
#net.inet.carp.preempt=1 # 1=Enable carp(4) preemption
#net.inet.carp.log=1 # 1=Enable logging of carp(4) packets
#ddb.panic=0 # 0=Do not drop into ddb on a kernel panic
#ddb.console=1 # 1=Permit entry of ddb from the console
#fs.posix.setuid=0 # 0=Traditional BSD chown() semantics
vm.swapencrypt.enable=1 # 0=Do not encrypt pages that go to swap
#vfs.nfs.iothreads=4 # Number of nfsio kernel threads
#net.inet.ip.mtudisc=0 # 0=Disable tcp mtu discovery
#kern.usercrypto=0 # 0=Disable userland use of /dev/crypto
#kern.splassert=2 # 2=Enable with verbose error messages
#kern.nosuidcoredump=2 # 2=Put suid coredumps in /var/crash
#kern.watchdog.period=32 # >0=Enable hardware watchdog(4) timer if
available
#kern.watchdog.auto=0 # 0=Disable automatic watchdog(4) retriggering
#machdep.allowaperture=2 # See xf86(4)
#machdep.apmwarn=10 # battery % when apm status messages enabled
#machdep.apmhalt=1 # 1=powerdown hack, try if halt -p doesn't work
#machdep.kbdreset=1 # permit console CTRL-ALT-DEL to do a nice halt
#machdep.userldt=1 # allow userland programs to play with ldt,
# required by some ports
#kern.emul.aout=1 # enable running dynamic OpenBSD a.out bins
#kern.emul.bsdos=1 # enable running BSD/OS binaries
#kern.emul.freebsd=1 # enable running FreeBSD binaries
#kern.emul.ibcs2=1 # enable running iBCS2 binaries
#kern.emul.linux=1 # enable running Linux binaries
#kern.emul.svr4=1 # enable running SVR4 binaries
kern.maxproc=1536
net.inet.ip.porthifirst=51000
net.inet.ip.porthilast=52000
kern.maxfiles=16384
kern.seminfo.semmni=256
kern.seminfo.semmns=2048
kern.shminfo.shmmax=50331648
net.inet.tcp.sendspace=65536
net.inet.tcp.recvspace=65536
net.inet.udp.recvspace=65536
net.inet.udp.sendspace=65536
net.inet.ip.maxqueue=1200
I cannot show pf.conf here on the list.
Please anyone help if You can.
If there is some more i can do to diagnose problem,
please tell me what to do.
Best Regards
--
Marcin "Nicram" Wilk
Homepage: http://nicram.sytes.net/