Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2001 08:58:30 +0300 (MSK)
From:      "Ilmar S. Habibulin" <ilmar@ints.ru>
To:        freebsd-current@freebsd.org
Subject:   double panic in kernel 
Message-ID:  <Pine.BSF.4.21.0103130844290.2005-100000@ws-ilmar.ints.ru>

next in thread | raw e-mail | index | archive | help

I have 100% reproducable trap 12 panic in kernel. I thouhgt it appeared
somewhere after 5th of february, but i was wrong. The problem is that when
i try to compile something with "make -j 2" - it panics and i can't
backtrace the first fault point. :( If i simply use make, i have a chanse
to build and install this something. 

So what am i doing wrong? How can i solve this problem? Any help?

Here is dmesg, config and gdb -k output:

dmesg:
Copyright (c) 1992-2001 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.0-CURRENT #7: Mon Mar 12 16:49:57 MSK 2001
    root@ws-ilmar:/usr/src/sys/compile/WS_ILMAR3
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 167046521 Hz
CPU: Pentium/P55C (167.05-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x543  Stepping = 3
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory  = 41943040 (40960K bytes)
avail memory = 37654528 (36772K bytes)
Preloaded elf kernel "kernel" at 0xc032d000.
Preloaded elf module "fire_saver.ko" at 0xc032d09c.
Intel Pentium detected, installing workaround for F00F bug
Random initialise
Random initialise finish
Using $PIR table, 7 entries at 0xc00f0a90
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xe000-0xe00f at device 1.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
pci0: <serial bus, USB> at 1.2 (no driver attached)
pci0: <bridge, PCI-unknown> at 1.3 (no driver attached)
pci0: <display, VGA> at 12.0 (no driver attached)
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
ed0 at port 0x340-0x35f iomem 0xd8000 irq 5 on isa0
ed0: address 00:50:4d:00:53:32, type NE2000 (16 bit) 
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0401> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <PNP0700> can't assign resources
unknown: <PNP0303> can't assign resources
Generator gate
Generator gate finish
Generator gate
Generator gate finish
Generator gate
Generator gate finish
Generator gate
Generator gate finish
OWNERSHIP Giant == 1 sched_lock == 0
ad0: 2014MB <ST32122A> [4092/16/63] at ata0-master UDMA33
Mounting root from ufs:/dev/ad0a
WARNING: / was not properly dismounted

config:

machine		i386
cpu		I586_CPU
ident		WS_ILMAR2
maxusers	32
makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
options 	INET			#InterNETworking
options 	FFS			#Berkeley Fast Filesystem
#options		FFS_EXTATTR		#Extended attributes support
#options		UFS_ACL			#UFS ACL Support
#options		MAC
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	NFS			#Network Filesystem
options 	MSDOSFS			#MSDOS Filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	P1003_1B		#Posix P1003_1B real-time extensions
options 	_KPOSIX_PRIORITY_SCHEDULING
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
device		isa
device		pci
device		fdc
device		ata
device		atadisk			# ATA disk drives
device		atkbdc	1
device		atkbd
device		vga
device		splash
device		sc	1
device		npx

# Power management support (see NOTES for more options)
#device		apm

device		sio
device		ppc
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device

# in order ed0 to load
device		card
device		pcic
device		ed

device		random		# Entropy device
#options 	NOBLOCKRANDOM	# avoid any blocking on device random
device		loop		# Network loopback
device		ether		# Ethernet support
device		pty		# Pseudo-ttys (telnet etc)
device		md		# Memory "disks"
#device		gif	4	# IPv6 and IPv4 tunneling
#device		faith	1	# IPv6-to-IPv4 relaying (translation)

device		bpf		# Berkeley packet filter

options 	DDB
options		INVARIANTS
options		INVARIANT_SUPPORT
options		DEBUG
options		DEBUG_VFS_LOCKS
options		CLUSTERDEBUG
options		LOCKF_DEBUG
options		SIMPLELOCK_DEBUG
#options		VFS_BIO_DEBUG

gdb -k output:
GNU gdb 4.18
Copyright 1998 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"...
IdlePTD 3457024
initial pcb at 2b05c0
panicstr: from debugger
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x0
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0x0
stack pointer	        = 0x10:0xc451e724
frame pointer	        = 0x10:0xc451e7b4
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		= 9698 (sh)


Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x0
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc023e770
stack pointer	        = 0x10:0xc451e590
frame pointer	        = 0x10:0xc451e594
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		= 9698 (sh)
panic: from debugger
kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x0
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc023e770
stack pointer	        = 0x10:0xc451e590
frame pointer	        = 0x10:0xc451e594
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= resume, IOPL = 0
current process		= 9698 (sh)
panic: from debugger
Uptime: 11m6s

dumping to dev #ad/1, offset 86016
dump ata0: resetting devices .. done
40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 
---
#0  dumpsys () at ../../kern/kern_shutdown.c:476
476		if (dumping++) {
(kgdb) bt
#0  dumpsys () at ../../kern/kern_shutdown.c:476
#1  0xc0157ea3 in boot (howto=260) at ../../kern/kern_shutdown.c:319
#2  0xc015826d in panic (fmt=0xc025cc94 "from debugger")
    at ../../kern/kern_shutdown.c:569
#3  0xc011ccf5 in db_panic (addr=0, have_addr=0, count=1, modif=0xc451e594 "")
    at ../../ddb/db_command.c:433
#4  0xc011cc95 in db_command (last_cmdp=0xc02861e0, cmd_table=0xc0286040, 
    aux_cmd_tablep=0xc02a0338) at ../../ddb/db_command.c:333
#5  0xc011cd5a in db_command_loop () at ../../ddb/db_command.c:455
#6  0xc011ef23 in db_trap (type=12, code=0) at ../../ddb/db_trap.c:71
#7  0xc023e67e in kdb_trap (type=12, code=0, regs=0xc451e6e4)
    at ../../i386/i386/db_interface.c:164
#8  0xc024bb90 in trap_fatal (frame=0xc451e6e4, eva=0)
    at ../../i386/i386/trap.c:988
#9  0xc024b905 in trap_pfault (frame=0xc451e6e4, usermode=0, eva=0)
    at ../../i386/i386/trap.c:907
#10 0xc024b0a3 in trap (frame={tf_fs = 24, tf_es = 16, tf_ds = 16, 
      tf_edi = -1001717792, tf_esi = -1010546112, tf_ebp = -1001265228, 
      tf_isp = -1001265392, tf_ebx = -1001718080, tf_edx = -1001271296, 
      tf_ecx = 0, tf_eax = 14, tf_trapno = 12, tf_err = 0, tf_eip = 0, 
      tf_cs = 8, tf_eflags = 66198, tf_esp = 0, tf_ss = 0})
    at ../../i386/i386/trap.c:454
#11 0x0 in ?? ()
(kgdb) quit


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0103130844290.2005-100000>