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