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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1407 Actions


    Problem Report Number 1407
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0689
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1996-04-23 08:00
    Product Standard Internationalised System Calls and Libraries Extended (UNIX 95)
    Certification Program The Open Brand certification program
    Test Suite VSU version 4.1.0
    Test Identification base/setrlimit 7
    Problem Summary TSD4U.00126 This IR claims that the data returned by readdir() may be invalidated by a subsequent call to closedir.
    Problem Text
    This IR claims that the data returned by readdir() may
    be invalidated by a subsequent call to closedir.

    This test is failing on our implementation because it fails to allocate
    storage for the dent structure used in route get_core_filename(). The
    test assumes storage allocated by readdir(dirp) will be useable after a
    closedir(dirp) call. This is not the case on our system, closedir(dirp)
    frees the dirent structure for dirp. The spec is silent on the longevity
    of the dirent structure pointed to by the return value of readdir(),so we
    believe that the testcase is assuming non-XPG4 behavior.

    On page 463 of the XPG4 V2 XSH, the following statement is made:

    "The pointer returned by readdir() points to data which may be
    overwritten by another readdir() on the same directory stream. ..."

    We consider this to be a warning to developers that a copy of the
    the structure should be made if extended use is required.

    Test Output
    TEST CASE: setrlimit

    TEST PURPOSE #7
    If the implementation does not inhibit enforcement of
    limits for the resource RLIMIT_CORE:
    When the writing of a core file for the calling
    process exceeds the limit set by a call to int
    setrlimit(int resource, const struct rlimit *rlp) for
    resource RLIMIT_CORE the writing of the core file
    shall terminate at the limit.
    PREP: Obtain the current soft and hard limits for
    RLIMIT_CORE
    PREP: Obtain the configuration parameter
    VSU_SIGNAL_GENERATING_CORE
    PREP: Child: Set the new limits for the process
    TEST: The core file generated is limited by the limits
    set for RLIMIT_CORE
    ERROR: Core file was not generated
    7 FAIL

    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.

    We believe the test is correct.

    We take the wording cited by the submitter to mean that the data
    associated with the pointer returned by readdir must remain valid
    until a subsequent readdir call. No other function may invalidate
    the data.

    This is consistent with existing practice. The readdir()
    function is usually defined to return a pointer to static storage
    which is overwritten on a subsequent calls to readdir().

    Review Type SA Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution No Resolution Given
    Review Conclusion
    We believe this request may have merit but there is some ambiguity and we
    would like the opinion of the Base WG.

    Review Type Expert Group Review
    Start Date null
    Completed null
    Status Complete
    Review Resolution No Resolution Given
    Review Conclusion
    The Base Working Group indicates that the requestor is correct and
    a Test Suite Deficiency should be granted.

    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