No subject

Donald Kwakkel dkwakkel at
Mon Sep 30 12:46:50 UTC 2019

Is this a known issue / are there workarounds?

If during malloc a crash signal occurs, the jvm will hang because it will
call again malloc, which is not reentrant (for explanation see

This is for production environments a big problem because self-healing (in
this case an automatic restart through jsvc) will not work. Resulting in
manual actions by cloud administrators!

Thread 84 (Thread 0x7f110f2c0700 (LWP 17574)):
#0  0x0000003ce2cf542e in __lll_lock_wait_private () from /lib64/
#1  0x0000003ce2c7bed5 in _L_lock_9323 () from /lib64/
#2  0x0000003ce2c797c6 in malloc () from /lib64/
#3  0x00007f123a7cb7d5 in os::malloc(unsigned long, MemoryType,
NativeCallStack const&) () from /usr/java/latest/lib/server/
#4  0x00007f1239fd7610 in AllocateHeap(unsigned long, MemoryType,
AllocFailStrategy::AllocFailEnum) () from
#5  0x00007f123a271d48 in Decoder::decode(unsigned char*, char*, int,
int*, char const*, bool) () from /usr/java/latest/lib/server/
#6  0x00007f123a7d42ea in os::dll_address_to_function_name(unsigned
char*, char*, int, int*, bool) () from
#7  0x00007f123a32b824 in frame::print_C_frame(outputStream*, char*,
int, unsigned char*) () from /usr/java/latest/lib/server/
#8  0x00007f123a9f7b84 in VMError::report(outputStream*, bool) () from
#9  0x00007f123a9fb4f6 in VMError::report_and_die(int, char const*,
char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*,
char const*, int, unsigned long) ()
   from /usr/java/latest/lib/server/
#10 0x00007f123a9fbb7b in VMError::report_and_die(Thread*, unsigned
int, unsigned char*, void*, void*, char const*, ...) () from
#11 0x00007f123a9fbbae in VMError::report_and_die(Thread*, unsigned
int, unsigned char*, void*, void*) () from
#12 0x00007f123a7dea10 in JVM_handle_linux_signal () from
#13 0x00007f123a7d2c08 in signalHandler(int, siginfo*, void*) () from
#14 <signal handler called>
#15 0x0000003ce2c7856c in _int_malloc () from /lib64/
#16 0x0000003ce2c797d1 in malloc () from /lib64/
#17 0x00007f123a7cb6ba in os::malloc(unsigned long, MemoryType) ()
from /usr/java/latest/lib/server/
#18 0x00007f123a5bd661 in JvmtiEnv::Allocate(long, unsigned char**) ()
from /usr/java/latest/lib/server/
#19 0x00007f123a579adf in jvmti_Allocate () from
#20 0x00007f1238f2138d in jvmtiAllocate () from /opt/jdk-11/lib/
#21 0x00007f1238f04d3e in classTrack_processUnloads () from
#22 0x00007f1238f0cdbb in event_callback () from /opt/jdk-11/lib/
#23 0x00007f1238f0dd7b in cbThreadEnd () from /opt/jdk-11/lib/
#24 0x00007f123a5d68ff in JvmtiExport::post_thread_end(JavaThread*) ()
from /usr/java/latest/lib/server/
#25 0x00007f123a996836 in JavaThread::exit(bool, JavaThread::ExitType)
() from /usr/java/latest/lib/server/
#26 0x00007f123a996c96 in JavaThread::thread_main_inner() () from
#27 0x00007f123a997177 in JavaThread::run() () from
#28 0x00007f123a7dc7d0 in thread_native_entry(Thread*) () from
#29 0x0000003ce34077f1 in start_thread () from /lib64/
#30 0x0000003ce2ce5ccd in clone () from /lib64/

See similair openjdk bug:
java -version
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)

More information about the hotspot-dev mailing list