Date: Tue, 26 Nov 2002 17:02:10 -0500 (EST) From: John Baldwin <jhb@FreeBSD.org> To: Lars Eggert <larse@ISI.EDU> Cc: current <current@FreeBSD.org> Subject: Re: panic: mtx_lock() of spin mutex Message-ID: <XFMail.20021126170210.jhb@FreeBSD.org> In-Reply-To: <3DE3DB7A.3050505@isi.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> <>< 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20021126170210.jhb>