IBM Support

IV73799: CRASH IN BASIC_STRING AFTER EXCEPTION HANDLING

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • After a complex IF statement, a thrown exception causes the
    program to crash after the exception handling __DoThrowV6()
    call. The stacktrace points to a basic_string destructor:
    
    
       === STACK TRACE ===
    
    statics.std::_UseFacet<std::num_put<wchar_t,std::ostreambuf_iter
    ator<wchar_t,std::char_traits<wchar_t> > >,1>::_Use(const
    
    std::locale&,const std::locale::facet*&,const
    
    std::locale::facet*).std::basic_string<char,std::char_traits<cha
    r>,std::allocator<char> >::_Tidy(bool)(??, ??) at 0xd3ec93a8
    
    std::basic_string<char,std::char_traits<char>,std::allocator<cha
    r> >::?basic_string()(??, ??) at 0xd3ec91a0
    
    test.std::basic_string<char,std::char_traits<char>,std::allocato
    r<char> >::__dftdt()(0x2ff21590) at 0x10001058
    
    invokedtr.__Invoke__Destructor() at 0xd14d4be4
    
    __DoThrowV6() at 0xd14d6b78
    
    test(Nry&)(0x2ff21690) at 0x10000d30
    
    main(0x1, 0x2ff21730) at 0x10000e08
    

Local fix

  • None.  Occurance of the issue is sensitive to minor code logic
    changes.
    

Problem summary

  • PROBLEM DESCRIPTION:
    The compiler is removing certain temporary values that have
    exception entries in them, causing incorrect behaviour.
    
    USERS AFFECTED:
    Users with compound conditional statements with copy
    constructors in them.
    

Problem conclusion

  • The compiler now prevents the exception entries from being
    removed by preventing variable replacement during temporary
    elimination.  The fix has been implemented.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV73799

  • Reported component name

    XL C/C++ FOR AI

  • Reported component ID

    5725C7200

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-06-03

  • Closed date

    2015-07-28

  • Last modified date

    2015-07-28

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

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

    IV74822

Fix information

  • Fixed component name

    XL C/C++ FOR AI

  • Fixed component ID

    5725C7200

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSGH3R","label":"XL C\/C++ for AIX"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"13.1","Edition":"","Line of Business":{"code":"LOB73","label":"Power TPS"}}]

Document Information

Modified date:
19 August 2024