|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1423 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 1423.
Report 1423 Actions
Problem Report Number 1423 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0705 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1996-03-04 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/strdup 2 Problem Summary TSD4U.00110 The test may fail on implementations where RLIMIT_DATA is not limited. Problem Text
The test may fail on implementations where RLIMIT_DATA is
not limited.
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|0 /tset/CAPIbase/fstrdup/fstrdup2 10:46:28|TC Start, scenario ref 0-1
15|0 1.10 1|TCM Start
400|0 2 1 10:46:29|IC Start
200|0 1 10:46:29|TP Start
520|0 1 5373962 1 1|SPEC1170TESTSUITE CASE 2
520|0 1 5373962 1 2|The pointer returned by a call to char *strdup(const
520|0 1 5373962 1 3|char *s1) shall be accepted by free().
520|0 1 5046294 1 1|PREP: Set heap size
520|0 1 5046294 1 2|ERROR: setrlimit failed, errno = 121(EINVAL - Invalid argument)
220|0 1 2 10:46:29|UNRESOLVED
410|0 2 1 10:46:29|IC End
80|0 0 10:46:29|TC End
900|10:46:29|TCC EndReview 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 1423
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority