From owner-freebsd-current Tue Nov 26 14: 2: 9 2002 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 0753137B401 for ; Tue, 26 Nov 2002 14:02:07 -0800 (PST) Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84BF843E4A for ; Tue, 26 Nov 2002 14:02:06 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 7380 invoked from network); 26 Nov 2002 22:02:14 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail14.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 26 Nov 2002 22:02:14 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id gAQM24uH014104; Tue, 26 Nov 2002 17:02:05 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3DE3DB7A.3050505@isi.edu> Date: Tue, 26 Nov 2002 17:02:10 -0500 (EST) From: John Baldwin To: Lars Eggert Subject: Re: panic: mtx_lock() of spin mutex Cc: current 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 On 26-Nov-2002 Lars Eggert wrote: > John Baldwin wrote: > >> On 18-Oct-2002 Lars Eggert wrote: >> >> >John Baldwin wrote: >> > >> >>What is line 488 of src/sys/kern/kern_descrip.c? >> > >> >fhold(fp) in do_dup(). > > Still see this issue on today's -current. It's easily reproducible with > a simple "cd ~sunhee" in a tcsh, where ~sunhee is on NFS: > > panic: mtx_lock() of spin mutex D\^QR\M-@\M-TR\M-@ \M^UV\M-@\^D @ > /usr/src/sys/kern/kern_descrip.c:485 > cpuid = 1; lapic.id = 02000000 > panic: from debugger > cpuid = 1; lapic.id = 02000000 > boot() called on cpu#1 > Uptime: 2m28s > pfs_vncache_unload(): 3 entries remaining > Dumping 1023 MB > 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 > 320 336 352 368 384 400 416 432 448 464 480 496 512 528 544 560 576 592 > 608 624 640 656 672 688 704 720 736 752 768 784 800 816 832 848 864 880 > 896 912 928 944 960 976 992 1008 > --- >#0 doadump () at /usr/src/sys/kern/kern_shutdown.c:233 > 233 dumpsys(&dumper); > (kgdb) bt >#0 doadump () at /usr/src/sys/kern/kern_shutdown.c:233 >#1 0xc02c737e in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:364 >#2 0xc02c7977 in panic (fmt=0xc0466524 "from debugger") > at /usr/src/sys/kern/kern_shutdown.c:517 >#3 0xc01533d2 in db_panic () at /usr/src/sys/ddb/db_command.c:450 >#4 0xc015320c in db_command (last_cmdp=0xc04d78a0, cmd_table=0x0, > aux_cmd_tablep=0xc04cede0, aux_cmd_tablep_end=0xc04cede4) > at /usr/src/sys/ddb/db_command.c:346 >#5 0xc015344a in db_command_loop () at /usr/src/sys/ddb/db_command.c:472 >#6 0xc01560e5 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_trap.c:72 >#7 0xc0426547 in kdb_trap (type=3, code=0, regs=0xe0b40be8) > at /usr/src/sys/i386/i386/db_interface.c:166 >#8 0xc043e63d in trap (frame= > {tf_fs = 24, tf_es = -1068957680, tf_ds = 16, tf_edi = > -972412288, tf_esi = 256, tf_ebp = -525071308, tf_isp = -525071340, > tf_ebx = 0, tf_edx = 0, tf_ecx = 0, tf_eax = 18, tf_trapno = 3, tf_err = > 0, tf_eip = -1069389686, tf_cs = 8, tf_eflags = 642, tf_esp = > -1068771002, tf_ss = -1068921887}) > at /usr/src/sys/i386/i386/trap.c:603 >#9 0xc0427d18 in calltrap () at {standard input}:99 >#10 0xc02c795f in panic (fmt=0x0) at /usr/src/sys/kern/kern_shutdown.c:503 >#11 0xc02bda97 in _mtx_lock_flags (m=0xc0521154, opts=0, > file=0xc0495d47 "/usr/src/sys/kern/kern_descrip.c", line=485) > at /usr/src/sys/kern/kern_mutex.c:325 >#12 0xc02a93e6 in do_dup (td=0xc60a2a80, type=DUP_FIXED, old=-1, new=4, > retval=0xc60a2b18) at /usr/src/sys/kern/kern_descrip.c:485 Hmm, old = -1, this might be fixed by a patch I committed today to fix bugs in do_dup(). Please try revision 1.169 of kern_descrip.c and let me know if it is still broken. Thanks. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message