panics with 5.2.1 on single processor on dual motherboard

From: Rory Arms <rorya_at_TrueStep.com>
Date: Thu, 29 Apr 2004 12:54:56 -0400
Here's another panic I'm getting on a FreeBSD 5.2.1 machine, with 256  
MB of RAM. Note, it is dual capable, but it is running with a single  
450 Mhz Pentium II processor. The motherboard is a Tyan Thunderbolt.

The kernel currently has SMP, APIC & ACPI enabled. Sometimes it will go  
two to three weeks before it crashes and other times it will only last  
a few days to a week, it seems to be random. I have 5.2.1 installed on  
two other dual processor machines and it seems to be working just fine.  
The biggest difference is of course, that these others have two  
processors and this one has one. Could this be a source of the problem?  
I've even tried compiling w/o APIC, ACPI & SMP w/o success. Ever since  
upgrading from 5.1 (which had 120 day uptime when it was updated) it  
has been unstable.

So, I've enabled dumps on it to get a corefile to analyze, as well as  
running a kernel with the debug option on. Here are two core dump  
backtraces:

 > sudo gdb -k /boot/kernel/kernel vmcore.1
Password:
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and  
you are
welcome to change it and/or distribute copies of it under certain  
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for  
details.
This GDB was configured as "i386-unknown-freebsd"...
(no debugging symbols found)...
panic: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x5343447a
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc0459890
stack pointer           = 0x10:0xcdcccc88
frame pointer           = 0x10:0xcdcccc98
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         = 36 (swi8: tty:sio clock)
trap number             = 12
panic: page fault
cpuid = 0;

syncing disks, buffers remaining... 2164 2164 2164 2164 2164 2164 2164  
2164 2164 2164 2164 2164 2164 2164 2164 2164 2164 2164 2164 2164
giving up on 107 buffers
Uptime: 25d1h52m39s
Dumping 255 MB
  16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
---
Reading symbols from  
/usr/obj/usr/src/sys/TREX/modules/usr/src/sys/modules/acpi/ 
acpi.ko.debug...done.
Loaded symbols for  
/usr/obj/usr/src/sys/TREX/modules/usr/src/sys/modules/acpi/ 
acpi.ko.debug
#0  0xc04fe7db in doadump ()
(kgdb) bt
#0  0xc04fe7db in doadump ()
#1  0xc04fee87 in boot ()
#2  0xc04ff2a0 in poweroff_wait ()
#3  0xc06a52ac in trap_fatal ()
#4  0xc06a4f52 in trap_pfault ()
#5  0xc06a4aed in trap ()
#6  0xc0691778 in calltrap ()
#7  0xc0455745 in ipfr_slowtimer ()
#8  0xc051120e in softclock ()
#9  0xc04e92a8 in ithread_loop ()
#10 0xc04e7ed0 in fork_exit ()
(kgdb)

# sudo gdb -k /boot/kernel/kernel vmcore.2
Password:
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and  
you are
welcome to change it and/or distribute copies of it under certain  
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for  
details.
This GDB was configured as "i386-unknown-freebsd"...
(no debugging symbols found)...
panic: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x4302a8f8
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc063c9b3
stack pointer           = 0x10:0xce6f3c34
frame pointer           = 0x10:0xce6f3c88
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         = 50 (syncer)
trap number             = 12
panic: page fault
cpuid = 0;

syncing disks, buffers remaining...

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x38374d79
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc063d7c6
stack pointer           = 0x10:0xce6f3a08
frame pointer           = 0x10:0xce6f3a44
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         = 50 (syncer)
trap number             = 12
panic: page fault
cpuid = 0;
Uptime: 2d5h16m39s
Dumping 255 MB
  16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
---
Reading symbols from  
/usr/obj/usr/src/sys/TREX/modules/usr/src/sys/modules/acpi/ 
acpi.ko.debug...done.
Loaded symbols for  
/usr/obj/usr/src/sys/TREX/modules/usr/src/sys/modules/acpi/ 
acpi.ko.debug
#0  0xc04fe7db in doadump ()
(kgdb) bt
#0  0xc04fe7db in doadump ()
#1  0xc04fee87 in boot ()
#2  0xc04ff2a0 in poweroff_wait ()
#3  0xc06a52ac in trap_fatal ()
#4  0xc06a4f52 in trap_pfault ()
#5  0xc06a4aed in trap ()
#6  0xc0691778 in calltrap ()
#7  0xc063cb4a in ffs_sync ()
#8  0xc0562b8e in sync ()
#9  0xc04fe995 in boot ()
#10 0xc04ff2a0 in poweroff_wait ()
#11 0xc06a52ac in trap_fatal ()
#12 0xc06a4f52 in trap_pfault ()
#13 0xc06a4aed in trap ()
#14 0xc0691778 in calltrap ()
#15 0xc05624ca in sync_fsync ()
#16 0xc055e383 in sched_sync ()
#17 0xc04e7ed0 in fork_exit ()
(kgdb)


kernel conf:

 > grep -v ^# /sys/i386/conf/TREX

machine         i386
cpu             I686_CPU
ident           TREX


makeoptions     DEBUG=-g                #Build kernel with gdb(1) debug  
symbols

options         SCHED_4BSD              #4BSD scheduler
options         INET                    #InterNETworking
options         INET6                   #IPv6 communications protocols
options         FFS                     #Berkeley Fast Filesystem
options         SOFTUPDATES             #Enable FFS soft updates support
options         UFS_ACL                 #Support for access control  
lists
options         UFS_DIRHASH             #Improve performance on big  
directories
options         MD_ROOT                 #MD is a potential root device
options         NFSCLIENT               #Network Filesystem Client
options         NFSSERVER               #Network Filesystem Server
options         NFS_ROOT                #NFS usable as root device,  
requires NFSCLIENT
options         MSDOSFS                 #MSDOS Filesystem
options         CD9660                  #ISO 9660 Filesystem
options         PROCFS                  #Process filesystem (requires  
PSEUDOFS)
options         PSEUDOFS                #Pseudo-filesystem framework
options         COMPAT_43               #Compatible with BSD 4.3 [KEEP  
THIS!]
options         COMPAT_FREEBSD4         #Compatible with FreeBSD4
options         SCSI_DELAY=15000        #Delay (in ms) before probing  
SCSI
options         KTRACE                  #ktrace(1) support
options         SYSVSHM                 #SYSV-style shared memory
options         SYSVMSG                 #SYSV-style message queues
options         SYSVSEM                 #SYSV-style semaphores
options         _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time  
extensions
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
options         AHC_REG_PRETTY_PRINT    # Print register bitfields in  
debug
                                         # output.  Adds ~128k to driver.
options         AHD_REG_PRETTY_PRINT    # Print register bitfields in  
debug
                                         # output.  Adds ~215k to driver.
options         PFIL_HOOKS              # pfil(9) framework

options         IPFILTER                # Darren Reed's IP Filter
options         IPFILTER_LOG            # Darren Reed's IP Filter

options         IPSEC
options         IPSEC_ESP


options         PANIC_REBOOT_WAIT_TIME=16

options         SMP                     # Symmetric MultiProcessor  
Kernel
device          apic                    # I/O APIC

device          isa
device          pci

device          fdc


device          ahc             # AHA2940 and onboard AIC7xxx devices




device          scbus           # SCSI bus (required)
device          da              # Direct Access (disks)
device          sa              # Sequential Access (tape etc)
device          cd              # CD
device          pass            # Passthrough device (direct SCSI  
access)
device          ses             # SCSI Environmental Services (and  
SAF-TE)


device          atkbdc          # AT keyboard controller
device          atkbd           # AT keyboard
device          psm             # PS/2 mouse

device          vga             # VGA video card driver


device          sc


device          agp             # support several AGP chipsets

device          npx

device          pmtimer


device          sio             # 8250, 16[45]50 based serial ports

device          ppc
device          ppbus           # Parallel port bus (required)
device          lpt             # Printer
device          ppi             # Parallel port interface device


device          em              # Intel PRO/1000 adapter Gigabit  
Ethernet Card

device          miibus          # MII bus support
device          fxp             # Intel EtherExpress PRO/100B (82557,  
82558)




device          random          # Entropy device
device          loop            # Network loopback
device          ether           # Ethernet support
device          sl              # Kernel SLIP
device          ppp             # Kernel PPP
device          tun             # Packet tunnel.
device          pty             # Pseudo-ttys (telnet etc)
device          md              # Memory "disks"
device          gif             # IPv6 and IPv4 tunneling
device          faith           # IPv6-to-IPv4 relaying (translation)

device          bpf             # Berkeley packet filter

output from dmesg(8):

 > dmesg
Copyright (c) 1992-2004 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.2.1-RELEASE-p1 #5: Tue Mar 23 02:27:49 EST 2004
     root_at_Trex:/usr/obj/usr/src/sys/TREX
Preloaded elf kernel "/boot/kernel/kernel" at 0xc083e000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc083e244.
ACPI APIC Table: <OEMTYN OEMTYNTB>
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium II/Pentium II Xeon/Celeron (451.03-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x652  Stepping = 2
    
Features=0x183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE, 
MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 268304384 (255 MB)
avail memory = 251101184 (239 MB)
ioapic0 <Version 1.1> irqs 0-23 on motherboard
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <OEMTYN OEMTYNTB> on motherboard
acpi0: Overriding SCI Interrupt from IRQ 9 to IRQ 20
pcibios: BIOS version 2.10
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_cpu1: <CPU> on acpi0
device_probe_and_attach: acpi_cpu1 attach returned 6
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82443GX host to PCI bridge> mem 0xf8000000-0xfbffffff at  
device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib1: slot 0 INTA is routed to irq 16
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
pci0: <mass storage, ATA> at device 7.1 (no driver attached)
pci0: <serial bus, USB> at device 7.2 (no driver attached)
pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached)
ahc0: <Adaptec aic7896/97 Ultra2 SCSI adapter> port 0xe400-0xe4ff mem  
0xfebfe000-0xfebfefff irq 16 at device 11.0 on pci0
aic7896/97: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs
ahc1: <Adaptec aic7896/97 Ultra2 SCSI adapter> port 0xe800-0xe8ff mem  
0xfebff000-0xfebfffff irq 16 at device 11.1 on pci0
aic7896/97: Ultra2 Wide Channel B, SCSI Id=7, 32/253 SCBs
pci0: <multimedia, audio> at device 12.0 (no driver attached)
fxp0: <Intel 82559 Pro/100 Ethernet> port 0xee80-0xeebf mem  
0xfea00000-0xfeafffff,0xfebfd000-0xfebfdfff irq 19 at device 13.0 on  
pci0
fxp0: Ethernet address 00:e0:81:10:7e:eb
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.19> port  
0xed80-0xedbf mem 0xfeba0000-0xfebbffff irq 16 at device 16.0 on pci0
em0:  Speed:N/A  Duplex:N/A
em1: <Intel(R) PRO/1000 Network Connection, Version - 1.7.19> port  
0xed00-0xed3f mem 0xfeb80000-0xfeb9ffff irq 17 at device 17.0 on pci0
em1:  Speed:N/A  Duplex:N/A
sio0: configured irq 19 not in bitmap of probed irqs 0x200
sio0: port may not be enabled
sio0: <3COM PCI FaxModem> port 0xeff0-0xeff7 irq 19 at device 19.0 on  
pci0
sio0: moving to sio4
sio4: type 16550A
acpi_button0: <Sleep Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
fdc0: ready for input in output
fdc0: cmd 3 failed at out byte 1 of 3
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A, console
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
acpi_cpu1: <CPU> on acpi0
device_probe_and_attach: acpi_cpu1 attach returned 6
fdc0: ready for input in output
fdc0: cmd 3 failed at out byte 1 of 3
orm0: <Option ROMs> at iomem 0xc8000-0xcd7ff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port  
0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on  
isa0
Timecounter "TSC" frequency 451025658 Hz quality 800
Timecounters tick every 10.000 msec
IPsec: Initialized Security Association Processing.
IP Filter: v3.4.31 initialized.  Default = pass all, Logging = enabled
Waiting 15 seconds for SCSI devices to settle
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
em0: Link is up 1000 Mbps Full Duplex
GEOM: create disk cd0 dp=0xc2d22e00
GEOM: create disk da0 dp=0xc2d4bc50
GEOM: create disk da1 dp=0xc2d4b850
cd0 at ahc1 bus 0 target 0 lun 0
cd0: <TOSHIBA CD-ROM XM-6401TA 1015> Removable CD-ROM SCSI-2 device
cd0: 20.000MB/s transfers (20.000MHz, offset 16)
cd0: Attempt to query device size failed: NOT READY, Medium not present
da0 at ahc1 bus 0 target 2 lun 0
da0: <IBM DNES-318350Y SA30> Fixed Direct Access SCSI-3 device
da0: 40.000MB/s transfers (20.000MHz, offset 31, 16bit), Tagged  
Queueing Enabled
da0: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
da1 at ahc1 bus 0 target 5 lun 0
da1: <IBM DNES-318350Y SA30> Fixed Direct Access SCSI-3 device
da1: 40.000MB/s transfers (20.000MHz, offset 31, 16bit), Tagged  
Queueing Enabled
da1: 17501MB (35843670 512 byte sectors: 255H 63S/T 2231C)
Mounting root from ufs:/dev/da1s1a
WARNING: / was not properly dismounted
WARNING: /tmp was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
WARNING: /export/sbdata1 was not properly dismounted
em1: Link is up 100 Mbps Full Duplex
em0: Link is up 1000 Mbps Full Duplex


Hope someone can shed some light on the situation. Since this has been  
a problem, I've tried kernels w/o ACPI, SMP and APIC, with no luck,  
they've all eventually led to a lockup or panic. Please reply directly  
as I don't always stay on top of -current.

-rory
Received on Thu Apr 29 2004 - 07:55:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:52 UTC