Fixes are available
July 2009 PTF for XL C/C++ Enterprise Edition for AIX, V9.0
November 2010 PTF for XL C/C++ Enterprise Edition for AIX, V9.0
March 2011 PTF for XL C/C++ Enterprise Edition for AIX, V9.0
July 2011 PTF for XL C/C++ Enterprise Edition for AIX, V9.0
December 2011 PTF for XL C/C++ Enterprise Edition for AIX, V9.0
March 2012 PTF for XL C/C++ Enterprise Edition for AIX, V9.0
January 2010 PTF for XL C/C++ Enterprise Edition for AIX, V9.0
May 2010 PTF for XL C/C++ Enterprise Edition for AIX, V9.0
August 2010 PTF for XL C/C++ Enterprise Edition for AIX, V9.0
APAR status
Closed as program error.
Error description
During the testing of an application, an exception occurs within a function that is called from within a constructor body in a complex constructor, which also involves template code.
Local fix
n/a
Problem summary
Program with the following classes: 1. Class A has class B as its member 2. Class B has class C as its member 3. The dtor of class C has code that accesses its members 4. Class B throws an exception (requires cleaning up the C object) When class B throws an exception, it invokes an Invoke_Destructor call in the RTE, passing in the object pointer of class C (object to be destroyed). The object pointer consists of 2 parts, the "this" pointer (from the object that invokes the call) + offset (ex. distance of object C from object B). Without inlining, the object pointer will be "address of B" + "distance of C from B", yielding the correct address to the C object. With FE inlining On, and class B is inlined into class A, the object pointer will be "address of A" + "distance of C from B", yielding an incorrect address. A seg fault may occur when dtor of C tries to access its members (since the object pointer to C is invalid.
Problem conclusion
The offset needs to be updated when class B is inlined into class A.
Temporary fix
Comments
APAR Information
APAR number
IZ54022
Reported component name
XLC C++ AIX
Reported component ID
5724S7100
Reported release
900
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-06-25
Closed date
2009-06-25
Last modified date
2009-07-21
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
XLC C++ AIX
Fixed component ID
5724S7100
Applicable component levels
Document Information
Modified date:
21 July 2009