|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1705 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 1705.
Report 1705 Actions
Problem Report Number 1705 Submitter's Classification Test Suite problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0488 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published null Product Standard Window System Application Interface V2 Certification Program The Open Brand certification program Test Suite VSW version 5.0.2 Test Identification Xt11/taprelcre 2 Problem Summary PG4W.00096 This submitter claims the test may fail because of errant XtFree() calls. Problem Text
Test calls XtAppReleaseCacheRefs passing a pointer to memory on
the stack. This memory is XtFree'ed and the test crashes on the
next (or future) malloc.Test Output
TEST CASE: XtAppReleaseCacheRefs
TEST PURPOSE #2
Assertion XtAppReleaseCacheRefs-2.(A)
A successful call to void
XtAppReleaseCacheRefs(app_context, refs) shall call the
destructor procedure and remove the resource from the
conversion cache for any conversion entry in refs that
reaches a conversion count of zero.
PREP: Initialize toolkit, Open display and Create topLevel root widget
PREP: Create windows for widgets and map them
TEST: Register resource converter and destructor
TEST: Invoke resource converter twice
TEST: Resource converter was invoked
TEST: Release the cached resource value
TEST: Release the cached resource value again
unexpected signal 11 (SIGSEGV) received
2 UNRESOLVEDReview 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.
Our opinion differs. We believe the test is correct.
We do not believe that this test has the same issue as TIN4W.00008.
The test code does not make any calls to XtFree(). In addition, the
reference X code below
---------------------------------------------------------------------------
void XtAppReleaseCacheRefs(app, refs)
XtAppContext app;
XtCacheRef *refs;
{
register CachePtr *r;
register CachePtr p;
LOCK_APP(app);
LOCK_PROCESS;
for (r = (CachePtr*)refs; p = *r; r++) {
if (p->is_refcounted && --(CEXT(p)->ref_count) == 0) {
FreeCacheRec(app, p, NULL);
}
}
UNLOCK_PROCESS;
UNLOCK_APP(app);
}
---------------------------------------------------------------------------
does not make any direct calls to XtFree(). The FreeCacheRec() code
does call XtFree(), but it is freeing items in the XtCacheRef refs
linked list, not the refs pointer itself.
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 1705
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority