IBM Support

IJ04420: XLC GENERATING WRONG CODE FOR C++ METHOD

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

APAR status

  • Closed as program error.

Error description

  • The xlC compiler generated incorrect code for a specific
    testcase causing the resulting binary to SIGSEGV at runtime.
    

Local fix

  • N/A
    

Problem summary

  • USERS AFFECTED:
    Users who have the cases with two 64bit numbers (long long,
    64bit address etc.)
    calculations and then convert it into int32 may encounter this
    issue.
    
    PROBLEM DESCRIPTION:
    Mixing 64 bit numbers with ints (32 bit numbers, sign extended)
    results in an
    invalid code transformation that can cause wrong results or seg
    fault.
    

Problem conclusion

  • The compiler transformation has been corrected
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ04420

  • Reported component name

    XL C FOR AIX

  • Reported component ID

    5725C7100

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-03-01

  • Closed date

    2018-03-01

  • Last modified date

    2018-03-01

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

    IV99157

  • 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



Document information

More support for: XL C for AIX
Compiler

Software version: 13.1

Reference #: IJ04420

Modified date: 01 March 2018