Fixes are available
October 2010 PTF for XL C/C++ for AIX, V10.1
May 2012 PTF for XL C/C++ for AIX, V10.1
January 2013 PTF for XL C/C++ for AIX, V10.1
XL C/C++ for AIX Fix Pack 18 (July 2013 PTF) for 10.1
XL C/C++ for AIX Fix Pack 19 (October 2013 PTF) for 10.1
XL C/C++ for AIX Fix Pack 21 (October 2015 PTF) for 10.1
March 2010 PTF for XL C/C++ for AIX, V10.1
April 2010 PTF for XL C/C++ for AIX, V10.1
June 2010 PTF for XL C/C++ for AIX, V10.1
May 2011 PTF for XL C/C++ for AIX, V10.1
October 2011 PTF for XL C/C++ for AIX, V10.1
February 2012 PTF for XL C/C++ for AIX, V10.1
September 2012 PTF for XL C/C++ for AIX, V10.1
XL C/C++ for AIX Fix Pack 20 (October 2014 PTF) for 10.1
APAR status
Closed as program error.
Error description
The following runtime problem occurs with the C++ compiler during exception handling in the class containing std list: -----------------Testcase--------------------------------- using namespace std; #include <list> #include <iostream> class myex { private: std::list<int> l; public: myex() { } }; int main() { try { cout<<"Runnig with catch"; throw myex(); } catch(myex &e) { cout<<"Received exception"; } return 0; } -----------------------------------------------------
Local fix
In declaration of try block change from: try { cout<<"Runnig with catch"; throw myex(); } to: try { cout<<"Runnig with catch"; myex a = myex(); throw a; }
Problem summary
Runtime seg fault while trying to destroy the std list. Incorrect dtor address for the std list was passed to the runtime after the FE optimizer elminated the temporaries, and the FE transformer did not perform the corresponding temporaries replacement.
Problem conclusion
FE optimizer needs to conserve the _constructionOfThrowTemporary flag during temporaries elmination. FE transformer will perform the necessary temporaries replacement if the flag is set
Temporary fix
Comments
APAR Information
APAR number
IZ70917
Reported component name
XL C++ AIX
Reported component ID
5724U8100
Reported release
A10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2010-02-24
Closed date
2010-02-24
Last modified date
2010-02-24
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
XL C++ AIX
Fixed component ID
5724U8100
Applicable component levels
Document Information
Modified date:
16 October 2021