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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 1084 Actions


    Problem Report Number 1084
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0540
    Raised 1999-09-22 08:00
    Updated 2003-03-13 08:00
    Published 1999-09-28 08:00
    Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98)
    Certification Program The Open Brand certification program
    Test Suite VSRT version 5.0.3
    Test Identification rt.os/mqueue/mq_send 5
    Problem Summary TSD4R.00012 This test leaks memory descriptors.
    Problem Text

    This request addresses the following two cases:

    /tset/rt.os/mqueue/mq_send/T.mq_send 5
    /tset/rt.os/mqueue/mq_receive/T.mq_receive 4

    Both these tests leak message queue descriptors. In our implementation, a
    process may have no more than 32 open memory queue descriptors.

    The failure with errno set to EMFILE is correct according to XSH5, p. 538.

    The fix is to close the descriptors at the appropriate places:

    tset/rt.os/mqueue/mq_send/mq_send5.c
    576a577
    > mq_close(mqd1);
    586a588
    > mq_close(mqd1);
    593a596
    > mq_close(mqd1);
    601a605
    > mq_close(mqd1);
    607a612
    > mq_close(mqd1);
    621a627
    > mq_close(mqd1);
    628a635
    > mq_close(mqd1);
    634a642
    > mq_close(mqd1);
    638a647
    > mq_close(mqd1);
    640a650
    > mq_close(mqd1);



    tset/rt.os/mqueue/mq_receive/mq_receive4.c
    551a552
    > mq_close(mqd1);
    559a561
    > mq_close(mqd1);
    565a568
    > mq_close(mqd1);
    578a582
    > mq_close(mqd1);
    585a590
    > mq_close(mqd1);
    591a597
    > mq_close(mqd1);
    595a602
    > mq_close(mqd1);
    597a605
    > mq_close(mqd1);

    Test Output


    /tset/rt.os/mqueue/mq_send/T.mq_send 5

    200|0 5 18:45:58|TP Start
    520|0 5 00002658 2 3|mq_open() failed for "/vsrt_mqueue", errno = 24
    (EMFILE)
    520|0 5 00002645 2 1|child process timed out
    220|0 5 1 18:46:38|FAIL
    410|0 5 1 18:46:38|IC End


    /tset/rt.os/mqueue/mq_receive/T.mq_receive 4

    400|0 4 1 18:52:06|IC Start
    200|0 4 18:52:06|TP Start
    520|0 4 00002714 2 3|mq_open() failed for "/vsrt_mqueue", errno = 24
    (EMFILE)
    520|0 4 00002709 2 1|child process timed out
    220|0 4 1 18:52:47|FAIL
    410|0 4 1 18:52:47|IC End

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    It is accepted that this is a fault in the test suite and it is recommended
    that a waiver is granted on the grounds 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