Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Dec 2008 15:48:53 +0100 (CET)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        freebsd-questions@freebsd.org
Subject:   FreeBSD amd64 crash - why?
Message-ID:  <20081211154602.M1327@wojtek.tensor.gdynia.pl>

next in thread | raw e-mail | index | archive | help
i have regular crashes (kernel panic+reboots) every about a month.

any idea why?

last time i built kernel with debug symbols, here what i get with kgdb

any help is very welcome :)


Script started on Thu Dec 11 15:48:08 2008
[root@serwer ~]# kgdb /boot/kernel/kernel /var/crash/vmcore.0
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "amd64-marcel-freebsd"...

Unread portion of the kernel message buffer:
kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0xb4
fault code		= user write data, page not present
instruction pointer	= 0x8:0xffffffffa5381b00
stack pointer	        = 0x10:0xffffffffa53819a0
frame pointer	        = 0x10:0xffffffff8068d100
code segment		= base 0x0, limit 0x0, type 0x0
 			= DPL 0, pres 0, long 0, def32 0, gran 0
processor eflags	= resume, IOPL = 0
current process		= 79847 (sendmail)
trap number		= 12
panic: page fault
cpuid = 0
Uptime: 8d6h48m4s
Physical memory: 1014 MB
Dumping 220 MB: 205 189 173 157 141 125 109 93 77 61 45 29 13

Reading symbols from /usr/local/lib/zaptel/zaptel.ko...done.
Loaded symbols for /usr/local/lib/zaptel/zaptel.ko
Reading symbols from /usr/local/lib/zaptel/ztdummy.ko...done.
Loaded symbols for /usr/local/lib/zaptel/ztdummy.ko
#0  doadump () at pcpu.h:195
195	pcpu.h: No such file or directory.
 	in pcpu.h
(kgdb) bt\ 
#0  doadump () at pcpu.h:195
#1  0x0000000000000004 in ?? ()
#2  0xffffffff8029cde9 in boot (howto=260) at ../../../kern/kern_shutdown.c:418
#3  0xffffffff8029d202 in panic (fmt=0x104 <Address 0x104 out of bounds>)
     at ../../../kern/kern_shutdown.c:574
#4  0xffffffff804da163 in trap_fatal (frame=0xffffff0001ae06e0, eva=Variable "eva" is not available.
)
     at ../../../amd64/amd64/trap.c:764
#5  0xffffffff804da535 in trap_pfault (frame=0xffffffffa53818f0, usermode=0)
     at ../../../amd64/amd64/trap.c:680
#6  0xffffffff804dae85 in trap (frame=0xffffffffa53818f0) at ../../../amd64/amd64/trap.c:449
#7  0xffffffff804c083e in calltrap () at ../../../amd64/amd64/exception.S:209
#8  0xffffffffa5381b00 in ?? ()
#9  0xffffff0001ae06e0 in ?? ()
#10 0xffffffff804cb596 in ipi_bitmap_handler (frame=
       {tf_rdi = -2140742176, tf_rsi = -1523049488, tf_rdx = 4104, tf_rcx = 715684, tf_r8 = -1098907750400, tf_r9 = -2140669600, tf_rax = 7840359, tf_rbx = -2140742176, tf_rbp = -2140614400, tf_r10 = 4640, tf_r11 = 116, tf_r12 = 5153376776576, tf_r13 = -1523049728, tf_r14 = 71567949, tf_r15 = 2, tf_trapno = -1523049712, tf_addr = -1099483445536, tf_flags = -1099212052096, tf_err = 0, tf_rip = -2145744350, tf_cs = 8, tf_rflags = 582, tf_rsp = -1523049824, tf_ss = 16})
     at ../../../amd64/amd64/mp_machdep.c:979
#11 0xffffffff804c1236 in Xipi_intr_bitmap_handler () at apic_vector.S:206
#12 0xffffffff801a8a22 in acpi_timer_read () at cpufunc.h:239
#13 0xffffffff801a8a47 in acpi_timer_get_timecount_safe (tc=Variable "tc" is not available.
) at ../../../dev/acpica/acpi_timer.c:244
#14 0xffffffff802a81aa in binuptime (bt=0xffffffffa5381b00) at ../../../kern/kern_tc.c:167
#15 0xffffffff802a8230 in bintime (bt=0xffffffffa5381b00) at ../../../kern/kern_tc.c:217
#16 0xffffffff802a82b7 in microtime (tvp=0xffffffffa5381b20) at ../../../kern/kern_tc.c:237
#17 0xffffffff802adb17 in gettimeofday (td=Variable "td" is not available.
) at ../../../kern/kern_time.c:430
#18 0xffffffff804da754 in syscall (frame=0xffffffffa5381c80) at ../../../amd64/amd64/trap.c:907
#19 0xffffffff804c0a4b in Xfast_syscall () at ../../../amd64/amd64/exception.S:330
#20 0x0000000800d96bdc in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) [root@serwer ~]# exit

Script done on Thu Dec 11 15:48:38 2008



machine dmesg:

Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.1-PRERELEASE #0: Wed Dec  3 06:38:22 CET 2008
     root@serwer.tensor.gdynia.pl:/usr/src/sys/amd64/compile/serwer.tensor.gdynia.pl
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3000.13-MHz K8-class CPU)
   Origin = "GenuineIntel"  Id = 0xf62  Stepping = 2
   Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
   Features2=0xe41d<SSE3,RSVD2,MON,DS_CPL,CNXT-ID,CX16,xTPR,PDCM>
   AMD Features=0x20100800<SYSCALL,NX,LM>
   AMD Features2=0x1<LAHF>
   Logical CPUs per core: 2
usable memory = 1063792640 (1014 MB)
avail memory  = 1023483904 (976 MB)
ACPI APIC Table: <PTLTD  	 APIC  >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
cryptosoft0: <software crypto> on motherboard
acpi0: <PTLTD   RSDT> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> irq 17 at device 28.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> irq 17 at device 28.4 on pci0
pci3: <ACPI PCI bus> on pcib3
bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0x4101> mem 0xc0100000-0xc010ffff irq 16 at device 0.0 on pci3
miibus0: <MII bus> on bge0
brgphy0: <BCM5750 10/100/1000baseTX PHY> PHY 1 on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge0: Ethernet address: 00:14:5e:94:49:19
bge0: [ITHREAD]
pcib4: <ACPI PCI-PCI bridge> irq 16 at device 28.5 on pci0
pci4: <ACPI PCI bus> on pcib4
uhci0: <UHCI (generic) USB controller> port 0x3000-0x301f irq 23 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: <UHCI (generic) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: <UHCI (generic) USB controller> port 0x3020-0x303f irq 19 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: <UHCI (generic) USB controller> on uhci1
usb1: USB revision 1.0
uhub1: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: <UHCI (generic) USB controller> port 0x3040-0x305f irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: <UHCI (generic) USB controller> on uhci2
usb2: USB revision 1.0
uhub2: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
uhub2: 2 ports with 2 removable, self powered
ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> mem 0xc0000000-0xc00003ff irq 23 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb3
uhub3: 6 ports with 6 removable, self powered
pcib5: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci10: <ACPI PCI bus> on pcib5
pcib6: <PCI-PCI bridge> at device 2.0 on pci10
pci11: <PCI bus> on pcib6
de0: <Digital 21140A Fast Ethernet> port 0x5000-0x507f mem 0xc0340000-0xc034007f irq 16 at device 4.0 on pci11
de0: Cogent EM440TX 21140A [10-100Mb/s] pass 2.2
de0: WARNING: using obsoleted if_watchdog interface
de0: Ethernet address: 00:00:d1:1d:00:3f
de0: [ITHREAD]
de1: <Digital 21140A Fast Ethernet> port 0x5080-0x50ff mem 0xc0340400-0xc034047f irq 17 at device 5.0 on pci11
de1: Cogent EM440TX 21140A [10-100Mb/s] pass 2.2
de1: WARNING: using obsoleted if_watchdog interface
de1: Ethernet address: 00:00:d1:1d:00:40
de2: <Digital 21140A Fast Ethernet> port 0x5400-0x547f mem 0xc0340800-0xc034087f irq 18 at device 6.0 on pci11
de2: Cogent EM440TX 21140A [10-100Mb/s] pass 2.2
de2: WARNING: using obsoleted if_watchdog interface
de2: Ethernet address: 00:00:d1:1d:00:41
de3: <Digital 21140A Fast Ethernet> port 0x5480-0x54ff mem 0xc0340c00-0xc0340c7f irq 19 at device 7.0 on pci11
de3: Cogent EM440TX 21140A [10-100Mb/s] pass 2.2
de3: WARNING: using obsoleted if_watchdog interface
de3: Ethernet address: 00:00:d1:1d:00:42
rl0: <RealTek 8139 10/100BaseTX> port 0x4000-0x40ff mem 0xc0210000-0xc02100ff irq 17 at device 3.0 on pci10
miibus1: <MII bus> on rl0
rlphy0: <RealTek internal media interface> PHY 0 on miibus1
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:e0:4c:28:01:e4
rl0: [ITHREAD]
vgapci0: <VGA-compatible display> port 0x4400-0x44ff mem 0xc8000000-0xcfffffff,0xc0200000-0xc020ffff irq 16 at device 4.0 on pci10
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH7 SATA300 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x3090-0x309f at device 31.2 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_button0: <Power Button> on acpi0
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FILTER]
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
sio1: [FILTER]
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
ppc0: <Parallel port> port 0x378-0x37f,0x778-0x77f irq 7 drq 1 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
ppbus0: [ITHREAD]
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
cpu1: <ACPI CPU> on acpi0
acpi_throttle1: <ACPI CPU Throttling> on cpu1
acpi_throttle1: failed to attach P_CNT
device_attach: acpi_throttle1 attach returned 6
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcafff,0xe0000-0xe17ff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert enabled, nat enabled, rule-based forwarding enabled, default to accept, logging limited to 25 packets/entry by default
ad0: 305245MB <SAMSUNG HD321KJ CP100-12> at ata0-master SATA150
ad2: 305245MB <Seagate ST3320620AS 3.AAK> at ata1-master SATA150
SMP: AP CPU #1 Launched!
GEOM_MIRROR: Device mirror/jail launched (1/1).
Enter passphrase for mirror/jaild: 
GEOM_ELI: Device mirror/jaild.eli created.
GEOM_ELI: Encryption: AES-CBC 128
GEOM_ELI:     Crypto: software
Trying to mount root from ufs:mirror/jaild.eli
GEOM_ELI: Device ad2e.eli created.
GEOM_ELI: Encryption: AES-CBC 128
GEOM_ELI:     Crypto: software
WARNING: TMPFS is considered to be a highly experimental feature in FreeBSD.
WARNING: TMPFS is considered to be a highly experimental feature in FreeBSD.
Zapata Telephony Interface Registered on major 196
Echo Canceller: MG2
ztdummy: loaded



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081211154602.M1327>