IBM Support

PH45307: NESTED ENCLAVE RESTRICTION WHEN RUNNING C/C++ IN A MULTITHREADED ENVIRONMENT.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as documentation error.

Error description

  • An abends0c4 is happening in Language Environment module
    CEEPMDEL when using pthreads in a multithreaded environment.
    
    ANALYSIS:
    The abend is happening because the customer is running C/C++ in
    a multithreaded environment and creating a nested enclave.
    Doing so can cause unpredictable results and is not supported.
    
    KNOWN IMPACT:
    The application will fail.
    
    VERIFICATION STEPS:
    The customer must be running C/C++ in a multithreaded
    environment and must be creating a nested enclave.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of z/OS XL C/C++ who create a nested enclave.          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * When C/C++ application is trying to create a nested enclave  *
    * in a multithread environment, the application may encounter  *
    * an ABEND S0C4.                                               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • z/OS Language Environment Programming Guide
    -> Chapter - Using nested enclaves
    -> Other nested enclave considerations
    Add the following paragraph after 'COBOL multithreading
    considerations':
    
    C/C++ multithreading considerations
    When C/C++ is running in a multithread environment, creating
    nested enclaves is not supported. Violation of this rule is
    likely to cause unpredictable results.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH45307

  • Reported component name

    LE BASE FOR Z/O

  • Reported component ID

    568819801

  • Reported release

    7C0

  • Status

    CLOSED DOC

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-03-30

  • Closed date

    2022-04-15

  • Last modified date

    2022-05-03

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Publications Referenced
SA380682xx    

Fix information

Applicable component levels

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M"},"Platform":[{"code":"PF054","label":"z\/OS"}],"Version":"7C0"}]

Document Information

Modified date:
04 May 2022