Fixes are available
July 2009 PTF for XL C Enterprise Edition for AIX, V9.0
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
November 2010 PTF for XL C Enterprise Edition for AIX, V9.0
March 2011 PTF for XL C/C++ Enterprise Edition for AIX, V9.0
March 2011 PTF for XL 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 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 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
May 2010 PTF for XL C Enterprise Edition for AIX, V9.0
August 2010 PTF for XL C/C++ Enterprise Edition for AIX, V9.0
August 2010 PTF for XL C Enterprise Edition for AIX, V9.0
July 2011 PTF for XL C Enterprise Edition for AIX, V9.0
December 2011 PTF for XL C Enterprise Edition for AIX, V9.0
APAR status
Closed as program error.
Error description
The following test case abends at runtime when compiled with the following options: /* compile with xlc -q64 -O */ int index[10]; int n = 10; int forward=0; main () { int i, start, end, step; if (forward) { start=0; end=10; step=1; } else { start=n-1; end=-1; step=-1; } for (i=start; i != end; i+=step) index[(unsigned int) i] = i; }
Local fix
Using the type 'long' instead of 'int' for the variables in 64 bit will help work around this issue.
Problem summary
Users using -q64 and -O2 and higher with certain loops with 'int' loop indicies and runtime computed bounds (not contants) maybe affected by this issue. The compiler generates incorrect code that will often lead to a SEGV. The problem is in the 'Reassociation' optimization when zero extension is being done.
Problem conclusion
Fixed reassociation to be smarter when zero extension is being done.
Temporary fix
Comments
APAR Information
APAR number
IZ45789
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-03-12
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
XL C AIX
Fixed component ID
5724S7000
Applicable component levels
Document Information
Modified date:
03 October 2021