Fixes are available
November 2010 Update for XL Fortran for Linux, V13.1
April 2011 Update for XL Fortran for Linux, V13.1
July 2011 Update for XL Fortran for Linux, V13.1
October 2011 Update for XL Fortran for Linux, V13.1
June 2012 Update for XL Fortran for Linux, V13.1
October 2012 Update for XL Fortran for Linux, V13.1
XL Fortran for Linux Fix Pack 8 (June 2013 Update) for 13.1
APAR status
Closed as program error.
Error description
When compiling the test case with xlf, xlf90 etc, the executable segfaults at runtime. ===== COMPILE COMMAND: xlf -g xlfbug.f90 ===== TESTCASE: $cat xlfbug.f90 module sub public :: xlfbug contains subroutine xlfbug(my_optarg) implicit none integer, optional, intent(in) :: my_optarg call xlfbug2(my_optarg) contains subroutine xlfbug2(my_optarg) implicit none integer, optional, intent(in) :: my_optarg write(*,*) "Hello World" end subroutine xlfbug2 end subroutine xlfbug end module sub program xlf_optarg use sub call xlfbug end program xlf_optarg $ ===== ACTUAL OUTPUT: $./a.out Memory fault(coredump) $ ===== EXPECTED OUTPUT: $ ./a.out Hello World $
Local fix
Temporary workaround: remove intent(in)
Problem summary
USERS AFFECTED: Users of XL Fortran on Linux may be affected by this issue. PROBLEM DESCRIPTION: Procedures passing a non-present optional argument to an internal procedure expecting an intent(in) optional dummy argument will fail with a segmentation fault on Linux.
Problem conclusion
The compiler has been fixed to address the above case.
Temporary fix
Comments
APAR Information
APAR number
LI75789
Reported component name
XL FORTRAN LINU
Reported component ID
5724X1600
Reported release
D10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2010-11-23
Closed date
2010-11-23
Last modified date
2010-11-23
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 FORTRAN LINU
Fixed component ID
5724X1600
Applicable component levels
RD10 PSY
UP
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSAT4T","label":"XL Fortran for Linux"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"D10","Line of Business":{"code":"LOB57","label":"Power"}}]
Document Information
Modified date:
15 October 2021