Re: panic: System call lstat returning with 1 locks held

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Attilio Rao <attilio@...>
Cc: Kostik Belousov <kostikbel@...>, Scot Hetzel <swhetzel@...>, <freebsd-current@...>, Doug Barton <dougb@...>
Date: Saturday, February 9, 2008 - 4:33 pm

On Wed, Feb 06, 2008 at 03:57:58PM +0100, Attilio Rao wrote:

i_usecount is just zero for the faulty ip:

(kgdb) bt
#0  doadump () at pcpu.h:195
#1  0xc07680de in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:417
#2  0xc07683a3 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:571
#3  0xc048e507 in db_panic (addr=Could not find the frame base for "db_panic".
) at /usr/src/sys/ddb/db_command.c:444
#4  0xc048ef0c in db_command (last_cmdp=0xc0bdd194, cmd_table=0x0, dopager=1)
    at /usr/src/sys/ddb/db_command.c:411
#5  0xc048f01a in db_command_loop () at /usr/src/sys/ddb/db_command.c:464
#6  0xc04907bd in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:228
#7  0xc07913b6 in kdb_trap (type=3, code=0, tf=0xd614e9fc)
    at /usr/src/sys/kern/subr_kdb.c:510
#8  0xc0a5dedb in trap (frame=0xd614e9fc) at /usr/src/sys/i386/i386/trap.c:647
#9  0xc0a438cb in calltrap () at /usr/src/sys/i386/i386/exception.s:146
#10 0xc079153a in kdb_enter (why=0xc0af0f54 "panic", msg=0xc0af0f54 "panic")
    at cpufunc.h:60
#11 0xc076838c in panic (fmt=0xc0aee673 "lockmgr still held")
    at /usr/src/sys/kern/kern_shutdown.c:555
#12 0xc0755abe in lockdestroy (lkp=0xc0af0f54)
    at /usr/src/sys/kern/kern_lock.c:574
#13 0xc2ff8688 in ntfs_ntput (ip=0xc2fbba00)
    at /usr/src/sys/modules/ntfs/../../fs/ntfs/ntfs_subr.c:467
#14 0xc2ff5eb8 in ntfs_reclaim (ap=0xd614eb04)
    at /usr/src/sys/modules/ntfs/../../fs/ntfs/ntfs_vnops.c:262
[...]
(kgdb) frame 13
#13 0xc2ff8688 in ntfs_ntput (ip=0xc2fbba00)
    at /usr/src/sys/modules/ntfs/../../fs/ntfs/ntfs_subr.c:467
467             lockdestroy(&ip->i_lock);
(kgdb) p *ip
$2 = {i_devvp = 0xc2fe2dd0, i_dev = 0xc2e7de00, i_hash = {le_next = 0x0,
    le_prev = 0xc302002c}, i_next = 0x0, i_prev = 0x0, i_mp = 0xc2fbb500,
  i_number = 10, i_flag = 32768, i_lock = {lk_object = {
      lo_name = 0xc2ffb672 "ntnode", lo_type = 0xc2ffb672 "ntnode",
      lo_flags = 91947008, lo_witness_data = {lod_list = {
          stqe_next = 0xc0c21190}, lod_witness = 0xc0c21190}},
    lk_interlock = 0xc0c0dbe8, lk_flags = 262144, lk_sharecount = 0,
    lk_waitcount = 0, lk_exclusivecount = 1, lk_prio = 72, lk_timo = 0,
    lk_lockholder = 0xc2fecaa0, lk_newlock = 0x0}, i_interlock = {
    lock_object = {lo_name = 0xc2ffc039 "ntnode interlock",
      lo_type = 0xc2ffc039 "ntnode interlock", lo_flags = 16908288,
      lo_witness_data = {lod_list = {stqe_next = 0xc0c21168},
        lod_witness = 0xc0c21168}}, mtx_lock = 6, mtx_recurse = 0},
  i_usecount = 0, i_fnlist = {lh_first = 0x0}, i_valist = {lh_first = 0x0},
  i_nlink = 1, i_mainrec = 0, i_frflag = 1}

-- 
Yar
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
panic: System call lstat returning with 1 locks held, Scot Hetzel, (Tue Jan 15, 9:52 am)
Re: panic: System call lstat returning with 1 locks held, Kostik Belousov, (Tue Jan 15, 10:39 am)
Re: panic: System call lstat returning with 1 locks held, Yar Tikhiy, (Sat Feb 9, 4:33 pm)
Re: panic: System call lstat returning with 1 locks held, Pawel Jakub Dawidek, (Thu Jan 17, 7:40 am)
Re: panic: System call lstat returning with 1 locks held, Norikatsu Shigemura, (Fri Jan 18, 12:55 pm)
Re: panic: System call lstat returning with 1 locks held, Kris Kennaway, (Wed Jan 16, 5:55 am)
Re: panic: System call lstat returning with 1 locks held, John Baldwin, (Wed Jan 16, 11:11 am)