|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 2021 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 2021.
Report 2021 Actions
Problem Report Number 2021 Submitter's Classification Test Suite problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0594 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published null Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98) Certification Program The Open Brand certification program Test Suite VSTH version 5.1.2 Test Identification PTHR.os/all/readdir_5 5 Problem Summary PG5TH.00001 This test is testing for non-required XPG5 behavior: The XPG5 XSH states on page 694 states that this is a may fail. Page 138, closedir(), states the following: "Upon return, the value of dirp may no ... Problem Text
This test is testing for non-required XPG5 behavior:
The XPG5 XSH states on page 694 states that this is a may fail. Page 138,
closedir(), states the following:
"Upon return, the value of dirp may no longer point to an accessible object of
type DIR."
This means that the application needs to check the the dirp is valid before
calling readdir/readdir_r. It is not the responsibility of these system
calls to determine if dirp is valid. There needs to be a config variable
like for readdir in VSX4, actually you probably can use VSX_READDIR_EBADF
since it already in the tetexec.cfg file.
----TESE CODE with problem----
dirp = opendir( "." );
if ( dirp != NULL )
{
rval = closedir( dirp ); ===> dirp will be freed after
the call to closedir.
... ...
}
....
rval = readdir_r( dirp, pentry, &result );
^^^^^
A freed pointer cause readdir_r to core dump.Test Output
** TCM/API Message: system 0: Abandoning testset: caught unexpected signal 11 (S
IGSEGV) ***
************************************************************************
/tset/PTHR.os/all/readdir_r/T.readdir_r 5 UNREPORTED
Test Description:
If the feature test macro _POSIX_THREAD_SAFE_FUNCTIONS is defined:
when the implementation detects that the directory stream referenced by
dirp does not refer to an open directory stream,
then a call to readdir_r(dirp, entry, result) shall fail and return
EBADF.
Posix Ref: Component READDIR_R Assertion 9945-1:1996 5.1.2.3,
9945-1:1996 5.1.2.4-5(/r%^PError: format error in archive /tsuit
es/VSTH/vsth/MAN/tset/PTHR.os/all/readdir_r/L.readdir_r_t,
could not extract file
Test Information:
If the feature test macro _POSIX_THREAD_SAFE_FUNCTIONS is defined:
when the implementation detects that the directory stream referenced
by dirp does not refer to an open directory stream,
then a call to readdir_r(dirp, entry, result) shall fail and
return EBADF.
Posix Ref: Component READDIR_R
Assertion 9945-1:1996 5.1.2.3, 9945-1:1996 5.1.2.4-5(C)
************************************************************************Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
This test is already conditional on the configuration vari-
able VSTH_READDIR_R_EBADF and tests a type C assertion. We
recommend that this request be refused and the submitter set
the value of this config variable to 'n' or 'N' if the fea-
ture is not supported.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Rejected (REJ) Review Conclusion
This request is refused.
Problem Reporting System Options:
- View Report 2021
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority