TRAP(ON | OFF) effects for enclaves created by system()

Table 1 describes the effects of TRAP(ON|OFF) for enclaves that are created by the system() function.

Table 1. Unhandled condition behavior in a system()-created child enclave
Condition Parent enclave TRAP(ON)

Child enclave TRAP(ON)

Parent enclave TRAP(ON)

Child enclave TRAP(OFF)

Parent enclave TRAP(OFF)

Child enclave TRAP(ON)

Parent enclave TRAP(OFF)

Child enclave TRAP(OFF)

Unhandled condition severity 0 or 1 Resume child enclave Resume child enclave Resume child enclave Resume child enclave
Unhandled condition severity 2 or above Resume parent enclave, and ignore condition Resume parent enclave, and ignore condition Resume parent enclave, and ignore condition Resume parent enclave, and ignore condition
Non-Language Environment abend Resume parent enclave, and ignore condition Process terminated with original abend code Resume parent enclave, and ignore condition Process terminated with original abend code
Program check Resume parent enclave, and ignore condition Process terminated with abend U4036, Reason Code=2 Resume parent enclave, and ignore condition Process terminated with abend S0Cx