PL/I · Message ID

CEE3702S: Program Terminating Due to Heap Damage

What does CEE3702S: Program Terminating Due to Heap Damage mean in PL/I?

The HEAPCHK run-time option detected that heap control information was overwritten — almost always caused by a PL/I program writing past the end of a BASED or CONTROLLED allocation, or freeing the same storage twice.

CEE3702S: Program Terminating Due to Heap DamageIBM Enterprise PL/I for z/OS · z/OS Language Environment

Condition

The HEAPCHK run-time option detected that heap control information was overwritten — almost always caused by a PL/I program writing past the end of a BASED or CONTROLLED allocation, or freeing the same storage twice.

Fix

Run with HEAPCHK(ON,n) to localize which ALLOCATE the overlay follows, review pointer arithmetic and BASED variable definitions for any that could write beyond their allocated length, and check for duplicate FREEs of the same storage.

Related message id