Problem Report 0068 Details

Help Show help | Quick Search | Click here to view your privileges

This page provides all information on Problem Report 0068.


Report 0068 Actions


    Problem Report Number 0068
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.PX.0035
    Raised 2019-09-28 09:56
    Updated 2019-10-07 10:05
    Published 2019-10-07 10:05
    Product Standard PSE52 Realtime Controller 1003.1-2003 System
    Certification Program POSIX Certified by IEEE and The Open Group
    Test Suite VSRT-PSE version 5.4.17
    Test Identification /tset/rt.os/mfiles/mmap_P/T.mmap_P 13

    /tset/rt.os/mfiles/mmap_P/T.mmap_P 23
    Specification IEEE Std 1003.13-2003
    Linked Problem Reports 0071
    Problem Summary prototype of tb_mmap() not defined as fully qualified in
    vsx0/tset/rt.os/mfiles/mmap_P/mmap_P.c causes test failure
    Problem Text In vsx0/tset/rt.os/mfiles/mmap_P/mmap_P.c

    The declaration of tb_mmap:

    private int *tb_mmap();

    The implementation:

    private void * tb_mmap(addr, len, prot, flags, fildes, off)
    void *addr;
    size_t len;
    int prot;
    int flags;
    int fildes;
    off_t off;

    { ... }


    This cause the following cases failed;

    /tset/rt.os/mfiles/mmap_P/T.mmap_P 13 Failed

    /tset/rt.os/mfiles/mmap_P/T.mmap_P 23 Failed



    When the tb_mmap called in the /tset/rt.os/mfiles/mmap_P/T.mmap_P
    13:

    /Map in a whole page/
    if ((addr = (int
    *)tb_mmap(0,vsrt_pgsz,PROT_READ|PROT_WRITE,MAP_SHARED,fd1,0)) ==
    (int *)MAP_FAILED) {

    err = errno;
    xx_rpt(FAILURE);
    in_rpt("mmap failed, errno = %d (%s)", err, errname(err));
    (void)close(fd1);
    (void)unlink(test_file);
    DBUG_VOID_RETURN
    } else
    PATH_TRACE;

    The value of the last parameter off is 0. But when it pass into the
    tb_mmap , it changes to be anothre vaule. This change cause the
    error returned form mmap, error code is errno = 22 (EINVAL)
    Test Output /tset/rt.os/mfiles/mmap_P/T.mmap_P 13 Failed

    Test Description:

    If _POSIX_MAPPED_FILES is defined or the implementation supports the
    mmap() function:

    The system shall not write out modified portions of the last page of a
    file mapped by a call to mmap() which are beyond the end of the file.

    Test Information:

    mmap failed, errno = 22 (EINVAL)

    /tset/rt.os/mfiles/mmap_P/T.mmap_P 23 Failed

    Test Description:

    If _POSIX_MAPPED_FILES is defined or the implementation supports the
    mmap() function:
    The mapping established by a call to mmap() shall replace any
    previous mappings for those whole pages containing any part of the
    address space of the process starting at pa and continuing for len
    bytes.

    Test Information:

    mmap failed, errno = 22 (EINVAL)

    Review Information

    Review Type TSMA Review
    Start Date 2019-09-28 09:56
    Last Updated 2019-10-07 09:45
    Completed 2019-10-07 09:45
    Status Complete
    Review Recommendation Test Suite Deficiency (TSD)
    Review Response This is accepted as a fault in the test suite.

    Review Type SA Review
    Start Date 2019-10-07 17:45
    Last Updated 2019-10-07 10:05
    Completed 2019-10-07 10:05
    Status Complete
    Review Resolution Test Suite Deficiency (TSD)
    Review Conclusion A test suite deficiency is granted.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority