NetBSD Problem Report #3591

Received: (qmail 20097 invoked from network); 8 May 1997 20:52:54 -0000
Message-Id: <199705082052.QAA09380@rover.cygnus.com>
Date: Thu, 8 May 1997 16:52:18 -0400 (EDT)
From: Marc Horowitz <marc@cygnus.com>
Reply-To: marc@cygnus.com
To: gnats-bugs@gnats.netbsd.org
Subject: union mounts cause spurious core dump
X-Send-Pr-Version: 3.95

>Number:         3591
>Category:       kern
>Synopsis:       union mounts cause spurious core dump
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 08 14:05:01 +0000 1997
>Closed-Date:    Fri Sep 14 04:36:24 +0000 2001
>Last-Modified:  Fri Sep 14 04:36:24 +0000 2001
>Originator:     Marc Horowitz
>Release:        april 29
>Organization:

>Environment:

System: NetBSD rover 1.2D NetBSD 1.2D (MARC) #0: Tue May 6 17:47:54 EDT 1997 marc@rover:/u3/netbsd/src/sys/arch/i386/compile/MARC i386


>Description:

union mount:
<below>:/u1/usr-local/generic on /usr/local type union

after running /usr/local/bin/cvs for a while, I replace it.
/usr/local/bin/cvs now core dumps, although
/u1/usr-local/generic/bin/cvs does not.  By all indications (sum, ls
-li, etc.) they are the same file.  Eventually, /usr/local/bin/cvs
stops core dumping.

it would seem something is being cached incorrectly.

>How-To-Repeat:

I don't have another different cvs around to try to replicate this.

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: chs 
State-Changed-When: Thu Sep 13 21:33:33 PDT 2001 
State-Changed-Why:  
this sounds very much like the incoherency between buffer cache 
and page cache causing a partially-updated executable as far as 
running it is concerned.  if you read the file using mmap() instead 
of read(), I bet you would see that it was different from the 
non-union image.  this is all fixed now that the caches are merged 
and layered filesystems no longer get their own copies of file data 
in memory. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.