panic
Niklas Sorensson
nik at cs.chalmers.se
Sun Jul 16 15:42:53 UTC 2006
Hi,
I've got a panic with a very recent current while running portupgrade. It was
triggered while running tcltest as part of building tcl. Backtrace/dmesg/kernel
config attached. Is this problem known?
It's repeatable in case more information is necessary.
/Niklas
-------------- next part --------------
apa# kgdb kernel /home/crash/vmcore.0
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
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 "i386-marcel-freebsd".
Unread portion of the kernel message buffer:
panic: lock 0xc61c44c4 is not initialized
KDB: enter: panic
panic: from debugger
Uptime: 5m44s
Dumping 1534 MB (2 chunks)
chunk 0: 1MB (159 pages) ... ok
chunk 1: 1535MB (392752 pages) 1519 1503 1487 1471 1455 1439 1423 1407 1391 1375 1359 1343 1327 1311 1295 1279 1263 1247 1231 1215 1199 1183 1167 1151 1135 1119 1103 1087 1071 1055 1039 1023 1007 991 975 959 943 927 911 895 879 863 847 831 815 799 783 767 751 735 719 703 687 671 655 639 623 607 591 575 559 543 527 511 495 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15
#0 doadump () at pcpu.h:166
166 __asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) bt
#0 doadump () at pcpu.h:166
#1 0xc04ee134 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:402
#2 0xc04ee3df in panic (fmt=0xc0617f05 "from debugger") at /usr/src/sys/kern/kern_shutdown.c:558
#3 0xc04431fd in db_panic (addr=-1068463097, have_addr=0, count=-1, modif=0xe98b3928 "") at /usr/src/sys/ddb/db_command.c:426
#4 0xc0443194 in db_command (last_cmdp=0xc067e6c4, cmd_table=0x0) at /usr/src/sys/ddb/db_command.c:395
#5 0xc0443252 in db_command_loop () at /usr/src/sys/ddb/db_command.c:446
#6 0xc0444e69 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:221
#7 0xc0508e81 in kdb_trap (type=3, code=0, tf=0x0) at /usr/src/sys/kern/subr_kdb.c:481
#8 0xc05fa8f0 in trap (frame=
{tf_fs = 8, tf_es = 40, tf_ds = 40, tf_edi = 1, tf_esi = -1067272459, tf_ebp = -376751376, tf_isp = -376751396, tf_ebx = -376751332, tf_edx = 0, tf_ecx = -1052684288, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1068463097, tf_cs = 32, tf_eflags = 662, tf_esp = -376751344, tf_ss = -1068571761}) at /usr/src/sys/i386/i386/trap.c:622
#9 0xc05e96ba in calltrap () at /usr/src/sys/i386/i386/exception.s:138
#10 0xc0508c07 in kdb_enter (msg=0x12 <Address 0x12 out of bounds>) at cpufunc.h:60
#11 0xc04ee38f in panic (fmt=0xc062b6f5 "lock %p is not initialized") at /usr/src/sys/kern/kern_shutdown.c:542
#12 0xc05093b8 in lock_destroy (lock=0xc61c44c4) at /usr/src/sys/kern/subr_lock.c:89
#13 0xc04e650a in mtx_destroy (m=0xc61c44c4) at /usr/src/sys/kern/kern_mutex.c:898
#14 0xc052b8cb in sodealloc (so=0xc61c43e4) at /usr/src/sys/kern/uipc_socket.c:330
#15 0xc052bc25 in sofree (so=0xc61c43e4) at /usr/src/sys/kern/uipc_socket.c:472
#16 0xc052bf42 in soabort (so=0xc61c43e4) at /usr/src/sys/kern/uipc_socket.c:580
#17 0xc052bd50 in soclose (so=0xc61c4bac) at /usr/src/sys/kern/uipc_socket.c:511
#18 0xc051ab9b in soo_close (fp=0xc619d9d8, td=0xc6898cb0) at /usr/src/sys/kern/sys_socket.c:317
#19 0xc04d1390 in fdrop_locked (fp=0xc619d9d8, td=0xc6898cb0) at file.h:290
#20 0xc04d1300 in fdrop (fp=0xc619d9d8, td=0xc6898cb0) at /usr/src/sys/kern/kern_descrip.c:2146
#21 0xc04cfdef in closef (fp=0xc619d9d8, td=0xc6898cb0) at /usr/src/sys/kern/kern_descrip.c:1961
#22 0xc04cd682 in close (td=0xc6898cb0, uap=0x12) at /usr/src/sys/kern/kern_descrip.c:1018
#23 0xc05fb0e6 in syscall (frame=
{tf_fs = 59, tf_es = 59, tf_ds = 59, tf_edi = 136973568, tf_esi = 137651424, tf_ebp = -1077954728, tf_isp = -376750748, tf_ebx = 1477621464, tf_edx = 194, tf_ecx = 3, tf_eax = 6, tf_trapno = 12, tf_err = 2, tf_eip = 1478473995, tf_cs = 51, tf_eflags = 582, tf_esp = -1077954772, tf_ss = 59}) at /usr/src/sys/i386/i386/trap.c:1016
#24 0xc05e970f in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:191
#25 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) quit
apa# dmesg
Copyright (c) 1992-2006 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 7.0-CURRENT #3: Sun Jul 16 13:27:22 CEST 2006
nik at apa:/usr/obj/usr/src/sys/APA
WARNING: WITNESS option enabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 Processor 3000+ (2002.58-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0xf48 Stepping = 8
Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow+,3DNow>
real memory = 1609760768 (1535 MB)
avail memory = 1564073984 (1491 MB)
ACPI APIC Table: <A M I OEMAPIC >
ioapic0: Changing APIC ID to 1
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 0.3> irqs 0-23 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <A M I OEMXSDT> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
nvidia0: <GeForce FX 5700 Ultra> mem 0xfc000000-0xfcffffff,0xc0000000-0xcfffffff irq 16 at device 0.0 on pci1
nvidia0: [GIANT-LOCKED]
pci0: <serial bus, FireWire> at device 7.0 (no driver attached)
skc0: <3Com 3C940 Gigabit Ethernet> port 0xb000-0xb0ff mem 0xfdc00000-0xfdc03fff irq 17 at device 10.0 on pci0
skc0: bad VPD resource id: expected 82 got 0
skc0: <unknown> rev. (0x1)
sk0: <Marvell Semiconductor, Inc. Yukon> on skc0
sk0: Ethernet address: 00:0e:a6:74:51:ed
miibus0: <MII bus> on sk0
e1000phy0: <Marvell 88E1000 Gigabit PHY> on miibus0
e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto
atapci0: <VIA 6420 SATA150 controller> port 0xe800-0xe807,0xe400-0xe403,0xe000-0xe007,0xd800-0xd803,0xd400-0xd40f,0xd000-0xd0ff irq 20 at device 15.0 on pci0
ata2: <ATA channel 0> on atapci0
ata3: <ATA channel 1> on atapci0
atapci1: <VIA 8237 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.1 on pci0
ata0: <ATA channel 0> on atapci1
ata1: <ATA channel 1> on atapci1
uhci0: <VIA 83C572 USB controller> port 0xb400-0xb41f irq 21 at device 16.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xb800-0xb81f irq 21 at device 16.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xc000-0xc01f irq 21 at device 16.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
uhub2: 2 ports with 2 removable, self powered
uhci3: <VIA 83C572 USB controller> port 0xc400-0xc41f irq 21 at device 16.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <VIA 83C572 USB controller> on uhci3
usb3: USB revision 1.0
uhub3: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3
uhub3: 2 ports with 2 removable, self powered
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xfdf00000-0xfdf000ff irq 21 at device 16.4 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <VIA VT6202 USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: <VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb4
uhub4: 8 ports with 8 removable, self powered
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
pcm0: <VIA VT8237> port 0xc800-0xc8ff irq 22 at device 17.5 on pci0
pcm0: <Analog Devices AD1980 AC97 Codec>
pcm0: <VIA DXS Enabled: DXS 4 / SGD 1 / REC 1>
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcffff,0xd0000-0xd3fff pnpid ORM0000 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
Timecounter "TSC" frequency 2002577854 Hz quality 800
Timecounters tick every 1.000 msec
ad4: 152627MB <Seagate ST3160827AS 3.42> at ata2-master SATA150
hwpmc: TSC/1/0x20<REA> K8/4/0x1ff<INT,USR,SYS,EDG,THR,REA,WRI,INV,QUA>
Trying to mount root from ufs:/dev/ad4s2a
WARNING: / was not properly dismounted
cd0 at ata0 bus 0 target 0 lun 0
cd0: <_NEC DVD_RW ND-2500A 1.06> Removable CD-ROM SCSI-0 device
cd0: 3.300MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
fuse4bsd: version 0.3.0, FUSE ABI 7.5
apa# dmesg[5D[Kcat /root/Ap[KPA
#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
# http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ../../conf/NOTES and NOTES files.
# If you are in doubt as to the purpose or necessity of a line, check first
# in NOTES.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.438 2006/01/21 12:38:35 marius Exp $
cpu I686_CPU
ident APA
# Increase maximum memory usage
options MAXDSIZ=(1280UL*1024*1024)
options MAXSSIZ=(128UL*1024*1024)
options DFLDSIZ=(1280UL*1024*1024)
# To statically compile in device wiring instead of /boot/device.hints
#hints "GENERIC.hints" # Default places to look for devices.
makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
options SCHED_ULE # ULE scheduler
#options SCHED_4BSD # 4BSD scheduler
options PREEMPTION # Enable kernel thread preemption
options INET # InterNETworking
#options INET6 # IPv6 communications protocols
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 MSDOSFS # MSDOS Filesystem
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_43TTY # BSD 4.3 TTY compat [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options SCSI_DELAY=5000 # 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 AHC_REG_PRETTY_PRINT # Print register bitfields in debug
# # output. Adds ~128k to driver.
#options AHD_REG_PRETTY_PRINT # Print register bitfields in debug
# # output. Adds ~215k to driver.
options ADAPTIVE_GIANT # Giant mutex is adaptive.
options STOP_NMI # Stop CPUS using NMI instead of IPI
#options NETSMB
options HWPMC_HOOKS
device hwpmc
device apic
# Debugging for use in -current
options KDB # Enable kernel debugger support.
options DDB # Support DDB.
options GDB # Support remote GDB.
options INVARIANTS # Enable calls of extra sanity checking
options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS
options WITNESS # Enable checks to detect deadlocks and cycles
options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed
# Bus support.
device eisa
device pci
# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
device atapicam
#device ataraid # ATA RAID drives
#device atapicd # ATAPI CDROM drives
options ATA_STATIC_ID # Static device numbering
# SCSI peripherals
device scbus # SCSI bus (required for SCSI)
#device ch # SCSI media changers
device da # Direct Access (disks)
device cd # CD
device pass # Passthrough device (direct SCSI access)
# 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
device splash # Splash screen and screen saver support
# syscons is the default console driver, resembling an SCO console
device sc
#device agp # support several AGP chipsets
# Add suspend/resume support for the i8254.
#device pmtimer
# 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 sk # SysKonnect SK-984x & SK-982x gigabit Ethernet
# Pseudo devices.
device loop # Network loopback
device random # Entropy device
device ether # Ethernet support
device tun # Packet tunnel.
device pty # Pseudo-ttys (telnet etc)
device md # Memory "disks"
#device gif # IPv6 and IPv4 tunneling
#device faith # IPv6-to-IPv4 relaying (translation)
# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device bpf # Berkeley packet filter
# USB support
device uhci # UHCI PCI->USB interface
device ohci # OHCI PCI->USB interface
device ehci # EHCI PCI->USB interface (USB 2.0)
device usb # USB Bus (required)
#device udbp # USB Double Bulk Pipe devices
device ugen # Generic
device uhid # "Human Interface Devices"
#device ukbd # Keyboard
#device ulpt # Printer
device umass # Disks/Mass storage - Requires scbus and da
#device ums # Mouse
# FireWire support
#device firewire # FireWire bus code
#device sbp # SCSI over FireWire (Requires scbus and da)
device sound
device "snd_via8233"
More information about the freebsd-current
mailing list