|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1162 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 1162.
Report 1162 Actions
Problem Report Number 1162 Submitter's Classification Test Suite problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0364 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published null 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/fkillpg 5 Problem Summary PG4U.00104 This request claims that this test may fail because of an insuffient hardwired delay loop. Problem Text
This assertion is failing (very rarely) on our system when we have
a very heavy workload running, and the failure is timing related,
Increasing the value of VSU_MACHINE_PERFORMANCE does not resolve
the timing related failures. The problem lies is in the
way killpg5_exec.c is coded, where the duration of time that
the killpg5_exec code is being executed is determined by
a while loop which is executed for a hardcoded duration:
Here is a snippet of the offending code:
t = (time((time_t *)NULL) + 4*10);
while (time((time_t *)NULL) < t)
;
If the killpg5_exec code finishes execution before the killpg()
call is made, the killpg() call fails with errno ESRCHTest Output
TEST PURPOSE #5
EPERM in errno and return -1 on a call to int
killpg(pid_t pgrp, int sig) when the process does not
have permission to send sig to any receiving process.
PREP: Exec a setuid program which changes its
process group
PREP: Read value for VSU_NOT_INUSE_UID1 configuration
parameter
PREP: Read value for VSU_NOT_INUSE_GID1 configuration
parameter
TEST: killpg() returns -1 when the process does not
have permissions to send a signal to a
process group
TEST: killpg() sets errno to EPERM when the process
does not have permissions to send a signal to
a process group
ERROR: killpg failed, errno = 143(ESRCH - No such process)
5 FAILReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
We recommend this request be refused.
This test runs a first process that spwans a second process
then sleeps 5 seconds.
While the first process is sleeping the second process executes a
few function calls then enters a loop for 40 seconds.
During that 40 seconds the first process makes a few function calls
then calls killpg(). It is the error returned from the killlpg()
call that the test checks and fails on this implementation.
We believe that on any resonable system the first program should be
able to do its work in 2 or 3 seconds at most. It does this in less
than 1 second on the slowest test platform we have here. The 40
second hardwired delay here sems more than sufficient, even after
the 5 second sleep in the first program is taken into account.
We would also point out that the error is one that one might be
possible if the test were failing properly.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution No Resolution Given Review Conclusion
We agree this should be refused. If the test rails only rarely then it
is not procedurally correct to grant a Test Suite Deficiency which may
be referenced by default.
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 1162
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority