|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1444 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 1444.
Report 1444 Actions
Problem Report Number 1444 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0726 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1995-12-11 08:00 Product Standard Internationalised System Calls and Libraries Extended (UNIX 95) Certification Program The Open Brand certification program Test Suite VSU version 4.1.0 Test Identification base/mmap 7 Problem Summary TSD4U.00089 The test may fail on implementations because memory is not ensured to be synced with disk. Problem Text
The test may fail on implementations because memory is not ensured to
be synced with disk.
The standard states in the mmap() function description,
It is also unspecified whether write references to a
memory region mapped with MAP_SHARED are visible to
processes reading the file and whether writes to a
file are visible to processes that have mapped the
modified portion of that file, except for the effect
of msync().
Without an intervening msync() call, the test cannot be assured that
the information on disk has been synchronized when the read() is
attempted.Test Output
10|1553 /tset/CAPIbase/fmmap/fmmap7 18:27:55|TC Start, scenario ref 76-1
15|1535 1.10 1|TCM Start
400|1535 7 1 18:27:58|IC Start
200|1535 1 18:27:58|TP Start
520|1535 1 60555296 1 1|SPEC1170TESTSUITE CASE 7
520|1535 1 60555296 1 2|A successful call to void *mmap(void *addr, size
520|1535 1 60555296 1 3|len, int prot, int flags, int fildes, off_t off)
520|1535 1 60555296 1 4|fildes is associated with a regular file, the
520|1535 1 60555296 1 5|MAP_SHARED flag is set in flags, and the PROT_WR
520|1535 1 60555296 1 6|flag is set in prot shall map len bytes at offse
520|1535 1 60555296 1 7|in the file associated with fildes into the
520|1535 1 60555296 1 8|address space of the process, allow the mapped a
520|1535 1 60555296 1 9|be written such that write references change the
520|1535 1 60555296 1 10|file, and return the location in the address
520|1535 1 60555296 1 11|space at which the mapping is made.
520|1535 1 71565336 1 1|PREP: Obtain the system page size by call to
520|1535 1 71565336 1 2| sysconf(_SC_PAGESIZE)
520|1535 1 71565336 1 3|PREP: Establish signal handlers for SIGSEGV and
520|1535 1 71565336 1 4|PREP: Open a file and initialize it
520|1535 1 71565336 1 5|PREP: Allocate memory for buffer
520|1535 1 71565336 1 6|PREP: Now set proper permissions and re-open fil
520|1535 1 86114326 1 1|TEST: Child1: mmap() with MAP_SHARED returns
520|1535 1 86114326 1 2| location where file is mapped
520|1535 1 86114326 1 3|TEST: Child1: Mapped page at that address may be
520|1535 1 71565336 3 1|TEST: Verify that file has been updated
520|1535 1 71565336 3 2|ERROR: Word 0 in file was 1024, should be 1
520|1535 1 93257735 1 1|TEST: Child2: mmap() with MAP_SHARED returns
520|1535 1 93257735 1 2| location where file is mapped
520|1535 1 93257735 1 3|TEST: Child2: Mapped page at that address may be
520|1535 1 93257735 1 4| written
220|1535 1 1 18:28:00|FAIL
410|1535 7 1 18:28:00|IC End
80|1553 0 18:28:00|TC EndReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
We agree this is a test suite deficiency in the test
suite version(s) listed.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Test Suite Deficiency (TSD) Review Conclusion
This is an agreed Test Suite Deficiency.
Problem Reporting System Options:
- View Report 1444
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority