public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/959] New: posix/tst-mmap.c doesn't support 64 page size
@ 2005-05-19 20:04 hjl at lucon dot org
  2005-06-03 20:37 ` [Bug libc/959] " cvs-commit at gcc dot gnu dot org
  2005-07-29  3:59 ` gotom at debian dot or dot jp
  0 siblings, 2 replies; 3+ messages in thread
From: hjl at lucon dot org @ 2005-05-19 20:04 UTC (permalink / raw)
  To: glibc-bugs

posix/tst-mmap.c has

  char buf[1000];
  int fd;
  unsigned char *ptr;
  size_t ps = sysconf (_SC_PAGESIZE);
...
  for (c = 0; c < 20; ++c)
    if (fwrite (buf, 1, sizeof (buf), fp) != sizeof (buf))
      {
        printf ("`fwrite' failed: %m\n");
        return 1;
      }
  fflush (fp);
  assert (ps + 1000 < c * sizeof (buf));

If page size is 64K, assert will fail.

-- 
           Summary: posix/tst-mmap.c doesn't support 64 page size
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: hjl at lucon dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=959

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/959] posix/tst-mmap.c doesn't support 64 page size
  2005-05-19 20:04 [Bug libc/959] New: posix/tst-mmap.c doesn't support 64 page size hjl at lucon dot org
@ 2005-06-03 20:37 ` cvs-commit at gcc dot gnu dot org
  2005-07-29  3:59 ` gotom at debian dot or dot jp
  1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-03 20:37 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-03 20:37 -------
Subject: Bug 959

CVSROOT:	/cvs/glibc
Module name:	libc
Changes by:	roland@sources.redhat.com	2005-06-03 20:37:26

Modified files:
	posix          : tst-mmap.c 

Log message:
	2005-06-01  Roland McGrath  <roland@redhat.com>
	
	[BZ #959]
	* posix/tst-mmap.c (main): Fill the test file with enough data for the
	page size.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/posix/tst-mmap.c.diff?cvsroot=glibc&r1=1.4&r2=1.5



-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=959

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/959] posix/tst-mmap.c doesn't support 64 page size
  2005-05-19 20:04 [Bug libc/959] New: posix/tst-mmap.c doesn't support 64 page size hjl at lucon dot org
  2005-06-03 20:37 ` [Bug libc/959] " cvs-commit at gcc dot gnu dot org
@ 2005-07-29  3:59 ` gotom at debian dot or dot jp
  1 sibling, 0 replies; 3+ messages in thread
From: gotom at debian dot or dot jp @ 2005-07-29  3:59 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From gotom at debian dot or dot jp  2005-07-29 03:59 -------
Fixed in the cvs.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sources.redhat.com/bugzilla/show_bug.cgi?id=959

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-29  3:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-19 20:04 [Bug libc/959] New: posix/tst-mmap.c doesn't support 64 page size hjl at lucon dot org
2005-06-03 20:37 ` [Bug libc/959] " cvs-commit at gcc dot gnu dot org
2005-07-29  3:59 ` gotom at debian dot or dot jp

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