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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1574 Actions


    Problem Report Number 1574
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0856
    Raised 2002-11-11 08:00
    Updated 2003-03-13 08:00
    Published 2002-11-15 08:00
    Product Standard Sockets V2 (UNIX 98)
    Certification Program The Open Brand certification program
    Test Suite VSU version 5.1.2
    Test Identification CAPI.os/socket/recvmsg 39
    Linked Problem Reports TSD4U.00210, (in, old, system)
    Problem Summary TSD4U.00317 The test may fail on systems with a large IOV_MAX.
    Problem Text
    Thereis a bug in test39 from XOPEN. The sysconf(_SC_IOV_MAX) are used
    in many readv, writev, recvmsg and sendmsg tests. (Acually sensmsg
    test12 is a corresponding test of recvmsg test39.) All these tests
    contain such lines after getting return value of iovnum = sysconf(_SC_IOV_MAX)
    if(iovnum > IOVNUM)
    iovnum = IOVNUM;
    where
    #define IOVNUM 16
    is defined in each test source codes.

    Only recvmsg test39 did not do that. It must be a mistake in the test
    code.

    The tests that do a sysconf(_SC_IOV_MAX) and forcefully bring down the
    iovnum to 16 are:
    ioprim/readv:
    1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22,
    23, 48, 49, 51, 52, 53, 54, & 57.
    iopriv/writev:
    1, 2, 4, 5, 6, 8, 9, 10, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
    25, 26, 27, 28, 29, 30, 31, 32, 50, 51, 52, 53, 54, 55, 56, 58, 61, 67,
    68, 70, 71, 72
    sockets/recvmsg:
    39 (should do the same!)
    sockets/sendmsg:
    12

    This seems to be the same as TSD4U.00210, granted for VSU5 5.0.2.
    We are therefore requesting that either that TSD be extended to
    cover the current case, or that a new TSD be granted for this case.
    Test Output
    VSU test case CAPI.os/sockets/recvmsg/T.recvmsg failed with the
    following message:
    /tset/CAPI.os/sockets/recvmsg/T.recvmsg 39 Failed

    Test Description:
    Base Conditional Deviance
    If the implementation supports a communications domain and a socket
    type:
    EINVAL in errno and return -1 on a call to ssize_t recvmsg(int socket,
    struct msghdr *message, int flags) when the sum of the iov_len values
    overflows an ssize_t.

    Test Information:

    PREP: Determine if the function sbrk() is supported
    INFO: The implementation supports the Legacy Feature Group
    PREP: Read IOV_MAX system configuration
    PREP: Test whether condition can be generated
    PREP: Set up invalid iovec
    TEST: AF_INET SOCK_STREAM
    PREP: Create test sockaddr_in: address = 130.62.32.200, port = 3029
    PREP: Server: create socket
    PREP: Server: bind address 130.62.32.200, port 3029 to socket
    PREP: Server: listen on socket
    PREP: Server: notify client server is ready
    PREP: Server: accept connection
    INFO: Server: accepted connection from address 130.62.32.200, port 8524
    PREP: echo_server: read and echo data
    INFO: echo_server: echoed 25 bytes of data (ABCDEFGHIJKLMNOPQ123TEST!)
    INFO: Server received signal 15
    INFO: Server terminated
    PREP: Wait for server to be ready
    PREP: Create a socket
    PREP: Connect socket to address 130.62.32.200, port 3029
    PREP: Send test data
    TEST: Return -1 when iov_len values overflows an ssize_t
    TEST: EINVAL in errno when iov_len values overflows an ssize_t
    ERROR: recvmsg failed unexpectedly expected errno = EINVAL, errno = 97(EMSGSIZE -
    Message too large)
    CLEANUP: Send SIGTERM to server

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    This is accepted as a fault in the test suite.
    (It is not the same fault as in TSD4U.00210.)

    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