HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 1235 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 1235.


Report 1235 Actions


    Problem Report Number 1235
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Rejected (REJ)
    Problem Resolution ID REJ.X.0437
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published null
    Product Standard Internationalised System Calls and Libraries Extended (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSU version 4.0.2
    Test Identification Base/msync 3
    Problem Summary PG4U.00028 This was refused because it is a duplicate. See TSD4U.00053 instead.
    Problem Text
    msync() Test 3 fails because it cannot establish a mapping with MAP_FIXED.
    This happens in the map3() function in the library. The function appears
    to be doing a reasonable thing: obtain an address using mmap() without
    MAP_FIXED, unmap it, and then pass that address in again with MAP_FIXED.
    But this is not necessarily guaranteed to work because an implementation
    may fail an mmap MAP_FIXED request for any reason and set EINVAL. This is
    what happens in the test. The test aggravates the situation by obtaining
    an address for a mapping of one size, and then trying to use it for a
    mapping of a different size.

    The test could try to find a different address to use, perhaps one that
    was obtained by first trying to mmap 1*pgsz instead of 3*pgsz. Once it
    finds an address that is returned for a non-FIXED mapping for both sizes,
    then it could try to use it with MAP_FIXED.
    Test Output
    TEST CASE: msync

    TEST PURPOSE #3
    A successful call to int msync(void *addr, size_t len,
    int flags) when flags contains the flag MS_INVALIDATE
    shall invalidate all cached copies of all pages in the
    range [addr,addr+len] and return 0.
    PREP: Obtain the system page size by call to
    sysconf(_SC_PAGESIZE)
    PREP: Establish signal handlers for SIGSEGV
    PREP: Open a file and initialize it
    PREP: Allocate memory for buffer
    PREP: Now set proper permissions and re-open file
    PREP: Find a fixed address for mapping text
    PREP: Map first section
    ERROR: mmap failed, errno = 22(EINVAL - Invalid argument)
    3 UNRESOLVED

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We recommend this request be refused.
    This is the same as ruling TSD4U.00053.
    This was refused because it is a duplicate. See TSD4U.00053 instead.

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Rejected (REJ)
    Review Conclusion
    This request is refused.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority