Happens when building a Linux JDK on WSL1:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f790aad3a94, pid=6304, tid=6328
Stack: [0x00007f7908540000,0x00007f7908641000], sp=0x00007f790863ef50, free space=1019k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libc.so.6+0x63a94]
C [libc.so.6+0x6323d] __isoc99_fscanf+0x9d
V [libjvm.so+0x1507085] os::attempt_reserve_memory_between(char*, char*, unsigned long, unsigned long, bool)+0x115 (os.cpp:1887)
V [libjvm.so+0x13f7c9b] Metaspace::reserve_address_space_for_compressed_classes(unsigned long, bool)+0x6b (metaspace.cpp:596)
V [libjvm.so+0x13f87e4] Metaspace::global_initialize()+0x834 (metaspace.cpp:796)
V [libjvm.so+0x198b904] universe_init()+0xf4 (universe.cpp:796)
V [libjvm.so+0xe5d74b] init_globals()+0x3b (init.cpp:124)
V [libjvm.so+0x19554e5] Threads::create_vm(JavaVMInitArgs*, bool*)+0x2c5 (threads.cpp:550)
V [libjvm.so+0xfd5918] JNI_CreateJavaVM+0x58 (jni.cpp:3576)
C [libjli.so+0x4701] JavaMain+0xa1 (java.c:1522)
C [libjli.so+0x82bd] ThreadJavaMain+0xd (java_md.c:650)
See https://github.com/openjdk/jdk/blob/5cbff2460812fee707f9d96ab00a628d1ce3fbef/src/hotspot/os/linux/os_linux.cpp#L4256
The file /proc/sys/vm/mmap_min_addr/proc/sys/vm/mmap_min_addr does not exist on WSL.
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f790aad3a94, pid=6304, tid=6328
Stack: [0x00007f7908540000,0x00007f7908641000], sp=0x00007f790863ef50, free space=1019k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libc.so.6+0x63a94]
C [libc.so.6+0x6323d] __isoc99_fscanf+0x9d
V [libjvm.so+0x1507085] os::attempt_reserve_memory_between(char*, char*, unsigned long, unsigned long, bool)+0x115 (os.cpp:1887)
V [libjvm.so+0x13f7c9b] Metaspace::reserve_address_space_for_compressed_classes(unsigned long, bool)+0x6b (metaspace.cpp:596)
V [libjvm.so+0x13f87e4] Metaspace::global_initialize()+0x834 (metaspace.cpp:796)
V [libjvm.so+0x198b904] universe_init()+0xf4 (universe.cpp:796)
V [libjvm.so+0xe5d74b] init_globals()+0x3b (init.cpp:124)
V [libjvm.so+0x19554e5] Threads::create_vm(JavaVMInitArgs*, bool*)+0x2c5 (threads.cpp:550)
V [libjvm.so+0xfd5918] JNI_CreateJavaVM+0x58 (jni.cpp:3576)
C [libjli.so+0x4701] JavaMain+0xa1 (java.c:1522)
C [libjli.so+0x82bd] ThreadJavaMain+0xd (java_md.c:650)
See https://github.com/openjdk/jdk/blob/5cbff2460812fee707f9d96ab00a628d1ce3fbef/src/hotspot/os/linux/os_linux.cpp#L4256
The file /proc/sys/vm/mmap_min_addr/proc/sys/vm/mmap_min_addr does not exist on WSL.
- relates to
-
JDK-8312018 Improve reservation of class space and CDS
- Resolved