IBM Support

LI77435: STACK DEALLOCATE AT -O3 CAUSES CORRUPT STACK

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Compiling at -O3 is causing a function's stack frame to be
    deallocated before the end of the function.  Local stack
    variables that are still live may be used invalidly, and writing
    to them might cause stack corruption.
    

Local fix

  • - Do not use optimization
    

Problem summary

  • PROBLEM DESCRIPTION:
    Arithmetic on address values leads to an optimization error.
    
    USERS AFFECTED:
    Users performing arithmetic on address values which otherwise
    do not appear to be stored.  This mainly affects buffers
    allocated as objects on the stack or statics with no linkage.
    

Problem conclusion

  • Code analysis was modified to consider operands of arithmetic
    operations.  The issue is now resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI77435

  • Reported component name

    XL C/C++ FOR LI

  • Reported component ID

    5724X1400

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2013-06-11

  • Closed date

    2013-06-11

  • Last modified date

    2013-06-11

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

    IV23847

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

Fix information

  • Fixed component name

    XL C/C++ FOR LI

  • Fixed component ID

    5724X1400

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXVZZ","label":"XL C\/C++ for Linux"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"B10","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
14 October 2021