I'm getting some panics on a few FreeBSD 5.4 boxes, and I'm trying to
figure out a way to get them to drop to some sort of debugger, or to dump
core. It used to be that you'd just add:

options DDB
options DDB_UNATTENDED

and build a kernel with -g, set 'dumpon', and then when it paniced it
would write it out to disk. For 5.4, I understand you also need "options
KDB", and you need to replace DDB_UNATTENDED with KDB_UNATTENDED.

I've done all of that, but the panic did not trigger a core dump, and did
not leave me at a prompt (the latter probably because of KDB_UNATTENDED?).

The panic message, in the present case, in case someone's seen this
particular problem before:

Fatal trap 12: page fault while in kernel mode.
cpuid = 01; apic id = 06
fault virtual address           = 0x24
fault code                      = supervisor read, page not present
instruction pointer             = 0x8:0xc035c7cf
stack pointer                   = 0x10:0xeb858c74
frame pointer                   = 0x10:0xeb858c88
code segment                    = base 0x0, limit 0xfffff, type 0x1b
                                = DPL 0, pres 1, def32 1, gran 1
processor eflags                = resume, IOPL equal 0
current process                 = 8 (pagedaemon)

Would this sort of panic prevent a dump from occuring? BTW: I have checked
the handbook and haven't found the answer (it doesn't seem to mention KDB
at all).

Unfortunately the kernel buffer appears insufficient to store all the
output from "boot -v", so I'm booting it with no flags. I've included the
output of dmesg. Following that is the kernel's config. sysctl -a output
is available at http://dpk.net/5.4-sysctl.txt (35KB)

Copyright (c) 1992-2005 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.4-RELEASE-p5 #2: Sun Jul 31 20:58:46 PDT 2005
    [EMAIL PROTECTED]:/usr/src/sys/i386/compile/STD-PAE
MPTable: <INTEL    LINDENHURST >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.12-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf41  Stepping = 1
  
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>
  Hyperthreading: 2 logical CPUs
real memory  = 4831838208 (4608 MB)
avail memory = 4194848768 (4000 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  6
ioapic0: Assuming intbase of 0
ioapic1: Assuming intbase of 24
ioapic2: Assuming intbase of 48
ioapic3: Assuming intbase of 72
ioapic0 <Version 2.0> irqs 0-23 on motherboard
ioapic1 <Version 2.0> irqs 24-47 on motherboard
ioapic2 <Version 2.0> irqs 48-71 on motherboard
ioapic3 <Version 2.0> irqs 72-95 on motherboard
npx0: <math processor> on motherboard
npx0: INT 16 interface
cpu0 on motherboard
cpu1 on motherboard
pcib0: <MPTable Host-PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pcib1: <PCI-PCI bridge> irq 16 at device 2.0 on pci0
pci1: <PCI bus> on pcib1
pcib2: <PCI-PCI bridge> at device 0.0 on pci1
pci3: <PCI bus> on pcib2
pcib3: <MPTable PCI-PCI bridge> at device 0.2 on pci1
pci2: <PCI bus> on pcib3
3ware device driver for 9000 series storage controllers, version: 2.50.02.012
twa0: <3ware 9000 series Storage Controller> port 0xa800-0xa8ff mem 
0xfb800000-0xfbffffff,0xfc8ffc00-0xfc8ffcff irq 72 at device 1.0 on pci2
twa0: 4 ports, Firmware FE9X 2.04.00.005, BIOS BE9X 2.03.01.047
pcib4: <PCI-PCI bridge> irq 16 at device 3.0 on pci0
pci4: <PCI bus> on pcib4
pcib5: <MPTable PCI-PCI bridge> at device 28.0 on pci0
pci5: <PCI bus> on pcib5
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> port 
0xbc00-0xbc3f mem 0xfc9e0000-0xfc9fffff irq 26 at device 1.0 on pci5
em0: Ethernet address: 00:30:48:83:0a:f8
em0:  Speed:N/A  Duplex:N/A
em1: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> port 
0xb800-0xb83f mem 0xfc9a0000-0xfc9bffff irq 27 at device 2.0 on pci5
em1: Ethernet address: 00:30:48:83:0a:f9
em1:  Speed:N/A  Duplex:N/A
pci0: <serial bus, USB> at device 29.0 (no driver attached)
pci0: <serial bus, USB> at device 29.1 (no driver attached)
pci0: <base peripheral> at device 29.4 (no driver attached)
pci0: <base peripheral, interrupt controller> at device 29.5 (no driver 
attached)
pci0: <serial bus, USB> at device 29.7 (no driver attached)
pcib6: <MPTable PCI-PCI bridge> at device 30.0 on pci0
pci6: <PCI bus> on pcib6
pci6: <display, VGA> at device 2.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel 6300ESB UDMA100 controller> port 
0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
orm0: <ISA Option ROMs> at iomem 
0xca800-0xcb7ff,0xc9800-0xca7ff,0xc8000-0xc97ff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5 irq 6 drq 2 on isa0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
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: <PNP0501> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0c02> can't assign resources (port)
unknown: <PNP0303> can't assign resources (port)
Timecounters tick every 10.000 msec
IP Filter: v3.4.35 initialized.  Default = pass all, Logging = enabled
ipfw2 initialized, divert disabled, rule-based forwarding disabled, default to 
accept, logging disabled
acd0: DVDROM <MATSHITADVD-ROM SR-8178/PZ16> at ata1-slave PIO4
da0 at twa0 bus 0 target 0 lun 0
da0: <3ware Logical Disk 00 1.00> Fixed Direct Access SCSI-0 device
da0: 100.000MB/s transfers
da0: 762918MB (1562456064 512 byte sectors: 255H 63S/T 97258C)
SMP: AP CPU #1 Launched!
Mounting root from ufs:/dev/da0s1a
em0: Link is up 100 Mbps Full Duplex

#KERNEL CONFIGURATION FILE

ident    STD-PAE

options  PAE
options  SMP

makeoptions  "NO_MODULES=yes DEBUG=-g"

options DDB
options KDB
options KDB_UNATTENDED

#The following four lines are not found in the GENERIC file.

options         IPFILTER                #ipfilter support
options         IPFILTER_LOG            #ipfilter logging
options         IPFIREWALL              #firewall
options         IPFIREWALL_DEFAULT_TO_ACCEPT    #allow everything by default

# The following lines, to the end of this file, were all taken verbatim
# from the GENERIC file (though many lines from that file were excluded).

machine         i386
cpu             I686_CPU

# To statically compile in device wiring instead of /boot/device.hints
#hints          "GENERIC.hints"         # Default places to look for devices.

options         SCHED_4BSD              # 4BSD scheduler
options         INET                    # InterNETworking
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 /, requires NFSCLIENT
options         CD9660                  # ISO 9660 Filesystem
options         PROCFS                  # Process filesystem (requires PSEUDOFS)
options         PSEUDOFS                # Pseudo-filesystem framework
options         GEOM_GPT                # GUID Partition Tables.
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         ADAPTIVE_GIANT          # Giant mutex is adaptive.
options         ASR_COMPAT              # asr old ioctls support, needed by 
raidutils

device          apic            # I/O APIC

device          carp

# Bus support.  Do not remove isa, even if you have no isa slots
device          isa
device          eisa
device          pci

# Floppy drives
device          fdc

# ATA and ATAPI devices
device          ata
device          atadisk         # ATA disk drives
device          atapicd         # ATAPI CDROM drives
device          atapifd         # ATAPI floppy drives
device          atapist         # ATAPI tape drives
options         ATA_STATIC_ID   # Static device numbering

# SCSI Controllers
device          ahc             # AHA2940 and onboard AIC7xxx devices
device          ahd             # AHA39320/29320 and onboard AIC79xx devices
device          mpt             # LSI-Logic MPT-Fusion
nodevice        sym             # NCR/Symbios Logic (newer chipsets + those of 
`ncr')

# SCSI peripherals
device          scbus           # SCSI bus (required for SCSI)
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)

# RAID controllers interfaced to the SCSI subsystem
device          amr             # AMI MegaRAID
device          arcmsr          # Areca SATA II RAID
nodevice        asr             # DPT SmartRAID V, VI and Adaptec SCSI RAID
device          ciss            # Compaq Smart RAID 5*
nodevice        dpt             # DPT Smartcache III, IV - See NOTES for options
nodevice        iir             # Intel Integrated RAID
device          ips             # IBM (Adaptec) ServeRAID
device          twa             # 3ware 9000 series PATA/SATA RAID

# RAID controllers
device          aac             # Adaptec FSA RAID
device          aacp            # SCSI passthrough for aac (requires CAM)
nodevice        ida             # Compaq Smart RAID
device          twe             # 3ware ATA RAID

# atkbdc0 controls both the keyboard and the PS/2 mouse
device          atkbdc          # AT keyboard controller
device          atkbd           # AT keyboard
device          psm             # PS/2 mouse

device          vga             # VGA video card driver

# syscons is the default console driver, resembling an SCO console
device          sc

nodevice        agp             # support several AGP chipsets

# Floating point support - do not disable.
device          npx

# Add suspend/resume support for the i8254.
device          pmtimer

# Serial (COM) ports
device          sio             # 8250, 16[45]50 based serial ports

# If you've got a "dumb" serial or parallel PCI card that is
# supported by the puc(4) glue driver, uncomment the following
# line to enable it (connects to the sio and/or ppc drivers):
device          puc

# PCI Ethernet NICs.
device          em              # Intel PRO/1000 adapter Gigabit Ethernet Card
device          ixgb            # Intel PRO/10GbE Ethernet Card

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device          miibus          # MII bus support
device          bfe             # Broadcom BCM440x 10/100 Ethernet
device          bge             # Broadcom BCM570xx Gigabit Ethernet
device          fxp             # Intel EtherExpress PRO/100B (82557, 82558)
device          xl              # 3Com 3c90x (``Boomerang'', ``Cyclone'')

# Pseudo devices.
device          loop            # Network loopback
device          mem             # Memory and kernel memory devices
device          io              # I/O device
device          random          # Entropy device
device          ether           # Ethernet support
device          ppp             # Kernel PPP
device          pty             # Pseudo-ttys (telnet etc)
device          md              # Memory "disks"

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device          bpf             # Berkeley packet filter

# USB support
nodevice        uhci            # UHCI PCI->USB interface
nodevice        ohci            # OHCI PCI->USB interface
nodevice        usb             # USB Bus (required)
nodevice        ugen            # Generic
nodevice        uhid            # "Human Interface Devices"
nodevice        ukbd            # Keyboard
nodevice        umass           # Disks/Mass storage - Requires scbus and da
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to