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
|