IBM Support

IJ56768: JAVA JIT: A RARE FAILURE TO GENERATE A SIGN EXTEND ON Z

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: A SIGSEGV/OC4 is received when running JIT
    generated code
    .
    Stack Trace:
    {org/apache/.../BZip2CompressorInputStream.getAndMoveToFrontDeco
    de} JIT
    {org/apache/.../BZip2CompressorInputStream.initBlock} JIT
    ...
    The above stack trace is just an example as seen in the original
    report of the issue. The same issue could occur in the JIT
    compiled code for other methods.
    .
    The problem can happen on any 64bit J9 based JVM when running on
    IBM-Z hardware (zos or zLinux). The problem does not effect
    other platforms and it does not effect the 31bit Z J9 JVMs.
    

Local fix

  • The issue can be avoided by setting the following environment
    variable before running java:
    TR_NSIGNEXTGRA=1
    This will prevent the JIT from attempting to reduce redundant
    sign extend instructions and therefore will have a small effect
    on performance of JIT generated code, maybe 1% overall for a
    typical application.
    

Problem summary

  • In certain cases, the JIT compiler may generate an instruction
    to sign-extend a value into a register so that all subsequent
    uses of that value can skip additional sign-extension
    instructions. Once the value?s scope ends, the JIT may reuse the
    same register for a different value. In rare cases, the JIT
    incorrectly assumes the register is still sign-extended and
    fails to apply sign extension to the new value.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IJ56768

  • Reported component name

    JIT

  • Reported component ID

    620700124

  • Reported release

    130

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2025-11-14

  • Closed date

    2025-11-15

  • Last modified date

    2025-11-15

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

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

Fix information

  • Fixed component name

    JIT

  • Fixed component ID

    620700124

Applicable component levels

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"130","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
15 November 2025