On Wed, Mar 21, 2007 at 10:31:29AM -0500, Bruce Dubbs wrote:
> Thanks Bryan.  It's still a mystery to me.  I tried a 2.6.20.3 kernel
> last night and it still failed for me.

Well, I can try installing 2.6.20.3 to see if it also fails for me;
perhaps 2.6.19.1 is an oddball?  I know it has some other issues, so I
should upgrade it anyway.

However, I've done some other testing on a really-old LFS system (pre
6.2) that's still running kernel 2.4 (2.4.33.6 plus grsecurity), and it
passes the test.  I've also tested a Debian-testing box running kernel
2.6.18-1-686 (whatever that corresponds to), and it passes as well.
Both of these machines run 32-bit kernels.

> Experimenting showed that the
> printf needs to be before the mmap function to make a difference, so I
> am hypothesizing that the issue is in mmap.

Entirely possible; there have been a few issues with mmap over the past
couple years that I can remember.  Maybe one of the fixes broke this
test?

What happens if you lseek() back to the beginning of the file before
calling mmap?  I don't think that should matter, but who knows.

Attachment: pgpNOwhnNcYcQ.pgp
Description: PGP signature

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to