IBM Support

IV34500: A 'TRACEASSERT' DUMP EVENT OCCURS DURING A CALL TO JAVA/LANG/SEC URITYMANAGER.GETCLASSCONTEXT() WHILE LOOKING UP A JAVA/LANG/INVO

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: A dump event "traceassert" is received.  The snap
    trace file show the following message:
    
      ASSERTION FAILED at sunvmi.c:498: ((accessClass) != NULL)
    .
    Stack Trace: This is the native stack trace:
    
      j9dump_create () from libj9prt26.so
      doSystemDump () from libj9dmp26.so
      j9sig_protect () from libj9prt26.so
      runDumpFunction () from libj9dmp26.so
      runDumpAgent () from libj9dmp26.so
      triggerDumpAgents () from libj9dmp26.so
      twAssertion () from libj9trc26.so
      utsTraceV () from libj9ute26.so
      j9Trace () from libj9trc26.so
      getClassContextIterator () from libjclse7b_26.so
      walkFrame () from libj9vm26.so
      walkStackFrames () from libj9vm26.so
      JVM_GetClassContext () from libjclse7b_26.so
    
      The Java stack trace will be similar to:
    
      at java/lang/SecurityManager.getClassContext
      at Helper.<clinit>
      at java/lang/J9VMInternals.initializeImpl
      at java/lang/J9VMInternals.initialize
      at java/lang/invoke/MethodHandle.lookupMethod
      at java/lang/invoke/MethodHandle.finishMethodInitialization
      at java/lang/invoke/DirectHandle.<init>
      at java/lang/invoke/MethodHandles$Lookup.findStatic
    .
    This only affects Java 7
    

Local fix

  • Ensure that classes that call getClassContext() in <clinit> have
    been initialized prior to attempting to look up MethodHandles
    for their methods or fields.
    

Problem summary

  • The problem is due to an invalid assumption regarding when
    SecurityManager.getClassContext() can be called while looking up
    a java.lang.invoke.MethodHandle.
    

Problem conclusion

  • This defect will be fixed in:
    7.0.0 SR4
    .
     The JVM has been changed to only validate the assumption in the
    correct code path.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV34500

  • Reported component name

    J9 COMMON CODE

  • Reported component ID

    620700127

  • Reported release

    260

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-01-09

  • Closed date

    2013-01-10

  • Last modified date

    2013-01-24

  • 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

    J9 COMMON CODE

  • Fixed component ID

    620700127

Applicable component levels

  • R260 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
21 February 2022