IBM Support

LI77701: ENABLE -QNOSAVE AS THE DEFAULT FOR _R INVOCATION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Currently, "All compiler command invocations except f77,
    fort77, xlf, xlf_r and xlf_r7 use -qnosave by default."
    
    With -qsmp=omp or the _r invocation, -qnosave is required. If a
    user forgot to specify -qnosave with -qsmp=omp or _r invocation
    compilations, the multithreaded program might malfunction at
    runtime. It's not obvious to debug such failures.
    

Local fix

  • Specify -qnosave as required.
    

Problem summary

  • PROBLEM DESCRIPTION: XL Fortran enables the -qsave and
    -qxlf77=persistent options by default in the xlf_r invocation.
    These
    options store some entities in static storage, which is not
    thread-safe.  The compiler reference
    recommends against using this invocation for threaded programs
    without explicitly specifying
    -qnosave / -qxlf77=nopersistent.  The compiler does not warn
    the user directly, however.
    USERS AFFECTED: Users of the xlf_r and related invocations
    

Problem conclusion

  • XL Fortran xlf_r and bgxlf_r invocations have been changed to
    enable -qnosave or -qxlf77=nopersistent by default. The change
    ensures thread safety for these commands.  If your threaded
    program requires -qsave or -qxlf77=persistent, specify these
    options explicitly.
    Refer to this Technote for more information on the change and
    possible side effect:
    http://www-01.ibm.com/support/docview.wss?uid=swg21656184
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI77701

  • Reported component name

    XL FORTRAN LINU

  • Reported component ID

    5725C7500

  • Reported release

    E10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-11-22

  • Closed date

    2014-02-26

  • Last modified date

    2014-02-26

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

    LI77527

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

Fix information

  • Fixed component name

    XL FORTRAN LINU

  • Fixed component ID

    5725C7500

Applicable component levels

  • RE10 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":"14.1","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
14 October 2021