Fixes are available
November 2010 Update for XL C/C++ for Linux, V11.1
XL C/C++ for Linux Fix Pack 9 (August 2013 Update) for 11.1
April 2011 Update for XL C/C++ for Linux, V11.1
July 2011 Update for XL C/C++ for Linux, V11.1
October 2011 Update for XL C/C++ for Linux, V11.1
June 2012 Update for XL C/C++ for Linux, V11.1
October 2012 Update for XL C/C++ for Linux, V11.1
XL C/C++ for Linux Fix Pack 8 (June 2013 Update) for 11.1
APAR status
Closed as program error.
Error description
A program consists of 2 .c files and 2 .f90 files. When one of the C files is compiled with -O3 or above, the application segfaults at runtime in the C file: k = FTN2C(i,j,ni); --> local_min = foo[k]; A modification to the type of the macro FTN2C (from int to unsigned int) corrects the problem. Correct: #define FTN2C(i,j,ni) (int)((ni) * (j-1) + i-1) --- Fault: #define FTN2C(i,j,ni) (unsigned int)((ni) * (j-1) + i-1) Compiling with -O2 works fine. Compiling with -O3 -qnohot works fine too.
Local fix
Change macro return type from int to unsign int
Problem summary
PROBLEM DESCRIPTION: Incorrect transformation of addressing results in seg fault USERS AFFECTED: Users compiling at -O3 or above and in 64 bit mode
Problem conclusion
The problem is fixed. Apply recommended service.
Temporary fix
Comments
APAR Information
APAR number
LI75802
Reported component name
XL C/C++ FOR LI
Reported component ID
5724X1400
Reported release
B10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2010-11-24
Closed date
2010-11-24
Last modified date
2010-11-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/C++ FOR LI
Fixed component ID
5724X1400
Applicable component levels
RB10 PSN IZ76016
UP06/09/13
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXVZZ","label":"XL C\/C++ for Linux"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"B10","Line of Business":{"code":"LOB57","label":"Power"}}]
Document Information
Modified date:
15 October 2021