NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/47739: tmpfs panic: kernel diagnostic assertion "(node)->tn_spec.tn_dir.tn_readdir_lastp == NULL..."



The following reply was made to PR kern/47739; it has been noted by GNATS.

From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: Mindaugas Rasiukevicius <rmind%netbsd.org@localhost>
Cc: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
Subject: Re: kern/47739: tmpfs panic: kernel diagnostic assertion
 "(node)->tn_spec.tn_dir.tn_readdir_lastp == NULL..."
Date: Tue, 20 Aug 2013 07:32:56 +0200

 On Thu, Aug 08, 2013 at 09:27:34PM +0100, Mindaugas Rasiukevicius wrote:
 > Thomas Klausner <wiz%NetBSD.org@localhost> wrote:
 > > The following reply was made to PR kern/47739; it has been noted by GNATS.
 > > 
 > > From: Thomas Klausner <wiz%NetBSD.org@localhost>
 > > To: gnats-bugs%NetBSD.org@localhost
 > > Cc: 
 > > Subject: Re: kern/47739: tmpfs panic: kernel diagnostic assertion
 > >  "(node)->tn_spec.tn_dir.tn_readdir_lastp == NULL..."
 > > Date: Mon, 22 Jul 2013 19:42:17 +0200
 > > 
 > >  These are highly reproducible.
 > >  
 > >  Whenever I do a bulk build from scratch, I usually reboot at least
 > >  once due to it.
 > >  
 > >  Can someone please take a look?
 > >   Thomas
 > 
 > Most likely this is due to tmpfs_dircookie() truncation here:
 > 
 > http://nxr.netbsd.org/source/xref/src/sys/fs/tmpfs/tmpfs.h#88
 > 
 > It is wrong and there are other PRs because of it.  Thomas, you can test
 > this by replacing the function body with the following:
 > 
 >      return (off_t)(uintptr_t)de;
 > 
 > This breaks linux32 compat, but we really just need to decide how we want
 > to fix it (it would be good to avoid penalising the native code, but better
 > to penalise than fail).
 
 It survived a bit longer, but rebooted last night.
 
 Checking for core dump...
 savecore: reboot after panic: WTAA RLRNNOINWGEGR :ES DPS LP OLNN O NTTOW 
RALTAROP NW LIEEONRGIEETRD E  DO OS0NNP
  LTT RNAPOP T E EXLXIOIWT E 6R6A E 0D0N
 
  IONNG :T RSAPPL  ENXOITT  L6O WW0E
 RENDI NOGN:  TSRPALP  NEOXTI WTLA OR6WNEIR0NEGD:  OSNP LT RNAOPT  ELXOIWTE R6E 
D0 
 ON TRAPA RENXIINTG :6  S0P
 L NOT LOWERED ON TRAP EXIT 6A R0N
 IWNAGR
 savecore: system went down at Tue Aug 20 00:39:50 2013
 
 savecore: writing compressed core to /var/crash/netbsd.42.core.gz
 
 (gdb) target kvm netbsd.core
 #0  0xffffffff805e3299 in cpu_reboot ()
 (gdb) bt
 #0  0xffffffff805e3299 in cpu_reboot ()
 #1  0xffffffff807e92be in vpanic ()
 #2  0xffffffff8098cc7a in kern_assert ()
 #3  0xffffffff80834a6b in tmpfs_readdir ()
 #4  0xffffffff80926743 in VOP_READDIR ()
 #5  0xffffffff809092fb in vn_readdir ()
 #6  0xffffffff809048e0 in sys___getdents30 ()
 #7  0xffffffff80807225 in syscall ()
 #8  0xffffffff801006a1 in Xsyscall ()
 #9  0x000000000000000a in ?? ()
 #10 0x00007f7ff7b3f000 in ?? ()
 #11 0x0000000000001000 in ?? ()
 #12 0x00007f7ff710c84a in ?? ()
 #13 0x0000000000000ff0 in ?? ()
 #14 0x00007f7ff7bb82d5 in ?? ()
 #15 0x0000000000000000 in ?? ()
 
 
 
  Thomas
 


Home | Main Index | Thread Index | Old Index