|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0210 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 0210.
Report 0210 Actions
Problem Report Number 0210 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0210 Raised 1995-05-04 08:00 Updated 2003-03-13 08:00 Published 1995-05-10 08:00 Product Standard Internationalised System Calls and Libraries (XPG4) Certification Program The Open Brand certification program Test Suite VSX4 version 4.3.4 Test Identification ANSI.os/signal/signal_X 8 Problem Summary TSD4.210 There appears to be a timing problem in this test that can cause unpredictable results. For each signal tested, the child process is created. This child will set a handler for the signal being tested ... Problem Text
There appears to be a timing problem in this test that can cause
unpredictable results. For each signal tested, the child process is
created. This child will set a handler for the signal being tested
and enter a loop that it will leave only after the signal is
delivered. Meanwhile, the parent does a sleep() and then sends a
single signal. The problem with this scenario is that the parent only
sleeps for one second. This assumes that the signal is delivered to
the child after the handler is established but this which cannot be
guaranteed and should not be expected. When the test is run with VSX
debugging enabled, the test passes but this timing problem does not
make this a good general test.
The test should be modified to have the parent wait until the child is
in the loop. For example, before the fork(), a pipe could be created.
The parent will block on reading from the pipe until the child is
ready to enter its loop and writes a byte to the pipe. Once the
parent is un-blocked, it would be sensible to do a sleep() for a short
period of time. One second may be enough but it might be better to use
a variable (such as "WAITTIME") that can change depending on the
platform being used.Test Output
/tset/ANSI.os/signal/signal_X/T.signal_X 8 Unresolved
Test Description:
except SIGFPE
when the signal handling procedure func executes a return statement,
the program will resume execution at the point it was interrupted;
Test Information:
child process timed outReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
It is accepted that there is the possibility that the signal will be
delivered to the child process before the signal handler has been
established. Since this test executes correctly with VSX debugging set,
it is recommended that this failure be treated as a test suite deficiency.
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 0210
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority