IBM Support

LI76974: INFINITE LOOP WITH _PRAGMA OPERATOR

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When compiling source containing a _Pragma preprocessing
    operator, the compiler is entering an infinite loop.  No memory
    is used, so the compile process uses CPU time without ever
    ending, or hitting ulimits.
    
        ===== TEST CASE =====
    
    _Pragma("comment(user,xyz;)")
    

Local fix

  • - Comment out _Pragma statement
    - Remove ';' from _Pragma statment
    

Problem summary

  • PROBLEM DESCRIPTION:
    The xlcentry compiler component encounters an infinite loop if
    there is an unexpected semi-colon ';' in a _Pragma operator.
    
    USERS AFFECTED:
    Who use _Pragma incorrectly, or incorrectly split a string in
    the middle of a macro which expands to a _Pragma.
    

Problem conclusion

  • The infinite loop was corrected and a warning message is now
    output for incorrect _Pragma usage.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI76974

  • Reported component name

    XL C/C++ FOR LI

  • Reported component ID

    5725C7300

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-08-28

  • Closed date

    2012-08-28

  • Last modified date

    2012-08-28

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

    IV18657

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

Fix information

  • Fixed component name

    XL C/C++ FOR LI

  • Fixed component ID

    5725C7300

Applicable component levels



Document information

More support for: XL C/C++ for Linux
Compiler

Software version: 12.1

Reference #: LI76974

Modified date: 28 August 2012