|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1373 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 1373.
Report 1373 Actions
Problem Report Number 1373 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0655 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1996-11-01 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 11 Problem Summary TSD4U.00162 This test may fail on implementations which have logical limits set higher than physical system limits. Problem Text
The method that this test uses to determine how much memory can be allocated
under the limit does not always results in finding the actual resource limit.
It finds the point at which the system resources are becoming exhausted.
This test finds this limit by iteratively calling sbrk() until it fails,
treating this at the upper limit of the resourses. On our implementation,
the resource limits are set too high for this to be a good approach. Because
this test does not distinguish between finding a resource limit and running
out of system resources, the test is fundamentally flawed.
If this test is modified to decrease the RLIMIT_DATA ceiling to a point
just beyond the end of the program's data area, then on the subsequent call
to sbrk(), the expected correct error would consistently result.Test Output
TEST CASE: setrlimit
TEST PURPOSE #11
If the implementation does not inhibit enforcement of
limits for the resource RLIMIT_DATA:
When the data segment size of the calling process
exceeds the limit set by a call to int setrlimit(int
resource, const struct rlimit *rlp) for resource
RLIMIT_DATA brk(), malloc(), and sbrk() shall fail and
set errno to ENOMEM.
PREP: Check if the limits are enforced
PREP: Obtain the system page size by call to
sysconf(_SC_PAGESIZE)
TEST: Set limits with setrlimit
INFO: Raise succeeded
TEST: When break value exceeds the limit sbrk()
fails and sets errno to ENOMEM
ERROR: Call to sbrk() did not set errno to ENOMEM
Expected: 12(ENOMEM) Received: 11(EAGAIN - No more processes)
11 FAILReview 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:
- View Report 1373
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority