Fixes are available
December 2010 Update for XL Fortran Advanced Edition for Blue Gene/P, V11.1
April 2011 Update for XL Fortran Advanced Edition for Blue Gene/P, V11.1
August 2011 Update for XL Fortran Advanced Edition for Blue Gene/P, V11.1
December 2011 Update for XL Fortran Advanced Edition for Blue Gene/P, V11.1
April 2012 Update for XL Fortran Advanced Edition for Blue Gene/P, V11.1
XL Fortran Advanced Edition for Blue Gene/P Fix Pack 17 (October 2013 Update) for 11.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
LI75825
Reported component name
XL FORTRAN AE B
Reported component ID
5799HJF00
Reported release
B10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2010-12-02
Closed date
2010-12-02
Last modified date
2010-12-02
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 AE B
Fixed component ID
5799HJF00
Applicable component levels
RB10 PSY
UP
[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSJT9L","label":"XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"B.1","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]
Document Information
Modified date:
15 October 2021