JVM crash with "ExceptionMark destructor expects no pending exceptions" when using jmap after running out of memory

Solution Unverified - Updated -

Issue

Out Java application crashed when we tried to capture a heap dump with jmap, and the fatal error log contained this:

# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (exceptions.cpp:424), pid=11363, tid=140413288523520
#  fatal error: ExceptionMark destructor expects no pending exceptions
V  [libjvm.so+0x9a33ca]  VMError::report_and_die()+0x2ea
V  [libjvm.so+0x499149]  report_fatal(char const*, int, char const*)+0x59
V  [libjvm.so+0x5111e0]  ExceptionMark::~ExceptionMark()+0xb0
V  [libjvm.so+0x2ff2a0]  AttachListener::init()+0x60
V  [libjvm.so+0x2ffba0]  AttachListener::is_init_trigger()+0x100
V  [libjvm.so+0x81ba55]  signal_thread_entry(JavaThread*, Thread*)+0x385
V  [libjvm.so+0x95c11f]  JavaThread::thread_main_inner()+0xdf
V  [libjvm.so+0x95c225]  JavaThread::run()+0xf5
V  [libjvm.so+0x823938]  java_start(Thread*)+0x108

Environment

  • Java

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.