Get the attached panic repeatedly when doing an rm -rf /usr/ports and trying
to create a snapshot of the root partition. Sometimes I get the panic when
there's no apparent disk activity and trying to create a snapshot on >2GB
filesystems. I've included gdb output, dmesg and my kernel config.
Hopefully, some-one can make more sense of it in a shorter timeframe than
me. If any further information is required, please let me know and I'll try
my best to get it to you.
BTW, is there any reason I had to enter panic twice in ddb to get the sucker
to dump core?

Chris Knight
Systems Administrator
AIMS Independent Computer Professionals
Tel: +61 3 6334 6664  Fax: +61 3 6331 7032  Mob: +61 419 528 795

ait0fd02# gdb -k kernel.0 vmcore.1
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 3362816
initial pcb at 2a7fe0
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:0xc0170fd8
stack pointer           = 0x10:0xc3b38f14
frame pointer           = 0x10:0xc3b38f24
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 5 (syncer)
panic: from debugger
panic: from debugger
Uptime: 6m21s

dumping to dev #ad/0x20001, offset 344064
dump ata0: resetting devices .. done
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:477
477             if (dumping++) {
(kgdb) back
#0  dumpsys () at ../../kern/kern_shutdown.c:477
#1  0xc0175247 in boot (howto=260) at ../../kern/kern_shutdown.c:320
#2  0xc0175685 in panic (fmt=0xc022d5d4 "from debugger")
    at ../../kern/kern_shutdown.c:568
#3  0xc011c2b5 in db_panic (addr=-1072230440, have_addr=0, count=-1, 
    modif=0xc3b38d88 "") at ../../ddb/db_command.c:433
#4  0xc011c255 in db_command (last_cmdp=0xc025be40, cmd_table=0xc025bca0, 
    aux_cmd_tablep=0xc029f92c) at ../../ddb/db_command.c:333
#5  0xc011c31a in db_command_loop () at ../../ddb/db_command.c:455
#6  0xc011e4c3 in db_trap (type=12, code=0) at ../../ddb/db_trap.c:71
#7  0xc02088d2 in kdb_trap (type=12, code=0, regs=0xc3b38ed4)
    at ../../i386/i386/db_interface.c:163
#8  0xc0214d54 in trap_fatal (frame=0xc3b38ed4, eva=0)
    at ../../i386/i386/trap.c:936
#9  0xc0214add in trap_pfault (frame=0xc3b38ed4, usermode=0, eva=0)
    at ../../i386/i386/trap.c:855
#10 0xc0214557 in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, tf_edi = 0, 
      tf_esi = -1070810528, tf_ebp = -1011642588, tf_isp = -1011642624, 
      tf_ebx = 0, tf_edx = 1, tf_ecx = -1064877056, tf_eax = 8, 
      tf_trapno = 12, tf_err = 0, tf_eip = -1072230440, tf_cs = 8, 
      tf_eflags = 65670, tf_esp = -1070810528, tf_ss = 8})
    at ../../i386/i386/trap.c:438
#11 0xc0170fd8 in mtx_exit_hard (m=0xc02cba60, type=0)
    at ../../kern/kern_mutex.c:402
---Type <return> to continue, or q <return> to quit---
#12 0xc01a9cab in sync_fsync (ap=0xc3b38f7c) at ../../sys/mutex.h:603
#13 0xc01a7c0e in sched_sync () at vnode_if.h:508
(kgdb) quit
ait0fd02# dmesg
Copyright (c) 1992-2000 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-20001129-SNAP #0: Wed Nov 29 15:12:51 EST 2000
    [EMAIL PROTECTED]:/usr/src/sys/compile/DEBUG
Timecounter "i8254"  frequency 1193168 Hz
Timecounter "TSC"  frequency 199430220 Hz
CPU: Pentium/P55C (199.43-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x543  Stepping = 3
real memory  = 33554432 (32768K bytes)
config> di pcic0
config> di pcm0
config> di sn0
config> di lnc0
config> di le0
config> di ie0
config> di fe0
config> di ed0
config> di cs0
config> di bt0
config> di aic0
config> di aha0
config> di adv0
config> q
avail memory = 29642752 (28948K bytes)
Preloaded elf kernel "kernel" at 0xc0323000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc032309c.
Intel Pentium detected, installing workaround for F00F bug
seq0-15: Midi sequencers.
VESA: v1.2, 1024k memory, flags:0x0, mode table:0xc00c4c13 (c0004c13)
VESA: S3 Incorporated. Trio64V+
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: <Intel 82371SB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX3 ATA controller> port 0xf000-0xf00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <S3 Trio graphics accelerator> at 11.0 irq 10
ed0: <NE2000 PCI Ethernet (RealTek 8029)> port 0x6100-0x611f irq 11 at device 17.0 on 
ed0: address 00:80:c8:de:db:51, type NE2000 (16 bit) 
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
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/8 bytes threshold
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
pps0: <Pulse per second Timing Interface> 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: <PNP0303> can't assign resources
atspeaker0: <AT speaker> at port 0x61 on isa0
unknown: <PNP0f13> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <PNP0700> can't assign resources
unknown: <PNP0401> can't assign resources
pcm1: <CS423x> at port 0x534-0x537,0x388-0x38b,0x220-0x22f irq 5 drq 1,0 on isa0
joy0: <Generic PnP Joystick> at port 0x200-0x207 on isa0
ata1-slave: ata_command: timeout waiting for intr
ata1-slave: identify failed
ad0: 6187MB <FUJITSU MPD3064AT> [13410/15/63] at ata0-master WDMA2
ast0: TAPE <Seagate STT8000A> at ata1-master using PIO4
Mounting root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted
ait0fd02# cat /usr/src/sys/i386/conf/DEBUG
machine         i386
ident           DEBUG
maxusers        32
makeoptions     CONF_CFLAGS=-fno-builtin  #Don't allow use of memcmp, etc.
makeoptions     DEBUG=-g                #Build kernel with gdb(1) debug symbols
options         MAXDSIZ="(256*1024*1024)"
options         DFLDSIZ="(256*1024*1024)"
options         PQ_CACHESIZE=256        # color for 512k/16k cache
options         INCLUDE_CONFIG_FILE     # Include this file in kernel
cpu             I586_CPU                # aka Pentium(tm)
cpu             I686_CPU                # aka Pentium Pro(tm)
options         COMPAT_43
options         USER_LDT                #allow user-level control of i386 ldt
options         SYSVSHM
options         SYSVSEM
options         SYSVMSG
options         DDB
options         KTRACE                  #kernel tracing
options         PERFMON
options         USERCONFIG              #boot -c editor
options         VISUAL_USERCONFIG       #visual boot -c editor
options         INET                    #Internet communications protocols
device          ether                   #Generic Ethernet
device          loop    1               #Network loopback device
device          bpf                     #Berkeley packet filter
options         FFS                     #Fast filesystem
options         FFS_ROOT                #FFS usable as root device
options         SOFTUPDATES
device          random
options         NOBLOCKRANDOM
options         P1003_1B
options         _KPOSIX_VERSION=199309L
options         HZ=100
options         CLK_USE_I8254_CALIBRATION
device          pty             #Pseudo ttys
device          speaker         #Play IBM BASIC-style noises out your speaker
device          gzip            #Exec gzipped a.out's
device          isa
options         COMPAT_OLDISA   #Use ISA shims and glue for old drivers
options         AUTO_EOI_1
device          pci
options         COMPAT_OLDPCI   #Use PCI shims and glue for old drivers
device          atkbdc  1
device          atkbd
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
device          psm
device          vga
options         VESA
device          splash
device          sc      1
device          npx
device          ata
device          atadisk         # ATA disk drives
device          atapicd         # ATAPI CDROM drives
device          atapifd         # ATAPI floppy drives
device          atapist         # ATAPI tape drives
device          fdc
device          sio
device          ed
device          pcm
device          midi
device          seq
device          joy                     # PnP aware, hints for nonpnp only
device          ppc
device          ppbus
device          lpt
device          ppi
device          pps
options         SEMMAP=31
options         SEMMNI=11
options         SEMMNS=61
options         SEMMNU=31
options         SEMMSL=61
options         SEMOPM=101
options         SEMUME=11
options         SHMALL=1025
options         SHMMAX="(SHMMAXPGS*PAGE_SIZE+1)"
options         SHMMAXPGS=1025
options         SHMMIN=2
options         SHMMNI=33
options         SHMSEG=9
ait0fd02# exit

Reply via email to