Skip to main content

IV31756: APPLICATION SEGFAULT AT -O3


Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When compiling a large application with -O3, the resulting
    binary segfaults at runtime. The issue appears to be related to
    the -O3 optimization level; as when decresing the optimization
    to -O2 avoid the issue.
    

Local fix

  • Use -O2 instead of -O3 to avoid the issue.
    

Problem summary

  • USERS AFFECTED:
    Users who compile at PPC 64 bit and at -O3 can be affected by
    this issue.
    
    PROBLEM DESCRIPTION:
    The max and min builtin functions for unsigned 32 bit quantities
    fails for expressions that have non zero values in the upper
    bits.
    

Problem conclusion

  • The compiler has been fixed by cleaning the upper bits of the
    expression before generating the code sequence for unsigned 32
    bit min and max when -q64 is specified.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV31756

  • Reported component name

    XL C FOR AIX

  • Reported component ID

    5725C7100

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-11-09

  • Closed date

    2012-11-09

  • Last modified date

    2012-11-09

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

    LI77090

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

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5725C7100

Applicable component levels

  • RC10 PSN U856101

       UP06/09/13 C

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

XL C for AIX

Compiler


Software version:
12.1


Reference #:
IV31756


Modified date:
2012-11-09

Translate my page

Content navigation