IBM Support

IV73867: SEGMENTATION FAULT IN THE JVM WHEN INVOKING A JNI METHOD IN A JI T COMPILED BODY

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 segmentation fault is caught in the J9VM module
    when a JIT compiled method calls a native Java method using JNI.
    .
    Stack Trace: N/A
    .
    The issue only occurs on a 64-bit JVM under the
    -Xnocompressedrefs option. In the register dump generated in
    stderr one or more registers will have 0xFFFF in the most
    significant half-word.
    

Local fix

  • The issue can be worked around by excluding the compilation of
    the method that invokes the problematic JNI call with the
    following JVM option:
    -Xjit:exclude={full_method_signature},dontInline={full_method_si
    gnature}
    Where full_method_signature is the method signature including
    the class path, method name, parameters, and return value.
    

Problem summary

  • The problem is caused when the JIT compiler fails to generate an
    instruction which zeroes out the top half-word of a register
    containing a class pointer.
    

Problem conclusion

  • The JIT compiler has been updated to properly zero out the top
    half-word of the register containing the class pointer for a JNI
    call.
    .
    This APAR will be fixed in the following Java Releases:
       8    SR1 FP10  (8.0.1.10)
       7    SR9 FP 10 (7.0.9.10)
       5.0  SR16 FP13 (5.0.16.13)
       6 R1 SR8 FP7   (6.1.8.7)
       6    SR16 FP7  (6.0.16.7)
       7 R1 SR3 FP10  (7.1.3.10)
    .
    Contact your IBM Product's Service Team for these Service
    Refreshes and Fix Packs.
    For those running stand-alone, information about the available
    Service Refreshes and Fix Packs can be found at:
               https://www.ibm.com/developerworks/java/jdk/
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV73867

  • Reported component name

    JAVA 5 JIT

  • Reported component ID

    620500124

  • Reported release

    500

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-06-03

  • Closed date

    2015-06-03

  • Last modified date

    2015-06-29

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

    IV73861

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

Fix information

  • Fixed component name

    JAVA 5 JIT

  • Fixed component ID

    620500124

Applicable component levels

  • R500 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSC9HBA","label":"Just In Time (JIT) Compiler"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
29 June 2015