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

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 2079 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 2079.


Report 2079 Actions


    Problem Report Number 2079
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.1050
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1998-04-08 08:00
    Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98)
    Certification Program The Open Brand certification program
    Test Suite VSTH version 5.1.2
    Test Identification PTHR.os/all/pthread_cancel 9
    Problem Summary TSD5TH.00047 The first argument to the VSTH library call getsubopt() is being called with an extra level of indirection and causing a core dump. The following patched code works correctly: *** SRC/common/vsthlib/v...
    Problem Text

    The first argument to the VSTH library call getsubopt() is being
    called with an extra level of indirection and causing a core dump.
    The following patched code works correctly:




    *** SRC/common/vsthlib/vsth_cpg.c Tue Mar 31 11:19:40 1998
    --- /tmp/vsth_cpg.c.new Fri Apr 3 10:50:08 1998
    ***************
    *** 2097,2103 ****
    int rval;
    int errs;

    int fails;
    ! char opts[4];
    char **p;
    char *toks[2];
    char *vp;
    --- 2097,2103 ----
    int rval;
    int errs;
    int fails;
    ! char opts = "a=b";
    char **p;
    char *toks[2];
    char *vp;
    ***************
    *** 2107,2115 ****

    toks[0] = "x";
    toks[1] = NULL;
    ! p = opts;

    - strcpy(&opts[0], "a=b");
    (void) getsubopt(p, &toks[0], &vp);

    rval = 1;
    --- 2107,2114 ----

    toks[0] = "x";
    toks[1] = NULL;
    ! p = &opts;

    (void) getsubopt(p, &toks[0], &vp);

    rval = 1;

    Test Output

    0|3.1-lite 20:35:58 19980402|User: vsx0 (19997) TCC Start, Command line: /test/T
    ET/VSXgen1.1/../bin/tcc -e -l /tset/PTHR.os/all/pthread_cancel/T{9}
    20|/test/TET/VSXgen1.1/TESTROOT/tetexec.cfg 1|Config Start
    15|0 3.1-lite 1|TCM Start
    400|0 9 1 20:36:04|IC Start
    200|0 9 20:36:04|TP Start
    520|0 9 00018205 1 1|A cancellation point shall not occur in the
    520|0 9 00018205 1 2|following XSH5 functions
    20|0 9 00018205 96 1|getpgid() passed
    520|0 9 00018205 96 2|Testing getpriority()
    520|0 9 00018205 98 1|getpriority() passed
    520|0 9 00018205 98 2|Testing getrlimit()
    520|0 9 00018205 100 1|getrlimit() passed
    520|0 9 00018205 100 2|Testing getrusage()
    520|0 9 00018205 102 1|getrusage() passed
    520|0 9 00018205 102 2|Testing getsid()
    520|0 9 00018205 104 1|getsid() passed
    520|0 9 00018205 104 2|Testing getsubopt()
    220|0 9 7 21:46:06|NORESULT (auto-generated by TCC)

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    We agree with the applicant and recommend that a TSD be granted on the basis of 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:

     

    Back   


Contact the Certification Authority