|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 2127 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 2127.
Report 2127 Actions
Problem Report Number 2127 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.1092 Raised 2001-08-13 08:00 Updated 2003-03-13 08:00 Published 1915-08-01 08:00 Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98) Certification Program The Open Brand certification program Test Suite VSTH version 5.2.3 Test Identification PTHR.os/thread/pthread_self 1 Problem Summary TSD5TH.00089 The code for the above looks like this pthread_t T1_tid; test1() { . . t1_f1( &errors, &fails ); . . } t1_f1( int *errors, int *fails ){ . . rval = vsth_pthread_create( &T1_tid, NULL, t1_t1, NULL ); .... Problem Text
The code for the above looks like this
pthread_t T1_tid;
test1() {
.
.
t1_f1( &errors, &fails );
.
.
}
t1_f1( int *errors, int *fails ){
.
.
rval = vsth_pthread_create( &T1_tid, NULL, t1_t1, NULL );
.
.
}
t1_t1( void *arg ){
.
.
if ( pthread_equal( T1_tid, pthread_self() ))
tval = NULL;
.
.
}
This failure occurs because it is possible for thread t1_t1 to begin and
end execution before the vsth_pthread_create() in t1_f1() returns. Thus
the global variable T1_tid isn't set until after pthread_equal() execution
in t1_t1. Adding a sleep to t1_t1 causes the test to always pass.Test Output
************************************************************************
/tset/PTHR.os/thread/pthread_self/T.pthread_self 1 Failed
Test Information:
A call to pthread_self() returns the thread identifier
of the calling thread
Posix Ref: Component PTHREAD_SELF
Assertion 9945-1:1996 16.2.6.2-1(A)
Thread ids differed
************************************************************************Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
A test suite deficiency is recommended
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 2127
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority