Zero crashing on ARM

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Wed Nov 29 12:39:59 UTC 2017


On 11/29/2017 01:19 PM, John Paul Adrian Glaubitz wrote:
> On 11/29/2017 09:18 AM, John Paul Adrian Glaubitz wrote:
>> During my tests, I noticed that Zero is crashing on ARM (Debian armel):
> Will now also test Server and Zero on ARMv7.

Ok, it's not ARM-specific, crashes on x86_64 as well. Must be related
to the chroot environment. This should definitely be fixed as otherwise
distributions won't be able to build OpenJDK inside a chroot environment.

(sid-amd64-sbuild)root at trlin:/usr/src/hs# gdb /usr/src/hs/build/linux-x86_64-normal-zero-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-zero-release/jdk/bin/java...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/src/hs/build/linux-x86_64-normal-zero-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 116310)]

Thread 2 "java" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff7fe1700 (LWP 116310)]
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  0x00007ffff6d00dca in os::pd_init_container_support () at /usr/src/hs/src/hotspot/os/linux/os_linux.cpp:4908
#2  0x00007ffff690ddfd 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 at entry=0x7ffff7fe0a90, java_options_args=0x7ffff7fe0ac0, cmd_line_args=cmd_line_args at entry=0x7ffff7fe0ef0)
     at /usr/src/hs/src/hotspot/share/runtime/arguments.cpp:2379
#4  0x00007ffff690e101 in Arguments::parse (initial_cmd_args=initial_cmd_args at entry=0x7ffff7fe0ef0) at /usr/src/hs/src/hotspot/share/runtime/arguments.cpp:4049
#5  0x00007ffff6de15cd in Threads::create_vm (args=0x7ffff7fe0ef0, canTryAgain=canTryAgain at entry=0x7ffff7fe0e27) at /usr/src/hs/src/hotspot/share/runtime/thread.cpp:3974
#6  0x00007ffff6babfd1 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)

-- 
  .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
   `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


More information about the hotspot-dev mailing list