IBM Support

LI77140: 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

    LI77140

  • Reported component name

    XL C/C++ FOR LI

  • Reported component ID

    5725C7300

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-12-17

  • Closed date

    2012-12-17

  • Last modified date

    2012-12-17

  • 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

    5725C7300

Applicable component levels



Document information

More support for: XL C/C++ for Linux
Compiler

Software version: 12.1

Reference #: LI77140

Modified date: 17 December 2012