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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1578 Actions


    Problem Report Number 1578
    Submitter's Classification Specification problem
    State Resolved
    Resolution Permanent Interpretation (PIN)
    Problem Resolution ID PIN.X.0135
    Raised 1995-05-18 08:00
    Updated 2003-03-13 08:00
    Published 1995-05-24 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 CAPI.os/ioprim/write 26, 27
    Specification System Interfaces and Libraries Issue 4 Version 2
    Location in Spec See Problem Text
    Problem Summary PIN4U.00001 Peer is shut down for reading condition should not be tested.
    Problem Text
    The original spec indicates that an EPIPE error should be
    returned when a socket is shutdown for writing, or when it is
    connection-oriented and the peer is closed or shut down for
    reading. In existing practice some implementations do not raise
    this error when the peer is shut down for reading, but do when it
    is closed.

    A resolution resolved this as an error and stated the text for
    all send*() interfaces should be changed to read

    "...or the socket is connection-oriented and is no longer connected."

    The test should be changed to reflect this resolution.
    Test Output
    write 26

    520|1 1 13630 1 3|If the implementation supports a communications domain
    520|1 1 13630 1 4|and a connection-oriented socket type:
    520|1 1 13630 1 5|EPIPE in errno and return -1 on a call to ssize_t
    520|1 1 13630 1 6|write(int fildes, const void *buf, size_t nbyte) when
    520|1 1 13630 1 7|fildes refers to a socket that is connection-oriented
    520|1 1 13630 1 8|and the peer is closed or shutdown for reading.
    520|1 1 13613 3 1|PREP: Wait for server to be ready
    520|1 1 13613 3 2|PREP: Create a socket
    520|1 1 13613 3 3|PREP: Connect socket to address 192.187.150.12, port 1482
    520|1 1 13613 3 4|PREP: Tell server to shutdown connection for read
    520|1 1 13613 3 5|PREP: Wait for connection to shutdown
    520|1 1 13613 3 6|TEST: Write data on shutdown-for-read connection
    520|1 1 13613 3 7|TEST: Return value
    520|1 1 13613 3 8|ERROR: write call succeeded unexpectedly, returned 5
    520|1 1 13613 3 9|CLEANUP: Send SIGTERM to server
    220|1 1 1 11:50:35|FAIL



    write 27

    520|4 1 13821 1 3|If the implementation supports a communications domain
    520|4 1 13821 1 4|and a stream-based socket type:
    520|4 1 13821 1 5|EPIPE in errno, return -1, and a SIGPIPE signal is
    520|4 1 13821 1 6|generated for the calling process on a call to ssize_t
    520|4 1 13821 1 7|write(int fildes, const void *buf, size_t nbyte) when
    520|4 1 13821 1 8|fildes refers to a socket of type SOCK_STREAM and the
    520|4 1 13821 1 9|peer is closed or shutdown for reading.
    520|4 1 13479 1 2|TEST: AF_INET SOCK_STREAM
    520|4 1 13479 3 4|PREP: Tell server to shutdown connection for read
    520|4 1 13479 3 5|PREP: Wait for connection to shutdown
    520|4 1 13479 3 6|TEST: Send on shutdown-for-read connection
    520|4 1 13479 3 7|TEST: SIGPIPE received
    520|4 1 13479 3 8|ERROR: Expected SIGPIPE signal, count of SIGPIPE signals = 0
    520|4 1 13479 3 9|CLEANUP: Send SIGTERM to server
    220|4 1 1 11:50:45|FAIL



    writev 71

    520|1 1 13518 1 3|If the implementation supports a communications domain
    520|1 1 13518 1 4|and a connection-oriented socket type:
    520|1 1 13518 1 5|EPIPE in errno and return -1 on a call to ssize_t
    520|1 1 13518 1 6|writev(int fildes, const struct iovec *iov, int iovcnt) when
    520|1 1 13518 1 7|fildes refers to a socket that is connection-oriented
    520|1 1 13518 1 8|and the peer is closed or shutdown for reading.
    520|1 1 11206 3 2|PREP: Create a socket
    520|1 1 11206 3 3|PREP: Connect socket to address 16.69.224.161, port 2098
    520|1 1 11206 3 4|PREP: Tell server to shutdown connection for read
    520|1 1 11206 3 5|PREP: Wait for connection to shutdown
    520|1 1 11206 3 6|TEST: Write data on shutdown-for-read connection
    520|1 1 11206 3 7|TEST: Return value
    520|1 1 11206 3 8|ERROR: writev call succeeded unexpectedly, returned 64
    520|1 1 11206 3 9|CLEANUP: Send SIGTERM to server
    220|1 1 1 15:21:29|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 deficiency in the test suite version(s) listed above.


    TEXT HERE NEEDS CHANGING

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution Permanent Interpretation (PIN)
    Review Conclusion
    A Permanent Interpretation is granted.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority