Both the Server and the Zero variant of the JVM crash when run inside a chroot environment as they are being used for building packages:
(sid-amd64-sbuild)root@trlin:/usr/src/hs# gdb /usr/src/hs/build/linux-x86_64-normal-server-release/jdk/bin/java
GNU gdb (Debian 7.12-6+b1) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/src/hs/build/linux-x86_64-normal-server-release/jdk/bin/java...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/src/hs/build/linux-x86_64-normal-server-release/jdk/bin/java
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff7fe1700 (LWP 35159)]
Thread 2 "java" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff7fe1700 (LWP 35159)]
OSContainer::init () at /usr/src/hs/src/hotspot/os/linux/osContainer_linux.cpp:374
374 cpuset->set_subsystem_path(base);
(gdb) bt
#0 OSContainer::init () at /usr/src/hs/src/hotspot/os/linux/osContainer_linux.cpp:374
#1 0x00007ffff6a3057a in os::pd_init_container_support () at /usr/src/hs/src/hotspot/os/linux/os_linux.cpp:4908
#2 0x00007ffff62fbd3d in os::init_container_support () at /usr/src/hs/src/hotspot/share/runtime/os.hpp:152
#3 Arguments::parse_vm_init_args (java_tool_options_args=java_tool_options_args@entry=0x7ffff7fe0a90, java_options_args=java_options_args@entry=0x7ffff7fe0ac0, cmd_line_args=cmd_line_args@entry=0x7ffff7fe0ef0)
at /usr/src/hs/src/hotspot/share/runtime/arguments.cpp:2379
#4 0x00007ffff62fc034 in Arguments::parse (initial_cmd_args=initial_cmd_args@entry=0x7ffff7fe0ef0) at /usr/src/hs/src/hotspot/share/runtime/arguments.cpp:4049
#5 0x00007ffff6bc488d in Threads::create_vm (args=0x7ffff7fe0ef0, canTryAgain=canTryAgain@entry=0x7ffff7fe0e27) at /usr/src/hs/src/hotspot/share/runtime/thread.cpp:3974
#6 0x00007ffff675bd91 in JNI_CreateJavaVM_inner (args=<optimized out>, penv=0x7ffff7fe0ee8, vm=0x7ffff7fe0ee0) at /usr/src/hs/src/hotspot/share/prims/jni.cpp:3917
#7 JNI_CreateJavaVM (vm=0x7ffff7fe0ee0, penv=0x7ffff7fe0ee8, args=<optimized out>) at /usr/src/hs/src/hotspot/share/prims/jni.cpp:4012
#8 0x00007ffff7795e34 in InitializeJVM (ifn=<synthetic pointer>, penv=0x7ffff7fe0ee8, pvm=0x7ffff7fe0ee0) at /usr/src/hs/src/java.base/share/native/libjli/java.c:1478
#9 JavaMain (_args=<optimized out>) at /usr/src/hs/src/java.base/share/native/libjli/java.c:411
#10 0x00007ffff79a9517 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007ffff72d782f in clone () from /lib/x86_64-linux-gnu/libc.so.6
(gdb)
This issue should be fixed as it prevents OpenJDK from being built inside a chroot environment which is the common practice on most Linux distributions.