IBM Support

IZ76016: 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

    IZ76016

  • Reported component name

    XL C AIX

  • Reported component ID

    5724S7000

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-05-13

  • Closed date

    2010-07-30

  • Last modified date

    2010-10-19

Fix information

  • Fixed component name

    XL C AIX

  • Fixed component ID

    5724S7000

Applicable component levels

[{"Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSJT9L","label":"XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0"}]

Document Information

Modified date:
06 October 2021