|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0197 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 0197.
Report 0197 Actions
Problem Report Number 0197 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0197 Raised 1994-12-16 08:00 Updated 2003-03-13 08:00 Published 1994-12-30 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 XOPEN.os/genuts/tsearch 13 Problem Summary TSD4.197 A dependency on the ASCII character set is causing this testcase to fail. When debugging was enabled, we saw: tsearch.c: 01251: 0002: t13_action: trace: jump counter 18 tsearch.c: 01253: 0002: t13_act... Problem Text
A dependency on the ASCII character set is causing this testcase to
fail. When debugging was enabled, we saw:
tsearch.c: 01251: 0002: t13_action: trace: jump counter 18
tsearch.c: 01253: 0002: t13_action: t13_action: node->string :i: node->length :1:
tsearch.c: 01255: 0002: t13_action: t13_action: order :1: level :2:
tsearch.c: 01261: 0002: t13_action: t13_action: tnode :8: prev_order :0:
tsearch.c: 01263: 0002: t13_action: t13_action: (*node)->string :i: alphabet :i:
tsearch.c: 01265: 0002: t13_action: t13_action: pass[8] :1:
tsearch.c: 01266: 0002: t13_action: t13_action: table13[6].string :i:
tsearch.c: 01268: 0002: t13_action: t13_action: table13[6].length :1:
tsearch.c: 01270: 0002: t13_action: t13_action: order :1: level :2:
tsearch.c: 01276: 0002: t13_action: t13_action: t13_fail[8][1].failed :0:
tsearch.c: 01281: 0002: t13_action: t13_action: t13_fail[8][1].failed :0:
tsearch.c: 01286: 0002: t13_action: t13_action: t13_fail[8][1].failed :0:
tsearch.c: 01291: 0002: t13_action: t13_action: t13_fail[8][1].failed :0:
tsearch.c: 01251: 0002: t13_action: trace: jump counter 19
tsearch.c: 01253: 0002: t13_action: t13_action: node->string :j: node->length :1:
tsearch.c: 01255: 0002: t13_action: t13_action: order :3: level :3:
tsearch.c: 01261: 0002: t13_action: t13_action: tnode :16: prev_order :0:
tsearch.c: 01263: 0002: t13_action: t13_action: (*node)->string :j: alphabet ::
tsearch.c: 01265: 0002: t13_action: t13_action: pass[16] :0:
tsearch.c: 01266: 0002: t13_action: t13_action: table13[231].string :
The failure takes place as t13_action is processing the leaf node
whose string is "j". Note that the index into table13[] on line 1266
is 231. table13[] only has 10 elements so this access will be produce
unpredictable results, with SIGSEGV being a distinct possiblity. This
value being used as an index into table13[] is "ord[tnode]" and the
value of tnode is shown as 16 as the index to pass[] on line 1265.
tnode is arrived at with the following assignment on line 1257:
tnode = *(*node)->string - 'a';
In EBCDIC, 'j' is 0x91 and 'a' is 0x81 so their difference is 16, not
9 as expected when subtracting the ASCII equivalents of 'j' and 'a'.
t13_action() should not depend on the characters 'a' through 'j' being
contiguous.Test Output
/tset/XOPEN.os/genuts/tsearch/T.tsearch 13 Unresolved
Test Description:
twalk() passes :
a. the address of the node being visited as the first argument of the
function action;
b. the enumeration constant :
i. preorder as the second argument of the function action, when
the node is visited the first time;
ii. postorder as the second argument of the function action,
when the node is visited the second time;
iii. endorder as the second argument of the function action,
when the node is visited the third time;
iv. leaf as the second argument of the function action, when the
node is a leaf;
c. the level of the node being visited as the third argument of the
function action.
Test Information:
unexpected signal 11 (SIGSEGV) receivedReview 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 a test suite dependency on the ASCII character
set for this test. It is recommended that this request be granted as it
relates to 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 0197
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority