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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1426 Actions


    Problem Report Number 1426
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0708
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1996-02-21 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 CAPIbase/valloc 4
    Problem Summary TSD4U.00107 This test may fail on implementations where RLIMIT_DATA is not enforced.
    Problem Text
    This test may fail on implementations where RLIMIT_DATA is not
    enforced.

    The assertion first tries to lower the heap size by

    1. querying the current limits for RLIMIT_DATA:
    (** Our implementation returns RLIM_INFINITY for this resource.)

    getrlimit(RLIMIT_DATA, &save)


    2. Setting the current limit to the lower of the previous max
    and 4MB:

    heapsize.rlim_cur = save.rlim_max or 4MB (whichever is less)
    heapsize.rlim_max = save.rlim_max
    setrlimit(RLIMIT_DATA, &heapsize)
    (**this call to setrlimit() fails with EINVAL on our implementation.)


    The X/Open XPG4.2 standard for get/setrlimit says (3rd paragraph)
    "...If a call to getrlimit() returns RLIM_INFINITY for a resource,
    it means the implementation does not enforce limits on that
    resource. Specifying RLIM_INFINITY as any resource limit value
    on a successful call to setrlimit() inhibits enforcement of
    that resource limit."

    The standard does not detail what must happen if RLIM_INFINITY was
    specified as the resource limit and then setrlimit() attempts to
    alter the current or maximum limits. If only details what happens
    if the current and maximum limits are valid limits (i.e., not
    RLIM_INFINITY)
    Test Output
    10|3 /tset/CAPIbase/fvalloc/fvalloc4 10:35:51|TC Start, scenario ref 385
    15|3 1.10 1|TCM Start
    400|3 4 1 10:35:52|IC Start
    200|3 1 10:35:52|TP Start
    520|3 1 2424835 1 1|SPEC1170TESTSUITE CASE 4
    520|3 1 2424835 1 2|ENOMEM in errno and return a null pointer on a call
    520|3 1 2424835 1 3|void *valloc(size_t size) when storage space availab
    520|3 1 2424835 1 4|is insufficient.
    520|3 1 8192007 1 1|PREP: Lower the heap size
    520|3 1 8192007 1 2|ERROR: setrlimit failed, errno = 121(EINVAL - Invali
    220|3 1 2 10:35:52|UNRESOLVED
    410|3 4 1 10:35:52|IC End
    80|3 0 10:35:52|TC End

    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