RE: Panic with this morning's (~9am EDT, 15 jan 2004) sources.

From: Robin P. Blanchard <robin.blanchard_at_gactr.uga.edu>
Date: Fri, 16 Jan 2004 16:03:39 -0500
Ok...

I got the machine back up and running (kernel and kernel.old were both
botched): grabbed the kernel from
ftp://snapshots.jp.freebsd.org/pub/FreeBSD/snapshots/i386/ISO-IMAGES/live-5.2
-CURRENT-20040115-JPSNAP.iso.

Below is a comparison between the two. Please let me know what else I can do
to help figure this one out.

# ident /boot/rescue/kernel > ident.rescue
# ident /boot/kernel/kernel > ident.panic
# diff -u ident.rescue ident.panic  |fgrep "+" |fgrep "FreeBSD"

+     $FreeBSD: src/sys/cam/scsi/scsi_pt.c,v 1.39 2003/06/10 18:14:05 obrien
Exp $
+     $FreeBSD: src/sys/cam/scsi/scsi_targ_bh.c,v 1.20 2003/09/30 08:03:52
simokawa Exp $
+     $FreeBSD: src/sys/cam/scsi/scsi_target.c,v 1.58 2003/11/09 09:17:20
tanimura Exp $
+     $FreeBSD: src/sys/dev/acpica/acpi_cpu.c,v 1.29 2003/12/28 22:15:24 njl
Exp $
+     $FreeBSD: src/sys/dev/acpica/acpi_ec.c,v 1.42 2004/01/03 02:01:39 njl
Exp $
+     $FreeBSD: src/sys/dev/acpica/acpi_isab.c,v 1.4 2003/08/24 17:48:01
obrien Exp $
+     $FreeBSD: src/sys/dev/acpica/acpi_lid.c,v 1.15 2003/10/25 05:03:24 njl
Exp $
+     $FreeBSD: src/sys/dev/acpica/acpi_pci.c,v 1.6 2003/09/17 08:32:44
iwasaki Exp $
+     $FreeBSD: src/sys/dev/acpica/acpi_pci_link.c,v 1.12 2003/12/23 02:29:46
peter Exp $
+     $FreeBSD: src/sys/dev/acpica/acpi_pcib.c,v 1.36 2003/12/18 17:04:11 kan
Exp $
+     $FreeBSD: src/sys/dev/acpica/acpi_pcib_pci.c,v 1.5 2003/08/24 17:48:01
obrien Exp $
+     $FreeBSD: src/sys/dev/acpica/acpi_powerres.c,v 1.16 2003/08/28 16:06:30
njl Exp $
+     $FreeBSD: src/sys/dev/acpica/acpi_resource.c,v 1.20 2003/09/26 05:24:55
njl Exp $
+     $FreeBSD: src/sys/dev/acpica/acpi_thermal.c,v 1.35 2004/01/12 17:59:10
njl Exp $
+     $FreeBSD: src/sys/dev/ata/ata-all.c,v 1.201 2004/01/14 21:26:34 sos Exp
$
+     $FreeBSD: src/sys/dev/ata/ata-queue.c,v 1.16 2004/01/14 21:26:35 sos
Exp $
+     $FreeBSD: src/sys/dev/ata/ata-lowlevel.c,v 1.27 2004/01/14 21:26:35 sos
Exp $
+     $FreeBSD: src/sys/dev/ata/ata-isa.c,v 1.20 2004/01/14 21:26:35 sos Exp
$
+     $FreeBSD: src/sys/dev/ata/ata-pci.c,v 1.74 2004/01/14 21:26:35 sos Exp
$
+     $FreeBSD: src/sys/dev/ata/ata-chipset.c,v 1.56 2004/01/14 21:26:34 sos
Exp $
+     $FreeBSD: src/sys/dev/ata/ata-dma.c,v 1.125 2004/01/14 21:26:35 sos Exp
$
+     $FreeBSD: src/sys/dev/ata/ata-disk.c,v 1.167 2004/01/14 21:26:34 sos
Exp $
+     $FreeBSD: src/sys/dev/ata/atapi-cd.c,v 1.160 2004/01/14 21:26:35 sos
Exp $
+     $FreeBSD: src/sys/dev/ata/atapi-fd.c,v 1.92 2004/01/14 21:26:35 sos Exp
$
+     $FreeBSD: src/sys/dev/ata/atapi-tape.c,v 1.87 2004/01/14 21:26:35 sos
Exp $
+     $FreeBSD: src/sys/dev/ata/atapi-cam.c,v 1.31 2004/01/14 21:26:35 sos
Exp $
+     $FreeBSD: src/sys/dev/ppbus/immio.c,v 1.17 2003/08/24 17:54:16 obrien
Exp $
+     $FreeBSD: src/sys/dev/ppbus/vpo.c,v 1.29 2003/08/24 17:54:16 obrien Exp
$
+     $FreeBSD: src/sys/dev/ppbus/vpoio.c,v 1.18 2003/08/24 17:54:16 obrien
Exp $
+     $FreeBSD: src/sys/kern/init_main.c,v 1.239 2004/01/15 10:15:03 des Exp
$
+     $FreeBSD: src/sys/kern/kern_descrip.c,v 1.221 2004/01/16 08:45:56 des
Exp $
+     $FreeBSD: src/sys/kern/sched_ule.c,v 1.94 2003/12/20 22:35:20 jeff Exp
$
+     $FreeBSD: src/sys/kern/sys_pipe.c,v 1.163 2004/01/15 10:15:03 des Exp $
+     $FreeBSD: src/sys/kern/uipc_cow.c,v 1.16 2003/11/16 06:11:25 alc Exp $
+     $FreeBSD: src/sys/kern/uipc_syscalls.c,v 1.169 2004/01/15 10:15:03 des
Exp $
+     $FreeBSD: src/sys/kern/uipc_usrreq.c,v 1.114 2004/01/15 10:15:03 des
Exp $
+     $FreeBSD: src/sys/kern/vfs_syscalls.c,v 1.336 2004/01/15 10:15:04 des
Exp $
+     $FreeBSD: src/sys/kern/uipc_sem.c,v 1.9 2003/06/11 00:56:58 obrien Exp
$
+     $FreeBSD: src/sys/i386/acpica/OsdEnvironment.c,v 1.9 2003/08/28
16:26:24 njl Exp $
+     $FreeBSD: src/sys/i386/acpica/acpi_machdep.c,v 1.15 2003/11/01 00:18:29
njl Exp $
+     $FreeBSD: src/sys/i386/acpica/acpi_wakeup.c,v 1.30 2003/11/03 22:18:57
jhb Exp $
+     $FreeBSD: src/sys/i386/acpica/madt.c,v 1.9 2003/12/09 03:04:19 njl Exp
$

> 
> Grabbed new code from cvsup1 this morning (~9am EDT, 16 jan 
> 04) and am now panicing in a different location:
> 
> FreeBSD/i386 bootstrap loader, Revision 1.1 
> (root_at_bsdfs5.gactr.uga.edu, Fri Jan 16 11:10:18 EST 2004) 
> Loading /boot/defaults/loader.conf /boot/kernel/kernel 
> text=0x277880 data=0x2a264+0x56838 syms=[0x4+0x36e70+0x4+0x4 
> 3c03] /boot/modules/if_fxp.ko text=0x77b4 data=0x1014+0xc 
> syms=[0x4+0xcf0+0x4+0xdbb] loading required module 'miibus' 
> /boot/modules/miibus.ko text=0x15820 data=0xc84+0x68 
> syms=[0x4+0x1c60+0x4+0x2328 ] /boot/modules/twe.ko 
> text=0x7398 data=0x5ac+0x8c syms=[0x4+0xdb0+0x4+0xd1d] 
> Loading /boot/defaults/loader.conf
> -
> Hit [Enter] to boot immediately, or any other key for command 
> prompt. Booting [/boot/kernel/kernel]...
> ACPI_DEBUG: set 'ACPI_EVENTS'
> ACPI_DEBUG: set 'ACPI_LV_ALL_EXCEPTIONS'
> ACPI debug layer 0x4 debug level 0x1f
> 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-CURRENT #0: Fri Jan 16 11:58:59 EST 2004
>     root_at_bsdfs5.gactr.uga.edu:/usr/obj/usr/src/sys/ule.debug
> Preloaded elf kernel "/boot/kernel/kernel" at 0xc07a7000. 
> Preloaded elf module "/boot/modules/if_fxp.ko" at 0xc07a726c. 
> Preloaded elf module "/boot/modules/miibus.ko" at 0xc07a7318. 
> Preloaded elf module "/boot/modules/twe.ko" at 0xc07a73c4. 
> Timecounter "i8254" frequency 1193182 Hz quality 0
> CPU: Intel Pentium III (851.94-MHz 686-class CPU)
>   Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
>  
> Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR
> ,PGE,MCA,CMOV,P
> A
> T,PSE36,MMX,FXSR,SSE>
> real memory  = 536608768 (511 MB)
> avail memory = 519680000 (495 MB)
> acquiring duplicate lock of same type: "filedesc structure"
>  1st filedesc structure _at_ /usr/src/sys/kern/kern_descrip.c:1377
>  2nd filedesc structure _at_ /usr/src/sys/kern/kern_descrip.c:1431
> Stack backtrace:
> backtrace(c0662f9a,c065e006,c065e5b2,597,1d8) at backtrace+0x17
> witness_lock(c1568838,8,c065e5b2,597,c1568800) at witness_lock+0x5aa
> _mtx_lock_flags(c1568838,0,c065e5b2,597,a) at _mtx_lock_flags+0x6a
> fdcopy(c06a9120,0,c065e9a0,1a5,c0685924) at fdcopy+0x46
> fork1(c06a8d60,60034,0,c0821d50,64) at fork1+0x61f
> kthread_create(c04f9930,0,0,40000,0,c065edc1) at kthread_create+0x48
> ktrace_init(0,81e000,81ec00,81e000,0) at ktrace_init+0xf5
> mi_startup() at mi_startup+0xb5
> begin() at begin+0x2c
> Debugger("witness_lock")
> Stopped at      Debugger+0x55:  xchgl   %ebx,in_Debugger.0
> db> show locks
> exclusive sleep mutex filedesc structure r = 0 (0xc06a9158) 
> locked _at_ /usr/src/sy s/kern/kern_descrip.c:1377 exclusive 
> sleep mutex Giant r = 1 (0xc06ac580) locked _at_ 
> /usr/src/sys/kern/kern_f ork.c:218
> db> tr
> Debugger(c063c331,c065e006,c065e5b2,597,1d8) at Debugger+0x55
> witness_lock(c1568838,8,c065e5b2,597,c1568800) at witness_lock+0x5bf
> _mtx_lock_flags(c1568838,0,c065e5b2,597,a) at _mtx_lock_flags+0x6a
> fdcopy(c06a9120,0,c065e9a0,1a5,c0685924) at fdcopy+0x46
> fork1(c06a8d60,60034,0,c0821d50,64) at fork1+0x61f
> kthread_create(c04f9930,0,0,40000,0,c065edc1) at kthread_create+0x48
> ktrace_init(0,81e000,81ec00,81e000,0) at ktrace_init+0xf5
> mi_startup() at mi_startup+0xb5
> begin() at begin+0x2c
> db> panic
> panic: from debugger
> cpuid = 0;
> Stack backtrace:
> backtrace(c0642d67,0,c0655970,c0821a94,100) at backtrace+0x17
> panic(c0655970,c0821b4c,c048a582,c0607825,0) at panic+0x141
> db_panic(c0607825,0,ffffffff,c0821ac0,c0821abc) at db_panic+0x12
> db_command(c06a43e0,c067dc20,c06777c4,c06777c8,3) at db_command+0x272
> db_command_loop(c0607825,c0642d67,2,c0430859,0) at 
> db_command_loop+0x95
> db_trap(3,0,0,80046,0) at db_trap+0xc5
> kdb_trap(3,0,c0821c18,31,0) at kdb_trap+0x14c
> trap(c0820018,c0600010,10,c068797c,c1568838) at trap+0x47a
> calltrap() at calltrap+0x5
> --- trap 0x3, eip = 0xc0607825, esp = 0xc0821c58, ebp = 0xc0821c64 ---
> Debugger(c063c331,c065e006,c065e5b2,597,1d8) at Debugger+0x55
> witness_lock(c1568838,8,c065e5b2,597,c1568800) at witness_lock+0x5bf
> _mtx_lock_flags(c1568838,0,c065e5b2,597,a) at _mtx_lock_flags+0x6a
> _mtx_lock_flags(c1568838,0,c065e5b2,597,a) at _mtx_lock_flags+0x6a
> fork1(c06a8d60,60034,0,c0821d50,64) at fork1+0x61f
> kthread_create(c04f9930,0,0,40000,0,c065edc1) at kthread_create+0x48
> ktrace_init(0,81e000,81ec00,81e000,0) at ktrace_init+0xf5
> mi_startup() at mi_startup+0xb5
> begin() at begin+0x2c
> Uptime: 1s
> WARNING: Driver mistake: make_dev(geom.ctl) called before 
> SI_SUB_DRIVERS kernel trap 12 with interrupts disabled
> 
> 
> Fatal trap 12: page fault while in kernel mode
> cpuid = 0; apic id = 00
> fault virtual address   = 0x14
> fault code              = supervisor read, page not present
> instruction pointer     = 0x8:0xc04f53e4
> stack pointer           = 0x10:0xc0821928
> frame pointer           = 0x10:0xc082196c
> code segment            = base 0x0, limit 0xfffff, type 0x1b
>                         = DPL 0, pres 1, def32 1, gran 1
> processor eflags        = resume, IOPL = 0
> current process         = 0 (swapper)
> kernel: type 12 trap, code=0
> Stopped at      fork1+0x414:    cmpl    %ebx,0x14(%eax)
> db>
Received on Fri Jan 16 2004 - 12:03:43 UTC

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