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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1803 Actions


    Problem Report Number 1803
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0880
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1998-04-15 08:00
    Product Standard Window System Application Interface V2
    Certification Program The Open Brand certification program
    Test Suite VSW version 5.0.0
    Test Identification Xt4/XtCloseDisplay 1,2
    Problem Summary TSD4W.00146 These tests may fail due to using a display after it has been closed which causes Xt to SEGV on some platforms.
    Problem Text
    We believe this failure is due to a fault in the test suite, and request
    that a waiver be granted.

    Section "2.1" of the "X Toolkit Intrinsics - C Language Interface"
    states:

    "The XtCloseDisplay function calls XCloseDisplay with the specified
    display as soon as it is safe to do so..."

    Section "2.5" of the "Xlib - C Language X Interface" states:

    "The XCloseDisplay function closes the connection to the X server for
    the display specified in the Display structure and destroys all windows,
    resource IDs (Window,Font,Pixmap,Colormap,Cursor, and GContext), or
    other resources that the client has created on this display, unless the
    close-down mode of the resource has been changed (see XSetCloseDownMode).
    Therefore, these windows, resource IDs, and other resources should never
    be referenced again or an error will be generated..."

    According to the spec the test suite should not be referencing
    "topLevel" after it has done an XtCloseDisplay(display_good). Doing so
    causes a SIGSEGV when performing an XtDisplay(toplevel).

    The same argument applies to test purpose #2.

    static void t001(){
    .
    .
    .
    display_good = XtDisplay(topLevel);
    XtCloseDisplay(display_good);
    .
    .
    .
    if (XtDisplay(topLevel) != NULL ) {
    sprintf(ebuf, "ERROR: Expected invalid display
    pointer");
    tet_infoline(ebuf);
    tet_result(TET_FAIL);
    }
    .
    .
    .
    }
    Test Output
    520|1 1 6961 1 1|VSW5TESTSUITE PURPOSE 1
    520|1 1 6961 1 2|Assertion XtCloseDisplay-1.(A)
    520|1 1 6961 1 3|A call to void XtCloseDisplay(display) shall close the
    520|1 1 6961 1 4|display specified by the argument display and remove it from
    520|1 1 6961 1 5|the application context of the calling program.
    520|1 1 6959 1 1|PREP: Initialize toolkit, Open display and Create topLevel
    root widget
    520|1 1 6959 1 2|PREP: Create label widget `Hello' in boxw1 widget
    520|1 1 6959 1 3|PREP: Create windows for widgets and map them
    520|1 1 6959 1 4|PREP: Register timeout
    520|1 1 6959 1 5|PREP: Close the display
    520|1 1 6960 2 1|TEST: Display is no longer valid
    520|1 1 6960 2 2|unexpected signal 11 (SIGSEGV) received
    220|1 1 2 10:11:49|UNRESOLVED
    410|1 1 1 10:11:49|IC End
    400|1 2 1 10:11:49|IC Start
    200|1 2 10:11:49|TP Start
    520|1 2 6961 1 1|VSW5TESTSUITE PURPOSE 2
    520|1 2 6961 1 2|Assertion XtCloseDisplay-2.(A)
    520|1 2 6961 1 3|void XtCloseDisplay(display) when called from within an
    520|1 2 6961 1 4|event dispatch shall not close the display until the
    520|1 2 6961 1 5|dispatch is complete.
    520|1 2 6964 1 1|PREP: Initialize toolkit, Open display and Create topLevel
    root widget
    520|1 2 6964 1 2|PREP: Create labelw_msg widget in boxw1 widget
    520|1 2 6964 1 3|PREP: Register procedure to handle ButtonPress events
    520|1 2 6964 1 4|PREP: Create windows for widgets and map them
    520|1 2 6964 1 5|PREP: Send ButtonPress over wire to labelw_msg widget
    520|1 2 6964 1 6|PREP: Close the display during a dispatch
    520|1 2 6964 1 7|TEST: Display is still good inside handler
    520|1 2 6963 2 1|TEST: Display is no longer valid after dispatch
    520|1 2 6963 2 2|unexpected signal 11 (SIGSEGV) received
    220|1 2 2 10:11:49|UNRESOLVED
    410|1 2 1 10:11:49|IC End
    80|1 0 10:11:50|TC 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 listed.

    N.B. This deficiency has been corrected in VSW5.0.1.

    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