IBM Support

IZ88773: :? leads to segfault in exception handling

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A large application segfaults in __ReThrowV6 if rethrowing a
    current exception (throw;) in one test case calling the main
    program. The other is segfaulting in __DoThrowV6 if throwing an
    exception
    (using throw(*this);) in another test case calling the same main
    program.
    

Local fix

  • avoid temp variables to change : ? constructs to if then else
    statements.
    

Problem summary

  • PROBLEM DESCRIPTION: A compiler temporary generated for a
    conditional expression using ? : operators is not initialized
    properly (missing constructor).  As a result, when the
    temporary is destructed during excpetion handling, user defined
    destructor checks for proper initialization and aborts.
    
    USERS AFFECTED: Program with condition expression that involves
    nested function call expressions returning object with user
    defined copy constructor
    

Problem conclusion

  • The problem is fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ88773

  • Reported component name

    XL C/C++ AIX

  • Reported component ID

    5724X1300

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-11-10

  • Closed date

    2011-01-03

  • Last modified date

    2011-02-25

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

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

    LI76100

Fix information

  • Fixed component name

    XL C/C++ AIX

  • Fixed component ID

    5724X1300

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGH3R","label":"XL C\/C++ for AIX"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
25 February 2011