IBM Support

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

Subscribe

You can track all active APARs for this component.

 

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 problem is specific to the zOS and zLinux platforms.
    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.17.0)
       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

    IV73861

  • Reported component name

    JIT

  • Reported component ID

    620700124

  • Reported release

    130

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-06-03

  • Closed date

    2015-06-03

  • Last modified date

    2016-09-13

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

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

    IV73862 IV73863 IV73867

Fix information

  • Fixed component name

    JIT

  • Fixed component ID

    620700124

Applicable component levels

  • R130 PSY

       UP

  • R260 PSY

       UP

  • R600 PSY

       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":"130","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
13 September 2016