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
) 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@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 AMD Features=0xe0500800 real memory = 1609760768 (1535 MB) avail memory = 1564073984 (1491 MB) ACPI APIC Table: ioapic0: Changing APIC ID to 1 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: 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: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 nvidia0: mem 0xfc000000-0xfcffffff,0xc0000000-0xcfffffff irq 16 at device 0.0 on pci1 nvidia0: [GIANT-LOCKED] pci0: 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: rev. (0x1) sk0: on skc0 sk0: Ethernet address: 00:0e:a6:74:51:ed miibus0: on sk0 e1000phy0: on miibus0 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto atapci0: port 0xe800-0xe807,0xe400-0xe403,0xe000-0xe007,0xd800-0xd803,0xd400-0xd40f,0xd000-0xd0ff irq 20 at device 15.0 on pci0 ata2: on atapci0 ata3: on atapci0 atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.1 on pci0 ata0: on atapci1 ata1: on atapci1 uhci0: port 0xb400-0xb41f irq 21 at device 16.0 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xb800-0xb81f irq 21 at device 16.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xc000-0xc01f irq 21 at device 16.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered uhci3: port 0xc400-0xc41f irq 21 at device 16.3 on pci0 uhci3: [GIANT-LOCKED] usb3: on uhci3 usb3: USB revision 1.0 uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered ehci0: 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: on ehci0 usb4: USB revision 2.0 uhub4: on usb4 uhub4: 8 ports with 8 removable, self powered isab0: at device 17.0 on pci0 isa0: on isab0 pcm0: port 0xc800-0xc8ff irq 22 at device 17.5 on pci0 pcm0: pcm0: acpi_button0: on acpi0 acpi_button1: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 orm0: at iomem 0xc0000-0xcffff,0xd0000-0xd3fff pnpid ORM0000 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 2002577854 Hz quality 800 Timecounters tick every 1.000 msec ad4: 152627MB at ata2-master SATA150 hwpmc: TSC/1/0x20 K8/4/0x1ff 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# dmesgcat /root/ApPA # # 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"