IBM Support

LI75802: APPLICATION SEGFAULT WITH -O3 -Q64

Subscribe

You can track all active APARs for this component.

 

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:

    IZ76016

  • 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

[{"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