public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Zack Weinberg <zack@codesourcery.com>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: bootstrap/5149: gcc-20011217 reads beyond EOF on cygwin
Date: Thu, 20 Dec 2001 11:06:00 -0000	[thread overview]
Message-ID: <20011220190601.9694.qmail@sources.redhat.com> (raw)

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

From: Zack Weinberg <zack@codesourcery.com>
To: Neil Booth <neil@daikokuya.demon.co.uk>
Cc: Werner Tuchan <tuwn@gmx.net>, neil@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
	gcc-gnats@gcc.gnu.org
Subject: Re: bootstrap/5149: gcc-20011217 reads beyond EOF on cygwin
Date: Thu, 20 Dec 2001 10:57:47 -0800

 On Thu, Dec 20, 2001 at 06:33:23PM +0000, Neil Booth wrote:
 > 
 > Weird.  The bytes after EOF are a mixture of NULs and 0xc0.  Is 0xc0
 > of special significance in Windows?  Is your version of cygwin the
 > latest?  I recall some talk about mmap bugs in cygwin.
 > 
 > I guess that we have to disable mmap() on cygwin, or at least on
 > specific versions.  Do you have any better ideas Zack?
 
 No.  But the AC_FUNC_MMAP_FILE macro (gcc/aclocal.m4) already executes
 a test program to determine whether or not mmap works the way we want.
 It would be easy enough to add a check that byte (len+1) of its test
 file is a NUL.  [And we'd better not be looking at byte len+2, or
 we'll segfault if the file length is one less than a multiple of
 PAGE_SIZE.]
 
 zw


             reply	other threads:[~2001-12-20 19:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-20 11:06 Zack Weinberg [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-06-19  4:26 neil
2001-12-21 23:36 Zack Weinberg
2001-12-21 10:56 Neil Booth
2001-12-21  9:26 Christopher Faylor
2001-12-21  6:46 Werner Tuchan
2001-12-20 11:16 Neil Booth
2001-12-20 10:36 Neil Booth
2001-12-20  6:46 Werner Tuchan
2001-12-19 16:20 neil
2001-12-18  3:56 tuwn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011220190601.9694.qmail@sources.redhat.com \
    --to=zack@codesourcery.com \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).