IBM Support

PI65370: MEMORY OVERLAY WHEN LOADING AND STORING BIT FIELD

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Loading and storing values from a bit field struct is causing a
    memory write overlay on memory past the end of the bit field.
    The issue occurs when loading and storing 4 bytes when only 3
    bytes should be updated.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: USERS THAT HAVE A BIT FIELD OF THREE BYTES   *
    *                 OCCUPYING THE LAST THREE BYTES OF A BIT      *
    *                 FIELD CONTAINER. FOR EXAMPLE:TYPEDEF STRUCT  *
    *                 {  UNSIGNED   BF1:6;  UNSIGNED   BF2:2;      *
    *                 UNSIGNED   BF3:24;} A;                       *
    ****************************************************************
    * PROBLEM DESCRIPTION: THE COMPILER IS EMITTING A LOAD/STRORE  *
    *                      INSTRUCTION STARTING AT OFFSET 1 THUS   *
    *                      ACCESSING THE BYTE FOLLOWING THE BIT    *
    *                      FIELD. IN MOST CASES THIS DOES NOT      *
    *                      CAUSE A PROBLEM SINCE THE BYTE          *
    *                      FOLLOWING THE BIT FIELD IS UPDATED      *
    *                      WITH THE SAME CONTENT IT ALREADY HAS,   *
    *                      BUT WHEN THE BIT FIELD IS AT THE END    *
    *                      OF THE ADDRESS SPACE OR AT THE END OF   *
    *                      THE PAGE THIS PRODUCES AN 0C4 ABEND.    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    THE COMPILER IS PRODUCING BAD CODE FOR SOURCES WITH BIT FIELDS.
    

Problem conclusion

  • APPLY PROVIDED FIX.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI65370

  • Reported component name

    C/C++ FOR MVS

  • Reported component ID

    56551210A

  • Reported release

    790

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-07-05

  • Closed date

    2016-07-06

  • Last modified date

    2016-10-03

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

    PI64727

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

Modules/Macros

  •    CCNEP
    

Fix information

  • Fixed component name

    C/C++ FOR MVS

  • Fixed component ID

    56551210A

Applicable component levels

  • R790 PSY UI39212

       UP16/09/02 P F609

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"790","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSQKCWV","label":"IBM C\/C++ for MVS\/ESA"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"790","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
22 August 2024