Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Apr 1995 09:50:04 -0600
From:      moore@ced.utah.edu
To:        freebsd-bugs@FreeBSD.org
Subject:   bug in mmap / ftruncate in 041295-SNAP?
Message-ID:  <199504251550.JAA23780@ruin.ced.utah.edu>

next in thread | raw e-mail | index | archive | help
If this is a know problem, nevermind...

strip -x is broken in 041295-SNAP.  An immediate symptom is that
kernels that have been strip -x'ed won't boot.  The problems seems to
be an interaction between mmap'ed files and ftruncate.  strip chews on
a mapped file and ftruncates it.  After the ftruncate, the first page
of the file reverts to the original data that was in the file.  I
thought that it might have just been "undefined" to ftruncate a
mapped file, but moving the call to ftruncate () after the call to
munmap showed the same behavior.

Tim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504251550.JAA23780>