IBM Support

LI75929: APPLICATION SEGFAULT WITH XLF

Subscribe

You can track all active APARs for this component.

 

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

    LI75929

  • Reported component name

    XL FORTRAN RHEL

  • Reported component ID

    5724U8410

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-01-27

  • Closed date

    2011-01-27

  • Last modified date

    2011-01-27

  • APAR is sysrouted FROM one or more of the following:

    LI75629

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    XL FORTRAN RHEL

  • Fixed component ID

    5724U8410

Applicable component levels

  • RC10 PSY

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSB259","label":"XL Fortran Advanced Edition for Linux"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"C.1","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
24 February 2022