Trying to compile 4.8-stable:

*1st attempt:*
uvm_fault(0xd0a05960, 0x8000, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      pmap_page_remove+0xad: movl    0x4(%esi),%eax
ddb>

More details in dmesg below.

*2nd attempt:*
cc  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wno-main
-Wno-uninitialized -Wno-format  -Wstack-larger-than-2047
-fno-builtin-printf -fno-builtin-snprintf  -fno-builtin-vsnprintf
-fno-builtin-log  -fno-builtin-log2 -fno-builtin-malloc -O2 -pipe
-nostdinc -I. -I../../../.. -I../../../../arch -DDDB -DDIAGNOSTIC
-DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DCRYPTO -DSYSVMSG -DSYSVSEM
-DSYSVSHM -DUVM_SWAP_ENCRYPT -DCOMPAT_43 -DLKM -DFFS -DFFS2
-DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNNPFS
-DTCP_SACK -DTCP_ECN -DTCP_SIGNATURE -DNFSCLIENT -DNFSSERVER -DCD9660
-DUDF -DMSDOSFS -DFIFO -DINET -DALTQ -DINET6 -DIPSEC -DPPP_BSDCOMP
-DPPP_DEFLATE -DMROUTING -DBOOT_CONFIG -DUSER_PCICONF -DKVM86 -DUSER_LDT
-DAPERTURE -DCOMPAT_SVR4 -DCOMPAT_LINUX -DCOMPAT_FREEBSD -DCOMPAT_AOUT
-DPROCFS -DPCIVERBOSE -DEISAVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL
-DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6"
-DWSDISPLAY_COMPAT_PCVT -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80
-D_KERNEL  -c ../../../../dev/pci/if_wpi.c
../../../../dev/pci/if_wpi.c: In function 'wpi_read_firmware':
../../../../dev/pci/if_wpi.c:3019: error: stray '\301' in program
../../../../dev/pci/if_wpi.c:3019: error: 'WPI_FW_TEXT_M' undeclared
(first use in this function)
../../../../dev/pci/if_wpi.c:3019: error: (Each undeclared identifier is
reported only once
../../../../dev/pci/if_wpi.c:3019: error: for each function it appears in.)
../../../../dev/pci/if_wpi.c:3019: error: expected ')' before 'XSZ'
*** Error code 1

Stop in /usr/src/sys/arch/i386/compile/GENERIC (line 92 of
/usr/share/mk/sys.mk).

*3rd attempt:*
cc  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wno-main
-Wno-uninitialized -Wno-format  -Wstack-larger-than-2047
-fno-builtin-printf -fno-builtin-snprintf  -fno-builtin-vsnprintf
-fno-builtin-log  -fno-builtin-log2 -fno-builtin-malloc -O2 -pipe
-nostdinc -I. -I../../../.. -I../../../../arch -DDDB -DDIAGNOSTIC
-DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DCRYPTO -DSYSVMSG -DSYSVSEM
-DSYSVSHM -DUVM_SWAP_ENCRYPT -DCOMPAT_43 -DLKM -DFFS -DFFS2
-DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNNPFS
-DTCP_SACK -DTCP_ECN -DTCP_SIGNATURE -DNFSCLIENT -DNFSSERVER -DCD9660
-DUDF -DMSDOSFS -DFIFO -DINET -DALTQ -DINET6 -DIPSEC -DPPP_BSDCOMP
-DPPP_DEFLATE -DMROUTING -DBOOT_CONFIG -DUSER_PCICONF -DKVM86 -DUSER_LDT
-DAPERTURE -DCOMPAT_SVR4 -DCOMPAT_LINUX -DCOMPAT_FREEBSD -DCOMPAT_AOUT
-DPROCFS -DPCIVERBOSE -DEISAVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL
-DWSDISPLAY_COMPAT_RAWKBD -DWSDISPLAY_DEFAULTSCREENS="6"
-DWSDISPLAY_COMPAT_PCVT -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80
-D_KERNEL  -c ../../../../dev/ic/if_wi.c
../../../../dev/ic/if_wi.c: In function 'wi_setmulti':
../../../../dev/ic/if_wi.c:1396: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** Error code 1

Stop in /usr/src/sys/arch/i386/compile/GENERIC (line 92 of
/usr/share/mk/sys.mk).

*4th attempt:*
Successfull.


I assume that it is a hardware problem. Am I right?

Does successfull compilation mean that compiled kernel is ok? Can you
share your experience?

Dmesg:

OpenBSD 4.8 (GENERIC) #0: Thu Feb 10 16:36:16 CET 2011
    root@xxx:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Celeron(R) CPU 2.40GHz ("GenuineIntel" 686-class) 2.40 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
,CNXT-ID,xTPR
real mem  = 534540288 (509MB)
avail mem = 515837952 (491MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/02/04, BIOS32 rev. 0 @ 0xf0010,
SMBIOS rev. 2.3 @ 0xfba10 (80 entries)
bios0: vendor Intel Corp. version "RL86510A.86A.0075.P15.0404021333"
date 04/02/2004
bios0: Intel Corporation D865PERL
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC ASF! WDDT
acpi0: wakeup devices TANA(S4) P0P3(S4) AC97(S4) USB0(S4) USB1(S4)
USB2(S4) USB3(S4) USB7(S4) UAR1(S4) SLPB(S4)
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 133MHz
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P1)
acpiprt2 at acpi0: bus 2 (P0P2)
acpiprt3 at acpi0: bus 3 (P0P3)
acpicpu0 at acpi0
acpipwrres0 at acpi0: URP1
acpipwrres1 at acpi0: FDDP
acpipwrres2 at acpi0: LPTP
acpibtn0 at acpi0: SLPB
bios0: ROM list: 0xc0000/0xd000
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82865G Host" rev 0x02
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xf8000000, size 0x4000000
ppb0 at pci0 dev 1 function 0 "Intel 82865G AGP" rev 0x02
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon 7500" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 1 int 16 (irq 11)
drm0 at radeondrm0
ppb1 at pci0 dev 3 function 0 "Intel 82865G CSA" rev 0x02
pci2 at ppb1 bus 2
em0 at pci2 dev 1 function 0 "Intel PRO/1000CT (82547EI)" rev 0x00: apic
1 int 18 (irq 10), address 00:11:11:8c:a5:c9
uhci0 at pci0 dev 29 function 0 "Intel 82801EB/ER USB" rev 0x02: apic 1
int 16 (irq 11)
uhci1 at pci0 dev 29 function 1 "Intel 82801EB/ER USB" rev 0x02: apic 1
int 19 (irq 5)
uhci2 at pci0 dev 29 function 2 "Intel 82801EB/ER USB" rev 0x02: apic 1
int 18 (irq 10)
uhci3 at pci0 dev 29 function 3 "Intel 82801EB/ER USB" rev 0x02: apic 1
int 16 (irq 11)
ehci0 at pci0 dev 29 function 7 "Intel 82801EB/ER USB2" rev 0x02: apic 1
int 23 (irq 9)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xc2
pci3 at ppb2 bus 3
"AT&T/Lucent FW322 1394" rev 0x61 at pci3 dev 7 function 0 not configured
ichpcib0 at pci0 dev 31 function 0 "Intel 82801EB/ER LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801EB/ER IDE" rev 0x02: DMA,
channel 0 configured to compatibility, channel 1 configured to compati
bility
wd0 at pciide0 channel 0 drive 0: <IC35L060AVVA07-0>
wd0: 16-sector PIO, LBA, 58644MB, 120103200 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVD-ROM GDR8163B, 0L23> ATAPI
5/cdrom removable
cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
pciide1 at pci0 dev 31 function 2 "Intel 82801EB SATA" rev 0x02: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 1 int 18 (irq 10) for native-PCI interrupt
ichiic0 at pci0 dev 31 function 3 "Intel 82801EB/ER SMBus" rev 0x02:
apic 1 int 17 (irq 3)
iic0 at ichiic0
adt0 at iic0 addr 0x2e: emc6d100 rev 0x65
spdmem0 at iic0 addr 0x50: 256MB DDR SDRAM non-parity PC3200CL2.5
spdmem1 at iic0 addr 0x52: 256MB DDR SDRAM non-parity PC3200CL2.5
auich0 at pci0 dev 31 function 5 "Intel 82801EB/ER AC97" rev 0x02: apic
1 int 17 (irq 3), ICH5 AC97
ac97: codec id 0x41445375 (Analog Devices AD1985)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
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
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
mtrr: Pentium Pro MTRR support
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
uvm_fault(0xd0a05960, 0x8000, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      pmap_page_remove+0xad:  movl    0x4(%esi),%eax
ddb> pmap_page_remove(d132a9d8,d58a03c0,d0a06d60,d97b2e9c,d5c948c4) at
pmap_page_remove+0xad
uvm_anfree(d58a0dc8,d58b21b8,0,d58f7108,d58f7108) at uvm_anfree+0xac
amap_wipeout(d5c948c4,0,f4,0,d58b26e0) at amap_wipeout+0x94
uvm_map_unreference_amap(d58f7108,0,1000,d0ac1aa0,d0ac1aa0) at
uvm_map_unreference_amap+0x2f
uvm_unmap_detach(d5a62528,0,cfbfe000,d97b2f3c,0) at uvm_unmap_detach+0x5b
uvmspace_free(d5b55b44,1,1,d97b2f6c,d0202fe5) at uvmspace_free+0xfb
uvm_exit(d5afb3c4,d099aadc,4,d08974ee,0) at uvm_exit+0x15
reaper(d5cf8140) at reaper+0x8a
Bad frame pointer: 0xd0b75e88
ddb>    PID   PPID   PGRP    UID  S       FLAGS  WAIT          COMMAND

 13041   5614  12020      0  3      0x4080  wait          cc
  5614  12020  12020      0  3      0x4080  pause         sh
 12020  17322  12020      0  3      0x4080  wait          make
 17322  17874  17322      0  3      0x4080  pause         ksh
 17874  17592  17874   1000  3      0x4080  pause         ksh
 17592  21529  21529   1000  3       0x180  select        sshd
 21529  12680  21529      0  3      0x4180  netio         sshd
 32544   4080  32544      0  3      0x4080  ttyin         ksh
  4080   3896   4080   1002  3      0x4080  pause         ksh
    3896  30431  30431   1002  3       0x180  select        sshd
 30431  12680  30431      0  3      0x4080  netio         sshd
  1350      1   1350     92  3       0x180  select        rtadvd
 21849      1  21849     92  3       0x180  select        rtadvd
 28135      1  28135     92  3       0x180  select        rtadvd
 22374      1  22374     92  3       0x180  select        rtadvd
 27154      1  27154      0  3        0x80  select        dhcp6s
 23342      1  23342      0  3        0x80  select        dhcp6s
 30725      1  30725      0  3        0x80  select        dhcp6s
 17505      1  17505      0  3        0x80  select        dhcp6s
  6187      1   6187      0  3     0x40180  select        sendmail
  6678      1   6678      0  3      0x4080  ttyin         getty
 27535      1  27535      0  3      0x4080  ttyin         getty
  3336      1   3336      0  3      0x4080  ttyin         getty
  5601      1   5601      0  3      0x4080  ttyin         getty
 21378      1  21378      0  3      0x4080  ttyin         getty
  9567      1   9567      0  3        0x80  select        cron
  9337      1   9337      0  3       0x180  select        inetd
 12680      1  12680      0  3        0x80  select        sshd
 29570  18693   6871     83  3       0x180  poll          ntpd
 18693   6871   6871     83  3       0x180  poll          ntpd
  6871      1   6871      0  3        0x80  poll          ntpd
 27833   7912   7912     74  3       0x180  bpf           pflogd
  7912      1   7912      0  3        0x80  netio         pflogd
 18610   5531   5531     73  2       0x180                syslogd
  5531      1   5531      0  3        0x88  netio         syslogd
    18      0      0      0  3    0x100200  bored         crypto
    17      0      0      0  3    0x100200  aiodoned      aiodoned
    16      0      0      0  3    0x100200  syncer        update
    15      0      0      0  3    0x100200  cleaner       cleaner
*   14      0      0      0  7    0x100200                reaper
    13      0      0      0  3    0x100200  pgdaemon      pagedaemon
    12      0      0      0  3    0x100200  pftm          pfpurge
    11      0      0      0  3    0x100200  usbevt        usb4
    10      0      0      0  3    0x100200  usbevt        usb3
     9      0      0      0  3    0x100200  usbevt        usb2
     8      0      0      0  3    0x100200  usbevt        usb1
     7      0      0      0  3    0x100200  usbtsk        usbtask
     6      0      0      0  3    0x100200  usbevt        usb0
     5      0      0      0  3    0x100200  acpi0         acpi0
     4      0      0      0  3    0x100200  bored         syswq
     3      0      0      0  3  0x40100200                idle0
     2      0      0      0  3    0x100200  kmalloc       kmthread
     1      0      1      0  3      0x4080  wait          init
     0     -1      0      0  3     0x80200  scheduler     swapper
 14098  13041  12020      0  6      0x6000                cc1
 15868  13041  12020      0  5      0x6000                as
ddb> No such command
ddb> ds                  0x10
es                  0x10
fs            0xd0a20058        tcp_debug+0xc7f8
gs            0xd0a00010        db_break_table+0xad0
edi                    0
esi               0x8000
ebp           0xd97b2e7c        end+0x8cee778
ebx           0xd132a9d8        end+0x8662d4
edx           0xd132a9d8        end+0x8662d4
ecx           0xd0a24080        uvm_anon_pool
eax               0x8000
eip           0xd056c69d        pmap_page_remove+0xad
cs                   0x8
eflags           0x10206
esp           0xd97b2e44        end+0x8cee740
ss            0xd97b0010        end+0x8ceb90c
pmap_page_remove+0xad:  movl

Lukasz

Reply via email to