HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 1270 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 1270.


Report 1270 Actions


    Problem Report Number 1270
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0552
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1999-02-09 08:00
    Product Standard Internationalised Terminal Interfaces
    Certification Program The Open Brand certification program
    Test Suite VSU version 5.0.3
    Test Identification xcurses/tparm 1
    Problem Summary TSD4U.00266 This test may fail on 64-bit implementations.
    Problem Text

    An incorrect data type specification may cause a core dump on
    implementations where the sizes of "int" and "long" are different.

    In the test suite we have:

    static void test1A(void)
    {
    .....
    tet_infoline("TEST: Pass %s parameter");
    Test("%p1%s", (int)"Hello", 0, 0, 0, 0, "Hello");
    .....
    }

    The function called is:
    static void
    Test(char *param_string, long p1, long p2, long p3, long p4, long p5,
    char *expected)
    {
    .....
    actual = (char *)tparm(param_string, p1, p2, p3, p4, p5, 0, 0, 0,
    0);
    .....
    }

    The function is expecting a stack of longs and getting a stack of ints.
    In our implementation ints are 32 bits and longs 64, so trouble is sure
    to ensue.

    This matter was addressed by the fix to TSD4U.00247, but the fix is not
    complete.

    Test Output
    10|1354 /tset/CAPIxcurses/ftparm/ftparm1 21:43:45|Build Start, scenario
    ref 191
    -624
    130|1354 0 21:43:47|Build End
    10|1355 /tset/CAPIxcurses/ftparm/ftparm1 21:43:47|TC Start, scenario ref
    191-624
    15|1355 1.10 2|TCM Start
    400|1355 1 1 21:43:47|IC Start
    200|1355 1 21:43:47|TP Start
    520|1355 1 3888 1 1|SPEC1170TESTSUITE CASE 1
    520|1355 1 3888 1 2|A successful call to char *tparm(char *str, long int
    520|1355 1 3888 1 3|long int p1, long int p2, long int p3, long int p4,
    520|1355 1 3888 1 4|long int p5, long int p6, long int p7, long int p8,
    520|1355 1 3888 1 5|long int p9) shall retrieve the capability associated
    520|1355 1 3888 1 6|with the string pointed to by str, replace variables
    520|1355 1 3888 1 7|in the capability with the specified parameters, and
    520|1355 1 3888 1 8|return a pointer to the string with the parameters
    520|1355 1 3888 1 9|applied.
    520|1355 1 3889 1 1|PREP: Set test locale: xcurses
    520|1355 1 3889 1 2|PREP: Set environment variables and open terminal
    connection
    520|1355 1 3889 2 1|PREP: Call newterm
    520|1355 1 3889 2 2|PREP: Initialize color pairs
    520|1355 1 3889 2 3|TEST: Pass %% parameter
    520|1355 1 3889 2 4|TEST: Pass %c parameter
    520|1355 1 3889 2 5|TEST: Pass %s parameter
    520|1355 1 3888 2 1|ERROR: TEST TERMINATED DUE TO SIGSEGV SIGNAL (11)
    220|1355 1 1 21:43:47|FAIL
    410|1355 1 1 21:43:47|IC End

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We agree this is a test suite deficiency in the test suite version(s) listed.

    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:

     

    Back   


Contact the Certification Authority