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

The Open Brand -- Problem Reporting and Interpretations System


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


Report 0103 Actions


    Problem Report Number 0103
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0103
    Raised 1993-10-22 08:00
    Updated 2003-03-13 08:00
    Published 1993-11-05 08:00
    Product Standard Internationalised System Calls and Libraries (XPG4)
    Certification Program The Open Brand certification program
    Test Suite VSX4 version 4.2.4
    Test Identification POSIX.hdr/misc/signal,wait signal 39, signal_X, wait 10
    Linked Problem Reports PG3.607, (in, old, system)
    Problem Summary TSD4.103 Runaway process in command "hdrdefs" when it traverses the header file signal.h and sys/wait.h trees. For example, a portion of signal.h file looks like: >> #if (__STDC__ == 0 || defined(_ABCD_ANSI_EX...
    Problem Text

    Runaway process in command "hdrdefs" when it traverses the header
    file signal.h and sys/wait.h trees.

    For example, a portion of signal.h file looks like:

    >> #if (__STDC__ == 0 || defined(_ABCD_ANSI_EXT)) && !defined(_POSIX_SOURCE)
    >> #if _ABCD
    >> #include <sys/types.h>
    >> #endif
    >> #include <sys/procset.h>
    >> extern int gsignal(int);
    >> extern void (*sigset(int, void (*)(int)))(int);
    >> ...
    >> ...
    >> #endif

    In the normal situation, if _POSIX_SOURCE is defined, then any of the
    above definitions will not be included at compile time. When "hdrdefs"
    traverses the include file tree, it goes into the outer #if finds
    "#include <sys/procset.h>" then trying to go through more include files. Since
    there are lots of files under /usr/include, signal.h.C and signal.h.D files
    grow bigger and bigger until a write error occurred (filesystem full).

    The same thing happens in sys/wait.h at:

    >> #ifdef _KERNEL
    >> ...
    >> ...
    >> ...
    >>
    >> #if !defined(_POSIX_SOURCE) && !defined(_PROC_PROCSET_H)
    >> #include <proc/procset.h> /* COMPATIBILITY */
    >> #endif /* !defined(_POSIX_SOURCE) && !defined(_PROC_PROCSET_H) */
    >>
    >> #else
    >>
    >> #include <sys/types.h> /* COMPATIBILITY */
    >> #include <sys/siginfo.h> /* COMPATIBILITY */
    >>
    >> #if !defined(_POSIX_SOURCE)
    >> #include <sys/procset.h> /* COMPATIBILITY */
    >> #endif /* !defined(_POSIX_SOURCE) */
    >>
    >> #endif /* _KERNEL */
    >>

    The make file had to be altered in POSIX.hdr/misc/signal,
    POSIX.hdr/misc/signal_X, and POSIX.hdr/misc/wait so that the other portions
    of the test could be built to completion. Otherwise, the build aborts at
    the "hdrdefs" command. So the ".C" and the ".D" are not created nor moved
    over to TESTROOT with "chmog".

    Even though not all the files are built in POSIX.hdr/misc/signal_X,
    it still passes the execution phase because none of the tests use signal.h.C
    or signal.h.D.

    Similar problems were encountered for which a waiver was granted.
    See Waiver PG3.607.

    Test Output
    **************************************************************************
    ************************************************************************
    /tset/POSIX.hdr/misc/signal/T.signal 39 Failed

    Test Description:
    If _POSIX_SOURCE is defined and no other feature test macros are
    defined, no other symbols than those defined or reserved by POSIX.1
    are made visible; otherwise, if _XOPEN_SOURCE is defined and no other
    feature test macros except _POSIX_SOURCE, _POSIX_C_SOURCE=1 or
    _POSIX_C_SOURCE=2 are defined, no other symbols than those defined or
    reserved by the XPG are made visible.
    This test is not executed in XPG3 mode.
    Posix Ref: Component C Language Definitions Assertion 2.7.2-05(B)

    Test Strategy:
    FOR each unreserved struct/union member made visible by the header
    DEFINE a macro which will cause an error if not protected from
    expansion
    UNDEFINE those macros which correspond to allowed member names
    INCLUDE a copy of the header file modified to identify #defines
    FOR each unreserved symbol made visible by the header
    VERIFY that the symbol name is in a list of allowed names

    Test Information:
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE
    Compiler or run-time messages or results:
    "cc39es.c", line 9: Include file cannot be accessed: ./signal.h.D
    9 #include "./signal.h.D"
    _________________^
    "cc39es.c", line 53: Include file cannot be accessed: ./signal.h.C
    53 #include "./signal.h.C"
    _________________^
    cc39es.c ... 2 Errors.
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_SOURCE
    Compiler or run-time messages or results:
    "cc39es.c", line 9: Include file cannot be accessed: ./signal.h.D
    9 #include "./signal.h.D"
    _________________^
    "cc39es.c", line 53: Include file cannot be accessed: ./signal.h.C
    53 #include "./signal.h.C"
    _________________^
    cc39es.c ... 2 Errors.
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_C_SOURCE=1
    Compiler or run-time messages or results:
    "cc39es.c", line 9: Include file cannot be accessed: ./signal.h.D
    9 #include "./signal.h.D"
    _________________^
    "cc39es.c", line 53: Include file cannot be accessed: ./signal.h.C
    53 #include "./signal.h.C"
    _________________^
    cc39es.c ... 2 Errors.
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_C_SOURCE=2
    Compiler or run-time messages or results:
    "cc39es.c", line 9: Include file cannot be accessed: ./signal.h.D
    9 #include "./signal.h.D"
    _________________^
    "cc39es.c", line 53: Include file cannot be accessed: ./signal.h.C
    53 #include "./signal.h.C"
    _________________^
    cc39es.c ... 2 Errors.
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=1
    Compiler or run-time messages or results:
    "cc39es.c", line 9: Include file cannot be accessed: ./signal.h.D
    9 #include "./signal.h.D"
    _________________^
    "cc39es.c", line 53: Include file cannot be accessed: ./signal.h.C
    53 #include "./signal.h.C"
    _________________^
    cc39es.c ... 2 Errors.
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=2
    Compiler or run-time messages or results:
    "cc39es.c", line 9: Include file cannot be accessed: ./signal.h.D
    9 #include "./signal.h.D"
    _________________^
    "cc39es.c", line 53: Include file cannot be accessed: ./signal.h.C
    53 #include "./signal.h.C"
    _________________^
    cc39es.c ... 2 Errors.

    ************************************************************************

    ************************************************************************
    /tset/POSIX.hdr/misc/wait/T.wait 10 Failed

    Test Description:
    If _POSIX_SOURCE is defined and no other feature test macros are
    defined, no other symbols than those defined or reserved by POSIX.1
    are made visible; otherwise, if _XOPEN_SOURCE is defined and no other
    feature test macros except _POSIX_SOURCE, _POSIX_C_SOURCE=1 or
    _POSIX_C_SOURCE=2 are defined, no other symbols than those defined or
    reserved by the XPG are made visible.
    This test is not executed in XPG3 mode.
    Posix Ref: Component C Language Definitions Assertion 2.7.2-05(B)

    Test Strategy:
    FOR each unreserved struct/union member made visible by the header
    DEFINE a macro which will cause an error if not protected from
    expansion
    UNDEFINE those macros which correspond to allowed member names
    INCLUDE a copy of the header file modified to identify #defines
    FOR each unreserved symbol made visible by the header
    VERIFY that the symbol name is in a list of allowed names

    Test Information:
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE
    Compiler or run-time messages or results:
    "cc10es.c", line 10: Include file cannot be accessed: ./sys/wait.h.D
    10 #include "./sys/wait.h.D"
    _________________^
    "cc10es.c", line 46: Include file cannot be accessed: ./sys/wait.h.C
    46 #include "./sys/wait.h.C"
    _________________^
    cc10es.c ... 2 Errors.
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_SOURCE
    Compiler or run-time messages or results:
    "cc10es.c", line 10: Include file cannot be accessed: ./sys/wait.h.D
    10 #include "./sys/wait.h.D"
    _________________^
    "cc10es.c", line 46: Include file cannot be accessed: ./sys/wait.h.C
    46 #include "./sys/wait.h.C"
    _________________^
    cc10es.c ... 2 Errors.
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_C_SOURCE=1
    Compiler or run-time messages or results:
    "cc10es.c", line 10: Include file cannot be accessed: ./sys/wait.h.D
    10 #include "./sys/wait.h.D"
    _________________^
    "cc10es.c", line 46: Include file cannot be accessed: ./sys/wait.h.C
    46 #include "./sys/wait.h.C"
    _________________^
    cc10es.c ... 2 Errors.
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_C_SOURCE=2
    Compiler or run-time messages or results:
    "cc10es.c", line 10: Include file cannot be accessed: ./sys/wait.h.D
    10 #include "./sys/wait.h.D"
    _________________^
    "cc10es.c", line 46: Include file cannot be accessed: ./sys/wait.h.C
    46 #include "./sys/wait.h.C"
    _________________^
    cc10es.c ... 2 Errors.
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=1
    Compiler or run-time messages or results:
    "cc10es.c", line 10: Include file cannot be accessed: ./sys/wait.h.D
    10 #include "./sys/wait.h.D"
    _________________^
    "cc10es.c", line 46: Include file cannot be accessed: ./sys/wait.h.C
    46 #include "./sys/wait.h.C"
    _________________^
    cc10es.c ... 2 Errors.
    Compilation exited with non-zero value when expected to succeed
    Feature test macros: -D_XOPEN_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=2
    Compiler or run-time messages or results:
    "cc10es.c", line 10: Include file cannot be accessed: ./sys/wait.h.D
    10 #include "./sys/wait.h.D"
    _________________^
    "cc10es.c", line 46: Include file cannot be accessed: ./sys/wait.h.C
    46 #include "./sys/wait.h.C"
    _________________^
    cc10es.c ... 2 Errors.
    ************************************************************************
    **************************************************************************

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    This is recognised as 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