NetBSD Problem Report #26400
Received: (qmail 25342 invoked by uid 605); 22 Jul 2004 09:36:20 -0000
Message-Id: <200407220936.i6M9aD3V001320@watcher.eis.cs.tu-bs.de>
Date: Thu, 22 Jul 2004 11:36:13 +0200 (MEST)
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: hannken@eis.cs.tu-bs.de
To: gnats-bugs@gnats.netbsd.org
Subject: 2.0_BETA cache_lookup_entry(dvp, cnp) == NULL
X-Send-Pr-Version: 3.95
>Number: 26400
>Category: kern
>Synopsis: 2.0_BETA cache_lookup_entry(dvp, cnp) == NULL
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: hannken
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 22 09:37:00 +0000 2004
>Closed-Date: Sat Jul 24 08:59:00 +0000 2004
>Last-Modified: Sat Jul 24 08:59:00 +0000 2004
>Originator: Juergen Hannken-Illjes
>Release: NetBSD 2.0_BETA
>Organization:
>Environment:
System: NetBSD watcher 2.0_BETA NetBSD 2.0_BETA (LOCAL) #0: Mon Jul 19 21:38:39 MEST 2004 hannken@watcher:/build/nbsd20/obj/sys/arch/i386/compile/LOCAL i386
Architecture: i386
Machine: i386
>Description:
Machine panic'd with kernel diagnostic assertion "cache_lookup_entry(dvp, cnp) == NULL" failed: file "sys/kern/vfs_cache.c", line 420
>How-To-Repeat:
>Fix:
Attached: Stack trace, Kernel config and Mount table. Dump and Kernel.gdb available.
Stack trace (dump available on request): =======================================
# gdb netbsd.0
GNU gdb 5.3nb1
(gdb) target kcore netbsd.0.core
(gdb) bt
#0 0x00000001 in ?? ()
#1 0xc0422fb7 in cpu_reboot (howto=260, bootstr=0x0) at sys/arch/i386/i386/machdep.c:743
#2 0xc0347571 in db_reboot_cmd (addr=1, have_addr=0, count=-1071178711, modif=0xdcf33958 "") at sys/ddb/db_command.c:689
#3 0xc03470b7 in db_command (last_cmdp=0xc0792064, cmd_table=0xc05df820) at sys/ddb/db_command.c:464
#4 0xc0346dc7 in db_command_loop () at sys/ddb/db_command.c:255
#5 0xc0349ecf in db_trap (type=1, code=0) at sys/ddb/db_trap.c:101
#6 0xc0420502 in kdb_trap (type=1, code=0, regs=0xdcf33bbc) at sys/arch/i386/i386/db_interface.c:225
#7 0xc042f736 in trap (frame=0xdcf33bbc) at sys/arch/i386/i386/trap.c:284
#8 0xc010c7d6 in calltrap ()
#9 0xc038c6d5 in panic (fmt=0xc07802c0 "kernel %sassertion \"%s\" failed: file \"%s\", line %d") at sys/kern/subr_prf.c:226
#10 0xc05b13a8 in __assert (t=0xc06e44e4 "diagnostic ", f=0xc0749120 "sys/kern/vfs_cache.c", l=420, e=0xc07490e0 "cache_lookup_entry(dvp, cnp) == NULL") at sys/lib/libkern/__assert.c:47
#11 0xc03ad36d in cache_enter (dvp=0xcfdb0a10, vp=0xd2621200, cnp=0xdcf33e98) at sys/kern/vfs_cache.c:412
#12 0xc033f763 in ufs_lookup (v=0xdcf33d94) at sys/ufs/ufs/ufs_lookup.c:609
#13 0xc03bfb87 in layer_lookup (v=0xdcf33d94) at sys/miscfs/genfs/layer_vnops.c:435
#14 0xc03babba in VOP_LOOKUP (dvp=0xcfdb0594, vpp=<incomplete type>, cnp=0xdcf33e98) at sys/kern/vnode_if.c:131
#15 0xc03af3b5 in lookup (ndp=0xdcf33e74) at sys/kern/vfs_lookup.c:509
#16 0xc03aee34 in namei (ndp=0xdcf33e74) at sys/kern/vfs_lookup.c:172
#17 0xc03b759c in sys___stat13 (l=0xe0346020, v=0xdcf33f64, retval=0xdcf33f5c) at sys/kern/vfs_syscalls.c:2176
#18 0xc042f16e in syscall_plain (frame=0xdcf33fa8) at sys/arch/i386/i386/syscall.c:159
Kernel config: =================================================================
include "arch/i386/conf/GENERIC.MP"
options CPURESET_DELAY=2000
options DIAGNOSTIC # expensive kernel consistency checks
options FFS_EI # FFS Endian Independent support
options GATEWAY # packet forwarding
options XSERVER # X server support
options SHMMAXPGS=32768
options NEW_BUFQ_STRATEGY # new buffer queue strategy
makeoptions DEBUG="-g" # compile full symbol table
config local root on raid0a type ffs dumps on wd0b
apm0 at mainbus0 # Advanced power management
pseudo-device fss 4 # file system snapshot device
Mount table: ===================================================================
/dev/raid0a on / type ffs (soft dependencies, local)
/dev/raid2h on /share/raid2h type ffs (soft dependencies, NFS exported, local)
/dev/raid3e on /share/raid3e type ffs (soft dependencies, NFS exported, local)
/dev/raid3f on /share/raid3f type ffs (soft dependencies, NFS exported, local)
/dev/raid3g on /share/raid3g type ffs (soft dependencies, local)
/dev/raid3h on /share/raid3h type ffs (soft dependencies, NFS exported, local)
/share/raid2h/hannken on /home/hannken type null (local)
/share/raid2h/nbsd20.src on /build/nbsd20/src type null (read-only, local)
/share/raid2h/nbsd20.xsrc on /build/nbsd20/xsrc type null (read-only, local)
/share/raid2h/nbsd20.pkgsrc on /build/nbsd20/pkgsrc type null (read-only, local)
/share/raid2h/nbsd20.dist on /build/nbsd20/dist type null (local)
/share/raid2h/nbsd20.obj on /build/nbsd20/obj type null (local)
/share/raid2h/nbsd16.src on /build/nbsd16/src type null (read-only, local)
/share/raid2h/nbsd16.obj on /build/nbsd16/obj type null (local)
/share/raid2h/nbsd16.dist on /build/nbsd16/dist type null (local)
/share/raid3e/dist.src on /build/dist/src type null (read-only, local)
/share/raid3e/dist.pkgsrc on /build/dist/pkgsrc type null (read-only, local)
/share/raid3e/dist.xsrc on /build/dist/xsrc type null (read-only, local)
/share/raid3e/dist.dist on /build/dist/dist type null (local)
/share/raid3g/dist.obj on /build/dist/obj type null (local)
/share/raid3g/proj.NT on /proj/NT type null (local)
/share/raid3g/proj.XP on /proj/XP type null (local)
/share/raid3f/proj.snap on /proj/snapshot type null (local)
/share/raid3g/archive on /archive type null (read-only, local)
/share/raid3h/scratch on /scratch type null (local)
kernfs on /kern type kernfs (local)
procfs on /proc type procfs (local)
pid1145@watcher:/vol on /vol type nfs (hidden)
pid1145@watcher:/net on /net type nfs (hidden)
>Release-Note:
>Audit-Trail:
From: Havard Eidnes <he@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/26400 CVS commit: [netbsd-2-0] src/sys/kern
Date: Fri, 23 Jul 2004 23:48:21 +0000 (UTC)
Module Name: src
Committed By: he
Date: Fri Jul 23 23:48:21 UTC 2004
Modified Files:
src/sys/kern [netbsd-2-0]: vfs_cache.c
Log Message:
Pull up revision 1.57 (requested by hannken in ticket #706):
Concurrent lookups in the same directory may race for a
cache entry. Handle this, and upon detection free the
tentative entry and return. Fixes PR#26400.
To generate a diff of this commit:
cvs rdiff -r1.54.2.1 -r1.54.2.2 src/sys/kern/vfs_cache.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: hannken
State-Changed-When: Sat Jul 24 08:57:38 UTC 2004
State-Changed-Why:
Resolved with Rev. 1.54.2.2 of src/sys/kern/vfs_cache.c
Responsible-Changed-From-To: kern-bug-people->hannken
Responsible-Changed-By: hannken
Responsible-Changed-When: Sat Jul 24 08:57:38 UTC 2004
Responsible-Changed-Why:
Resolved with Rev. 1.54.2.2 of src/sys/kern/vfs_cache.c
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.