Java crash in guarantee(obj->mark() == markOopDesc::encode(mid)) failed: invariant

Solution Unverified - Updated -

Issue

  • Java crash with the following in the fatal error log:
#  Internal Error (synchronizer.cpp:1493), pid=108674, tid=0x00007fff44c7f170
#  guarantee(obj->mark() == markOopDesc::encode(mid)) failed: invariant
#
# JRE version: OpenJDK Runtime Environment (8.0_332-b09) (build 1.8.0_332-b09)
# Java VM: OpenJDK 64-Bit Server VM (25.332-b09 mixed mode linux-ppc64le compressed oops)
...
Stack: [0x00007fff44a80000,0x00007fff44c80000],  sp=0x00007fff44c7dd50,  free space=2039k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xc63af4]  VMError::report_and_die()+0x2c4
V  [libjvm.so+0x3ecfc4]  report_vm_error(char const*, int, char const*, char const*)+0x94
V  [libjvm.so+0xba5f74]  ObjectSynchronizer::deflate_idle_monitors()+0x394
V  [libjvm.so+0xa881ac]  SafepointSynchronize::do_cleanup_tasks()+0x40c
V  [libjvm.so+0xa8b6f4]  SafepointSynchronize::begin()+0x6e4
V  [libjvm.so+0xc6c96c]  VMThread::loop()+0x6bc
V  [libjvm.so+0xc6cce4]  VMThread::run()+0xf4
V  [libjvm.so+0x9a6aec]  java_start(Thread*)+0x22c
C  [libpthread-2.28.so+0x9658]  start_thread+0xf8
...
7fff15d90000-7fff15dd0000 r--s 00520000 fd:09 67109322                   /path/to/jt400.jar

Environment

  • OpenJDK8 derivative
    • Red Hat build of OpenJDK
    • Adoptium
    • Oracle JDK
  • IBM Toolbox for Java library (support for connections to OS/400, i5/OS, or IBM i systems)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content