From owner-freebsd-current Tue Mar 25 13:34:17 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7A3D37B401 for ; Tue, 25 Mar 2003 13:34:11 -0800 (PST) Received: from mf1.bredband.net (mf1.bredband.net [195.54.106.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C8E343FAF for ; Tue, 25 Mar 2003 13:34:09 -0800 (PST) (envelope-from mk-freebsd@bredband.net) Received: from localhost.036-23-6f72652.cust.bredbandsbolaget.se ([213.112.58.48]) by mf1.bredband.net with ESMTP id <20030325213407.FKQG269.mf1@localhost.036-23-6f72652.cust.bredbandsbolaget.se> for ; Tue, 25 Mar 2003 22:34:07 +0100 Received: from c-303a70d5.036-23-6f72652.cust.bredbandsbolaget.se (localhost [127.0.0.1]) by localhost.036-23-6f72652.cust.bredbandsbolaget.se (8.12.8/8.12.8) with ESMTP id h2PLY8VF000763 for ; Tue, 25 Mar 2003 22:34:08 +0100 (CET) (envelope-from mk-freebsd@bredband.net) Received: (from martink@localhost) by c-303a70d5.036-23-6f72652.cust.bredbandsbolaget.se (8.12.8/8.12.8/Submit) id h2PLY30A000762 for freebsd-current@freebsd.org; Tue, 25 Mar 2003 22:34:03 +0100 (CET) (envelope-from mk-freebsd@bredband.net) Date: Tue, 25 Mar 2003 22:34:03 +0100 From: Martin Karlsson To: freebsd-current@freebsd.org Subject: panic: blockable sleep lock (sleep mutex) Giant @ /usr/src/sys/vm/vm_fault.c:206 Message-ID: <20030325213403.GA715@c-303a70d5.bredbandsbolaget.se> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline X-Powered-by: FreeBSD X-PGP-Keyid: 9C924660 X-PGP-Fingerprint: 5970 BE22 2C33 4D8F 53FD 7E34 66FF 9332 9C92 4660 X-PGP-Key: http://www.krutov.org/martin_karlsson.asc User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, My system: Current, cvsup'd Mon Mar 25 17:21:05 CET 2003 I load linux-compatability through /etc/rc.conf (linux_enable="YES"). If I unload it (kldunload linux.ko) and then run another command (so far, I've tested kldstat(8) and ls(1)), I get a panic: panic: blockable sleep lock (sleep mutex) Giant @ /usr/src/sys/vm/vm_fault.c:206 The first time this happened was with a system built from yesterday's (March 24) sources. Unloading linux.ko, and running kldstat produced the panic. I noticed that /usr/src/sys/vm/vm_fault.c had been touched since my buildworld/installworld ($FreeBSD: src/sys/vm/vm_fault.c,v 1.164 2003/03/25 00:07:05 jake Exp $) so I cvsup'd and built/installed world again. This time I tested with "kldunload linux.ko" followed by "ls". Panic again. I'll be happy to supply more info if needed (but I'll probably need instructions). You'll find my kernel-config at: URL: While searching on this, I came across a report of a similar crash, to the -current list: (I don't know if this helps) Message-ID: <20030104163145.GT311@goddamnbastard.org> URL: Attached is a backtrace (at least I think it's a backtrace). Best regards, -- Martin Karlsson --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=ktrace c-303a70d5# gdb -k kernel.debug.0 vmcore.0 GNU gdb 5.2.1 (FreeBSD) Copyright 2002 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-undermydesk-freebsd"... panic: from debugger panic messages: --- panic: blockable sleep lock (sleep mutex) Giant @ /usr/src/sys/vm/vm_fault.c:206 panic: from debugger Uptime: 11m51s Dumping 383 MB ata0: resetting devices .. done 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368 --- Reading symbols from /usr/obj/usr/src/sys/cuK20030325_2/modules/usr/src/sys/modules/acpi/acpi.ko.debug...done. Loaded symbols for /usr/obj/usr/src/sys/cuK20030325_2/modules/usr/src/sys/modules/acpi/acpi.ko.debug Reading symbols from /boot/kernel/blank_saver.ko...done. Loaded symbols for /boot/kernel/blank_saver.ko #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:239 239 dumping++; (kgdb) where #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:239 #1 0xc01e78c1 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:371 #2 0xc01e7b24 in poweroff_wait (junk=0xc030fa77, howto=-677123884) at /usr/src/sys/kern/kern_shutdown.c:542 #3 0xc013a8fd in db_panic () at /usr/src/sys/ddb/db_command.c:448 #4 0xc013a8a0 in db_command (last_cmdp=0xc03415c0, cmd_table=0xc030fa77, aux_cmd_tablep=0x104, aux_cmd_tablep_end=0xc345d000) at /usr/src/sys/ddb/db_command.c:346 #5 0xc013a96b in db_command_loop () at /usr/src/sys/ddb/db_command.c:470 #6 0xc013ced2 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_trap.c:72 #7 0xc02db570 in kdb_trap (type=3, code=0, regs=0xd7a3e974) at /usr/src/sys/i386/i386/db_interface.c:170 #8 0xc02ea064 in trap (frame= {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = -1018834944, tf_esi = 256, tf_ebp = -677123656, tf_isp = -677123680, tf_ebx = 0, tf_edx = 0, tf_ecx = 32, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1070745639, tf_cs = 8, tf_eflags = 662, tf_esp = -1070446405, tf_ss = -677123628}) at /usr/src/sys/i386/i386/trap.c:602 #9 0xc02dca88 in calltrap () at {standard input}:96 #10 0xc01e7b0b in panic (fmt=0x0) at /usr/src/sys/kern/kern_shutdown.c:528 #11 0xc020256e in witness_lock (lock=0xc03760c0, flags=8, file=0xc0332416 "/usr/src/sys/vm/vm_fault.c", line=206) at /usr/src/sys/kern/subr_witness.c:604 #12 0xc01e0237 in _mtx_lock_flags (m=0xc03760c0, opts=0, file=0xc0332416 "/usr/src/sys/vm/vm_fault.c", line=206) at /usr/src/sys/kern/kern_mutex.c:336 #13 0xc02aee16 in vm_fault (map=0xc082f000, vaddr=3277029376, fault_type=1 '\001', fault_flags=0) at /usr/src/sys/vm/vm_fault.c:206 #14 0xc02ea231 in trap_pfault (frame=0xd7a3eb98, usermode=0, eva=3277031021) at /usr/src/sys/i386/i386/trap.c:745 #15 0xc02e9eb5 in trap (frame= {tf_fs = 24, tf_es = 16, tf_ds = -677183472, tf_edi = -1070112672, tf_esi = -1070469158, tf_ebp = -677123108, tf_isp = -677123132, tf_ebx = -1069887352, tf_edx = -1070469158, tf_ecx = -1017936275, tf_eax = 8, tf_trapno = 12, tf_err = 0, tf_eip = -1071417774, tf_cs = 8, tf_eflags = 66050, tf_esp = -1069887352, tf_ss = -677123080}) at /usr/src/sys/i386/i386/trap.c:444 #16 0xc02dca88 in calltrap () at {standard input}:96 #17 0xc02030fe in enroll (description=0xc031efda "filedesc structure", lock_class=0xc0376060) at /usr/src/sys/kern/subr_witness.c:1111 #18 0xc02022a1 in witness_init (lock=0xc3775834) at /usr/src/sys/kern/subr_witness.c:470 #19 0xc01e0a73 in mtx_init (m=0xc3775834, name=0xc031efda "filedesc structure", type=0x0, opts=0) at /usr/src/sys/kern/kern_mutex.c:944 #20 0xc01d14de in fdcopy (fdp=0xc3776400) at /usr/src/sys/kern/kern_descrip.c:1283 #21 0xc01d7c19 in fork1 (td=0xc345d000, flags=-2147483596, pages=0, procp=0xd7a3ece0) at /usr/src/sys/kern/kern_fork.c:434 #22 0xc01d7543 in vfork (td=0xc345d000, uap=0xd7a3ed14) at /usr/src/sys/kern/kern_fork.c:123 #23 0xc02ea7a1 in syscall (frame= {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1077945984, tf_esi = 0, tf_ebp = -1077950424, tf_isp = -677122700, tf_ebx = 135572144, tf_edx = 1, tf_ecx = 134615706, tf_eax = 66, tf_trapno = 22, tf_err = 2, tf_eip = 134800664, tf_cs = 31, tf_eflags = 582, tf_esp = -1077954720, tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:1030 #24 0xc02dcadd in Xint0x80_syscall () at {standard input}:138 ---Can't read userspace from dump, or kernel process--- /usr/src/sys/kern/kern_shutdown.c:528 #11 0xc020256e in witness_lock (lock=0xc03760c0, flags=8, file=0xc0332416 "/usr/src/sys/vm/vm_fault.c", line=206) at /usr/src/sys/kern/subr_witness.c:604 #12 0xc01e0237 in _mtx_lock_flags (m=0xc03760c0, opts=0, file=0xc0332416 "/usr/src/sys/vm/vm_fault.c", line=206) at /usr/src/sys/kern/kern_mutex.c:336 #13 0xc02aee16 in vm_fault (map=0xc082f000, vaddr=3277029376, fault_type=1 '\001', fault_flags=0) at /usr/src/sys/vm/vm_fault.c:206 #14 0xc02ea231 in trap_pfault (frame=0xd7a3eb98, usermode=0, eva=3277031021) at /usr/src/sys/i386/i386/trap.c:745 #15 0xc02e9eb5 in trap (frame= {tf_fs = 24, tf_es = 16, tf_ds = -677183472, tf_edi = -1070112672, tf_esi = -1070469158, tf_ebp = -677123108, tf_isp = -677123132, tf_ebx = -1069887352, tf_edx = -1070469158, tf_ecx = -1017936275, tf_eax = 8, tf_trapno = 12, tf_err = 0, tf_eip = -1071417774, tf_cs = 8, tf_eflags = 66050, tf_esp = -1069887352, tf_ss = -677123080}) at /usr/src/sys/i386/i386/trap.c:444 #16 0xc02dca88 in calltrap () at {standard input}:96 #17 0xc02030fe in enroll (description=0xc031efda "filedesc structure", lock_class=0xc0376060) at /usr/src/sys/kern/subr_witness.c:1111 #18 0xc02022a1 in witness_init (lock=0xc3775834) at /usr/src/sys/kern/subr_witness.c:470 #19 0xc01e0a73 in mtx_init (m=0xc3775834, name=0xc031efda "filedesc structure", type=0x0, opts=0) at /usr/src/sys/kern/kern_mutex.c:944 #20 0xc01d14de in fdcopy (fdp=0xc3776400) at /usr/src/sys/kern/kern_descrip.c:1283 #21 0xc01d7c19 in fork1 (td=0xc345d000, flags=-2147483596, pages=0, procp=0xd7a3ece0) at /usr/src/sys/kern/kern_fork.c:434 #22 0xc01d7543 in vfork (td=0xc345d000, uap=0xd7a3ed14) at /usr/src/sys/kern/kern_fork.c:123 #23 0xc02ea7a1 in syscall (frame= {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1077945984, tf_esi = 0, tf_ebp = -1077950424, tf_isp = -677122700, tf_ebx = 135572144, tf_edx = 1, tf_ecx = 134615706, tf_eax = 66, tf_trapno = 22, tf_err = 2, tf_eip = 134800664, tf_cs = 31, tf_eflags = 582, tf_esp = -1077954720, tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:1030 #24 0xc02dcadd in Xint0x80_syscall () at {standard input}:138 ---Can't read userspace from dump, or kernel process--- --dDRMvlgZJXvWKvBx-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message