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

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 1476 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 1476.


Report 1476 Actions


    Problem Report Number 1476
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0758
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1995-10-31 08:00
    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/munmap 2
    Problem Summary TSD4U.00055 The test may fail on implementations due to a logic error.
    Problem Text
    The test may fail on implementations due to a logic error.

    line 14:
    Call mmap() to map in two pages and call munmap() to unmap
    half page, which will be rounded up to one page (refer to
    source file: CAPI/tset/CAPIbase/fmunmap/fnunmap2.c: line 95
    and line 101). Therefore, there is only one unmapped page
    left.
    line 18, 19, 20, 21:
    Call munmap() to unmap page and a half (source file: line 228)
    and fails. This call fails since there is only one unmapped
    page left and the call tries to unmap page and a half.
    Recommendation:
    The recommended change is to call mmap() to map in three pages
    instead of two.

    Test Output
    1 SECTION: Discrete Tests
    2
    3 TEST CASE: munmap
    4
    5 TEST PURPOSE #2
    6 A successful call to int munmap(void *addr, size_t
    7 len) shall round len up to the next multiple of the
    8 page size returned by a call to sysconf(_SC_PAGESIZE).
    9 PREP: Obtain the system page size by call to
    10 sysconf(_SC_PAGESIZE)
    11 PREP: Open a file and initialize it
    12 PREP: Allocate memory for buffer
    13 PREP: Now set proper permissions and re-open file
    14 PREP: Map in the file
    15 TEST: mmunmap(addr, len) rounds up len to the next
    16 multiple of page size when len is less than a
    17 page size
    18 TEST: mmunmap(addr, len) rounds up len to the next
    19 multiple of page size when len is more than a
    20 page size
    21 ERROR: Call to munmap() did not return 0
    22 Expected: 0 Received: -1
    23 2 FAIL

    Review 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:

     

    Back   


Contact the Certification Authority