|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1564 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 1564.
Report 1564 Actions
Problem Report Number 1564 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0846 Raised 2001-10-30 08:00 Updated 2003-03-13 08:00 Published 2001-11-08 08:00 Product Standard Internationalised System Calls and Libraries Extended (UNIX 95) Certification Program The Open Brand certification program Test Suite VSU version 5.1.2 Test Identification CAPI.os/jump/makeconte 1 Problem Summary TSD4U.00307 The test may fail on systems where the amount of stack space it allocates is insufficient. Problem Text
The SIGKILL signal is sent at this point in the test because the stack is full.
The problem is that the stack used in the context modified by the
makecontext() call is too small on this release of our product.
The stack size is set by the following line of code in the testcase:
ucp.uc_stack.ss_size = MINSIGSTKSZ;
On page 554, The 'System Interfaces and Headers' Specification defines
SIGSTKSZ and MINSIGSTKSZ as:
"The value SIGSTKSZ is a system default specifying the number of bytes
that would be used to cover the usual case when manually allocating an
alternate stack area"
"The value MINSIGSTKSZ is defined to be the minimum stack size for a
signal handler. In computing an alternate signal stack size, a
program should add that amount to its stack requirements to allow for
the system implementation overhead."
In our release 10 implementation, system overhead has increased and
MINSIGSTKSZ is not big enough.
The constant SIGSTKSZ is a better choice for the size of this stack
and is in keeping with the definitions from the spec.
Making that change in the testcase:
ucp.uc_stack.ss_size = SIGSTKSZ;
causes it to PASS on our R10 implementation as demonstrated in the
following journal:
1:13:22|IC Start
13:22|TP Start
33620136 1 1|TEST: makecontext() modifies context specified by ucp
33620136 1 2|PREP: Generate a new context
33620136 1 3|PREP: Allocate stack space
33620136 1 4|TEST: Call makecontext
33620136 1 5|TEST: Execution continues with func after setcontext()
33620136 1 6|TEST: Parameters passed correctly after setcontext
33620136 1 7|PREP: Generate another new context
33620136 1 8|PREP: Allocate stack space
33620136 1 9|TEST: Call makecontext
33620136 1 10|TEST: Execution continues with func after swapcontext()
33620136 1 11|TEST: Parameters passed correctly after swapcontext
33620136 1 12|CLEANUP: Set original context
1:13:22|PASS
1:13:22|IC EndTest Output
IC Start
TP Start
3 1 1|TEST: makecontext() modifies context specified by ucp
3 1 2|PREP: Generate a new context
3 1 3|PREP: Allocate stack space
3 1 4|TEST: Call makecontext
3 1 5|TEST: Execution continues with func after setcontext()
3 1 6|TEST: Parameters passed correctly after setcontext
3 1 7|PREP: Generate another new context
3 1 8|PREP: Allocate stack space
3 1 9|TEST: Call makecontext
3 1 10|TEST: Execution continues with func after swapcontext()
3 1 11|TEST: Parameters passed correctly after swapcontext
3 1 12|CLEANUP: Set original context
4 2 1|ERROR: TEST TERMINATED DUE TO SIGKILL SIGNAL (9)
FAILReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
This is accepted as a fault in the test suite.
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 1564
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority