Skip to contentSkip to conversation

openjre-8: java from master/master-next crashes on startup

meta-java Jacob Kroon 2 participants 12 messages Oct 13, 2019 – Jan 26, 2020

lore
Share & tools
lore
#0 lore raw

Hi,

For me, this has been the status for quite a while now. First of all, openjre-8 from master/master-next doesn't build on my Fedora 30 box, I've been using the patch attached to this mail to get it to build.
Secondly, java always crashes on startup here:

Quoted 37 lines

#0 Node::Node (this=0x805fa88, req=3)

    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/node.cpp:327
#1  0xb7499b63 in RegionNode::RegionNode (required=3, this=0x805fa88)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/cfgnode.hpp:73
#2  LoopNode::LoopNode (backedge=0x0, entry=0x0, this=0x805fa88)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/loopnode.hpp:88
#3  RootNode::RootNode (this=0x805fa88)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/rootnode.hpp:37
#4  Compile::Init (this=0x977feaf8, aliaslevel=0)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/compile.cpp:1079
#5  0xb74a02c5 in Compile::Compile (this=0x977feaf8, ci_env=0x977ff188, 
    generator=0xb7895270 <OptoRuntime::new_instance_Type()>, 
    stub_function=0xb7897070 <OptoRuntime::new_instance_C(Klass*, JavaThread*)> "U\211\345WVS\350\245+\237\377\201\303\205\217\062", 
    stub_name=0xb7a0a62f "_new_instance_Java", is_fancy_jump=0, pass_tls=true, 
    save_arg_registers=false, return_pc=false)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/compile.cpp:1012
#6  0xb789587b in OptoRuntime::generate_stub (env=0x977ff188, 
    gen=0xb7895270 <OptoRuntime::new_instance_Type()>, 
    C_function=0xb7897070 <OptoRuntime::new_instance_C(Klass*, JavaThread*)> "U\211\345WVS\350\245+\237\377\201\303\205\217\062", name=0xb7a0a62f "_new_instance_Java", 
    is_fancy_jump=0, pass_tls=true, save_argument_registers=false, return_pc=false)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/runtime.cpp:181
#7  0xb7895a5f in OptoRuntime::generate (env=0x977ff188)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/runtime.cpp:147
#8  0xb7417de9 in C2Compiler::init_c2_runtime ()
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/runtime/thread.hpp:1854
#9  0xb7417e35 in C2Compiler::initialize (this=0xb706b180)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/c2compiler.cpp:102
#10 0xb74a508c in CompileBroker::init_compiler_runtime ()
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/compiler/compileBroker.cpp:1674
#11 0xb74ab6ed in CompileBroker::compiler_thread_loop ()
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/compiler/compileBroker.cpp:1772
#12 0xb79238d5 in compiler_thread_entry (thread=0xb7079400, __the_thread__=0xb7079400)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/runtime/thread.cpp:3230
#13 0xb792d782 in JavaThread::thread_main_inner (this=0xb7079400)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/runtime/thread.hpp:1035
#14 0xb7820ce4 in java_start (thread=0xb7079400)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/os/linux/vm/os_linux.cpp:790
Quoted 2 lines

#15 0x4121244c in start_thread (arg=<optimized out>) at pthread_create.c:479 #16 0x4113bd56 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108

The Node::Node() constructor uses an IDX_INIT() macro:

Quoted 1 line

#define IDX_INIT(req) this->Init((req), (Compile*) this->_out)

and Node::Init() does:

Quoted 3 lines

297 inline int Node::Init(int req, Compile* C) {
298 assert(Compile::current() == C, "must use operator new(Compile*)");
299 int idx = C->next_unique();

and here, this->_out = C = null, which I think leads to a segfault on line 299.
I've tried looking at upstream jdk8u but can't find anything. Does
anyone have an idea of whats going on here, or if I should raise the issue to openjdk ml ?

Cheers,
Jacob

From: Jacob Kroon <[email protected]>
Date: Fri, 2 Aug 2019 15:59:52 +0200
Subject: [PATCH] Fix build

---
 recipes-core/icedtea/icedtea7-native.inc      |  2 ++
 .../icedtea/openjdk-7-03b147/fix-build.patch  | 22 +++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 recipes-core/icedtea/openjdk-7-03b147/fix-build.patch
recipes-core/icedtea/icedtea7-native.inc +2 -0
index b578cb2..522244e 100644
@@ -49,6 +49,7 @@ SRC_URI = " \
   file://timezoneszip.patch \
   file://sigsegv.patch;apply=no \
   file://vframeArray_Fix_sigsegv.patch;apply=no \
+  file://fix-build.patch;apply=no \
   "
 
 S = "${WORKDIR}/${ICEDTEA}"
@@ -161,6 +162,7 @@ do_configure_append() {
 	patch -p1 < ${WORKDIR}/jaxws_fix_NullPointerException.patch
 	patch -p1 < ${WORKDIR}/sigsegv.patch
 	patch -p1 < ${WORKDIR}/vframeArray_Fix_sigsegv.patch
+	patch -p1 < ${WORKDIR}/fix-build.patch
 }
 
 EXTRA_OEMAKE = ' \
recipes-core/icedtea/openjdk-7-03b147/fix-build.patch new file +22 -0
new file mode 100644
index 0000000..671173a
@@ -0,0 +1,22 @@
+--- a/openjdk-boot/hotspot/src/share/vm/code/relocInfo.hpp
++++ b/openjdk-boot/hotspot/src/share/vm/code/relocInfo.hpp
+@@ -371,7 +371,7 @@ class relocInfo VALUE_OBJ_CLASS_SPEC {
+   // "immediate" in the prefix header word itself.  This optimization
+   // is invisible outside this module.)
+ 
+-  inline friend relocInfo prefix_relocInfo(int datalen = 0);
++  inline friend relocInfo prefix_relocInfo(int datalen);
+ 
+  protected:
+   // an immediate relocInfo optimizes a prefix with one 10-bit unsigned value
+--- a/openjdk/hotspot/src/share/vm/code/relocInfo.hpp
++++ b/openjdk/hotspot/src/share/vm/code/relocInfo.hpp
+@@ -371,7 +371,7 @@ class relocInfo VALUE_OBJ_CLASS_SPEC {
+   // "immediate" in the prefix header word itself.  This optimization
+   // is invisible outside this module.)
+ 
+-  inline friend relocInfo prefix_relocInfo(int datalen = 0);
++  inline friend relocInfo prefix_relocInfo(int datalen);
+ 
+  protected:
+   // an immediate relocInfo optimizes a prefix with one 10-bit unsigned value
#1 lore raw

Hi Richard,

I still can't use openjre-8 in either warrior, zeus or master builds, due to the crash below. I wonder, is anyone successfully using openjre-8 in either of these releases ?

I see the crash both in my custom machine and in qemux86-64. If it makes a difference, I'm using

PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native" PREFERRED_PROVIDER_virtual/java-native = "cacao-native"

since building with jamvm has always been broken for me.

Any hints ?

Cheers,
Jacob

Quoted 53 lines · Jacob Kroon

Hi,

For me, this has been the status for quite a while now. First of all, openjre-8 from master/master-next doesn't build on my Fedora 30 box, I've been using the patch attached to this mail to get it to build. Secondly, java always crashes on startup here:

Quoted 24 lines

#0  Node::Node (this=0x805fa88, req=3)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/node.cpp:327
#1  0xb7499b63 in RegionNode::RegionNode (required=3, this=0x805fa88)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/cfgnode.hpp:73
#2  LoopNode::LoopNode (backedge=0x0, entry=0x0, this=0x805fa88)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/loopnode.hpp:88
#3  RootNode::RootNode (this=0x805fa88)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/rootnode.hpp:37
#4  Compile::Init (this=0x977feaf8, aliaslevel=0)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/compile.cpp:1079
#5  0xb74a02c5 in Compile::Compile (this=0x977feaf8, ci_env=0x977ff188,     generator=0xb7895270 <OptoRuntime::new_instance_Type()>, stub_function=0xb7897070 <OptoRuntime::new_instance_C(Klass*, JavaThread*)> "U\211\345WVS\350\245+\237\377\201\303\205\217\062", stub_name=0xb7a0a62f "_new_instance_Java", is_fancy_jump=0, pass_tls=true,     save_arg_registers=false, return_pc=false) at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/compile.cpp:1012
#6  0xb789587b in OptoRuntime::generate_stub (env=0x977ff188,     gen=0xb7895270 <OptoRuntime::new_instance_Type()>, C_function=0xb7897070 <OptoRuntime::new_instance_C(Klass*, JavaThread*)> "U\211\345WVS\350\245+\237\377\201\303\205\217\062", name=0xb7a0a62f "_new_instance_Java",     is_fancy_jump=0, pass_tls=true, save_argument_registers=false, return_pc=false) at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/runtime.cpp:181
#7  0xb7895a5f in OptoRuntime::generate (env=0x977ff188)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/runtime.cpp:147
#8  0xb7417de9 in C2Compiler::init_c2_runtime ()
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/runtime/thread.hpp:1854
#9  0xb7417e35 in C2Compiler::initialize (this=0xb706b180)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/c2compiler.cpp:102
#10 0xb74a508c in CompileBroker::init_compiler_runtime ()
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/compiler/compileBroker.cpp:1674
#11 0xb74ab6ed in CompileBroker::compiler_thread_loop ()
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/compiler/compileBroker.cpp:1772

Quoted 8 lines

#12 0xb79238d5 in compiler_thread_entry (thread=0xb7079400, __the_thread__=0xb7079400) at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/runtime/thread.cpp:3230 #13 0xb792d782 in JavaThread::thread_main_inner (this=0xb7079400)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/runtime/thread.hpp:1035 #14 0xb7820ce4 in java_start (thread=0xb7079400)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/os/linux/vm/os_linux.cpp:790 #15 0x4121244c in start_thread (arg=<optimized out>) at pthread_create.c:479
#16 0x4113bd56 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:108

The Node::Node() constructor uses an IDX_INIT() macro:

Quoted 1 line

#define IDX_INIT(req) this->Init((req), (Compile*) this->_out)

and Node::Init() does:

Quoted 3 lines

297     inline int Node::Init(int req, Compile* C) {
298      assert(Compile::current() == C, "must use operator new(Compile*)"); 299      int idx = C->next_unique();

and here, this->_out = C = null, which I think leads to a segfault on line 299.
  I've tried looking at upstream jdk8u but can't find anything. Does anyone have an idea of whats going on here, or if I should raise the issue to openjdk ml ?

Cheers,
Jacob

#2 lore raw

Hi Jacob,

Quoted 5 lines · Jacob Kroon

Hi Richard,

I still can't use openjre-8 in either warrior, zeus or master builds, due to the crash below. I wonder, is anyone successfully using openjre-8 in either of these releases ?

I'm doing tests for the machine/distro combinations stated in the README before pushing to master. Therefore it should have worked back then.

Nonetheless I'm currently working on updating openjdk-8 to the latest ga and implementing continous (e.g. nightly/weekly) builds/tests on qemu to make sure nothing broke over time.

So maybe I could get something out of this.

Quoted 10 lines

I see the crash both in my custom machine and in qemux86-64. If it makes a difference, I'm using

PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native" PREFERRED_PROVIDER_virtual/java-native = "cacao-native"

since building with jamvm has always been broken for me.

Any hints ?

Nothing that comes to my mind directly, but I'll take a look into this.

So your "custom machine" is also x86-64?

Quoted 78 lines

Cheers,
Jacob

Quoted 73 lines · Jacob Kroon

Hi,

For me, this has been the status for quite a while now. First of all, openjre-8 from master/master-next doesn't build on my Fedora 30 box, I've been using the patch attached to this mail to get it to build. Secondly, java always crashes on startup here:

Quoted 38 lines

#0  Node::Node (this=0x805fa88, req=3)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/node.cpp:327 #1  0xb7499b63 in RegionNode::RegionNode (required=3, this=0x805fa88)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/cfgnode.hpp:73 #2  LoopNode::LoopNode (backedge=0x0, entry=0x0, this=0x805fa88)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/loopnode.hpp:88 #3  RootNode::RootNode (this=0x805fa88)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/rootnode.hpp:37 #4  Compile::Init (this=0x977feaf8, aliaslevel=0)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/compile.cpp:1079 #5  0xb74a02c5 in Compile::Compile (this=0x977feaf8,
ci_env=0x977ff188,     generator=0xb7895270
<OptoRuntime::new_instance_Type()>, stub_function=0xb7897070 <OptoRuntime::new_instance_C(Klass*, JavaThread*)> "U\211\345WVS\350\245+\237\377\201\303\205\217\062",
stub_name=0xb7a0a62f "_new_instance_Java", is_fancy_jump=0,
pass_tls=true,     save_arg_registers=false, return_pc=false)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/compile.cpp:1012 #6  0xb789587b in OptoRuntime::generate_stub (env=0x977ff188,
gen=0xb7895270 <OptoRuntime::new_instance_Type()>,
C_function=0xb7897070 <OptoRuntime::new_instance_C(Klass*,
JavaThread*)> "U\211\345WVS\350\245+\237\377\201\303\205\217\062",
name=0xb7a0a62f "_new_instance_Java",     is_fancy_jump=0,
pass_tls=true, save_argument_registers=false, return_pc=false)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/runtime.cpp:181 #7  0xb7895a5f in OptoRuntime::generate (env=0x977ff188)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/runtime.cpp:147 #8  0xb7417de9 in C2Compiler::init_c2_runtime ()
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/runtime/thread.hpp:1854 #9  0xb7417e35 in C2Compiler::initialize (this=0xb706b180)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/opto/c2compiler.cpp:102 #10 0xb74a508c in CompileBroker::init_compiler_runtime ()
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/compiler/compileBroker.cpp:1674 #11 0xb74ab6ed in CompileBroker::compiler_thread_loop ()
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/compiler/compileBroker.cpp:1772 #12 0xb79238d5 in compiler_thread_entry (thread=0xb7079400,
__the_thread__=0xb7079400)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/runtime/thread.cpp:3230

Quoted 8 lines

#13 0xb792d782 in JavaThread::thread_main_inner (this=0xb7079400)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/share/vm/runtime/thread.hpp:1035 #14 0xb7820ce4 in java_start (thread=0xb7079400)
    at /usr/src/debug/openjre-8/172b11-r0/jdk8u-33d274a7dda0/hotspot/src/os/linux/vm/os_linux.cpp:790 #15 0x4121244c in start_thread (arg=<optimized out>) at
pthread_create.c:479
#16 0x4113bd56 in clone () at
../sysdeps/unix/sysv/linux/i386/clone.S:108

The Node::Node() constructor uses an IDX_INIT() macro:

Quoted 1 line

#define IDX_INIT(req) this->Init((req), (Compile*) this->_out)

and Node::Init() does:

Quoted 4 lines

297     inline int Node::Init(int req, Compile* C) { 298      assert(Compile::current() == C, "must use operator new(Compile*)");
299      int idx = C->next_unique();

and here, this->_out = C = null, which I think leads to a segfault on line 299.
  I've tried looking at upstream jdk8u but can't find anything. Does anyone have an idea of whats going on here, or if I should raise the issue to openjdk ml ?

Cheers,
Jacob

#3 lore raw

Hi Richard,

Quoted 9 lines · Richard Leitner

Hi Jacob,

Quoted 5 lines · Jacob Kroon

Hi Richard,

I still can't use openjre-8 in either warrior, zeus or master builds, due to the crash below. I wonder, is anyone successfully using openjre-8 in either of these releases ?

Quoted 9 lines

I'm doing tests for the machine/distro combinations stated in the README before pushing to master. Therefore it should have worked back then.

Nonetheless I'm currently working on updating openjdk-8 to the latest ga and implementing continous (e.g. nightly/weekly) builds/tests on qemu to make sure nothing broke over time.

So maybe I could get something out of this.

Thanks for doing this work.

Quoted 7 lines
Quoted 7 lines

I see the crash both in my custom machine and in qemux86-64. If it makes a difference, I'm using

PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native" PREFERRED_PROVIDER_virtual/java-native = "cacao-native"

Quoted 7 lines
Quoted 3 lines

since building with jamvm has always been broken for me.

Any hints ?

Nothing that comes to my mind directly, but I'll take a look into this.

So your "custom machine" is also x86-64?

The custom machine .conf file is just:
------------------------------------------
require conf/machine/include/tune-i686.inc
require conf/machine/include/x86-base.inc
------------------------------------------

So 32bit x86.

Cheers,
Jacob

#4 lore raw
Quoted 2 lines · Jacob Kroon
Quoted 1 line · Richard Leitner

On Tue, Jan 21, 2020 at 08:00:48AM +0100, Jacob Kroon wrote:

...

Quoted 14 lines
Quoted 6 lines
Quoted 6 lines

I see the crash both in my custom machine and in qemux86-64. If it makes a difference, I'm using

PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native" PREFERRED_PROVIDER_virtual/java-native = "cacao-native"

Quoted 7 lines
Quoted 3 lines

since building with jamvm has always been broken for me.

Any hints ?

Nothing that comes to my mind directly, but I'll take a look into this.

So your "custom machine" is also x86-64?

Quoted 7 lines

The custom machine .conf file is just:
------------------------------------------
require conf/machine/include/tune-i686.inc
require conf/machine/include/x86-base.inc
------------------------------------------

So 32bit x86.

Is your JVM crashing in interpreted and mixed mode?

regards;rl

Quoted 3 lines

Cheers,
Jacob

#5 lore raw
Quoted 26 lines · Richard Leitner
Quoted 2 lines · Jacob Kroon
Quoted 1 line · Richard Leitner

On Tue, Jan 21, 2020 at 08:00:48AM +0100, Jacob Kroon wrote:

...

Quoted 20 lines
Quoted 6 lines
Quoted 6 lines

I see the crash both in my custom machine and in qemux86-64. If it makes a difference, I'm using

PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native" PREFERRED_PROVIDER_virtual/java-native = "cacao-native"

Quoted 7 lines
Quoted 3 lines

since building with jamvm has always been broken for me.

Any hints ?

Nothing that comes to my mind directly, but I'll take a look into this.

So your "custom machine" is also x86-64?

The custom machine .conf file is just:
------------------------------------------
require conf/machine/include/tune-i686.inc
require conf/machine/include/x86-base.inc
------------------------------------------

Quoted 4 lines
Quoted 1 line

So 32bit x86.

Is your JVM crashing in interpreted and mixed mode?

It only crashes in mixed mode. If I pass -Xint I don't see any issues.

#6 lore raw
In reply to Jacob Kroon

Hi Jacob,

Quoted 11 lines · Jacob Kroon
Quoted 10 lines · Richard Leitner
Quoted 5 lines · Jacob Kroon

Hi Richard,

I still can't use openjre-8 in either warrior, zeus or master builds, due to the crash below. I wonder, is anyone successfully using openjre-8 in either of these releases ?

I'm doing tests for the machine/distro combinations stated in the README before pushing to master. Therefore it should have worked back then.

Quoted 8 lines
Quoted 6 lines

Nonetheless I'm currently working on updating openjdk-8 to the latest ga and implementing continous (e.g. nightly/weekly) builds/tests on qemu to make sure nothing broke over time.

So maybe I could get something out of this.

Thanks for doing this work.

I've just pushed a temporary branch named "g0hl1n/wip-jdk8u242ga" to the meta-java repository [1]. It contains (as you might have guessed) the update to openjdk 8u242ga.

Can you please give it a try if it works for you?

Please note that I might force-push to the branch.

regards;rl

[1] https://git.yoctoproject.org/cgit/cgit.cgi/meta-java/log/?h=g0hl1n/wip-jdk8u242ga

#7 lore raw

Hi Richard,

Quoted 21 lines · Richard Leitner

Hi Jacob,

Quoted 18 lines · Jacob Kroon
Quoted 16 lines · Richard Leitner
Quoted 5 lines · Jacob Kroon

Hi Richard,

I still can't use openjre-8 in either warrior, zeus or master builds, due to the crash below. I wonder, is anyone successfully using openjre-8 in either of these releases ?

I'm doing tests for the machine/distro combinations stated in the README before pushing to master. Therefore it should have worked back then.

Nonetheless I'm currently working on updating openjdk-8 to the latest ga and implementing continous (e.g. nightly/weekly) builds/tests on qemu to make sure nothing broke over time.

So maybe I could get something out of this.

Quoted 8 lines
Quoted 1 line

Thanks for doing this work.

I've just pushed a temporary branch named "g0hl1n/wip-jdk8u242ga" to the meta-java repository [1]. It contains (as you might have guessed) the update to openjdk 8u242ga.

Can you please give it a try if it works for you?

I tried but I get a linker error during openjre-8_242.bb:do_compile:

Making adlc
...
/tmp/ramdisk/build/hosttools/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status

This is using MACHINE=qemux86-64.

Gonna try and fix and get the build going.

Cheers,
Jacob

#8 lore raw
Quoted 1 line · Jacob Kroon

On 1/24/20 11:37 AM, Richard Leitner wrote:

...

Quoted 9 lines
Quoted 6 lines

I've just pushed a temporary branch named "g0hl1n/wip-jdk8u242ga" to the meta-java repository [1]. It contains (as you might have guessed) the update to openjdk 8u242ga.

Can you please give it a try if it works for you?

I tried but I get a linker error during openjre-8_242.bb:do_compile:

Quoted 8 lines

Making adlc
...
/tmp/ramdisk/build/hosttools/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status

This is using MACHINE=qemux86-64.

Gonna try and fix and get the build going.

Do you have "libstdc++ static" installed on your buildhost as stated in the README? ...the error let me suggest you don't have it ;-)

regards;rl

Quoted 3 lines

Cheers,
Jacob

#9 lore raw
Quoted 19 lines · Richard Leitner
Quoted 1 line · Jacob Kroon

On 1/24/20 11:37 AM, Richard Leitner wrote:

...

Quoted 14 lines
Quoted 6 lines

I've just pushed a temporary branch named "g0hl1n/wip-jdk8u242ga" to the meta-java repository [1]. It contains (as you might have guessed) the update to openjdk 8u242ga.

Can you please give it a try if it works for you?

I tried but I get a linker error during openjre-8_242.bb:do_compile:

Making adlc
...
/tmp/ramdisk/build/hosttools/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status

Quoted 7 lines
Quoted 3 lines

This is using MACHINE=qemux86-64.

Gonna try and fix and get the build going.

Do you have "libstdc++ static" installed on your buildhost as stated in the README? ...the error let me suggest you don't have it ;-)

Oops, yeah I missed that. That got me further, but I got a new linking error:

Quoted 20 lines

| Linking executable genSocketOptionRegistry
| gensrc/GensrcMisc.gmk:75: Building /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genSocketOptionRegistry/genSocketOptionRegistry (from /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genSocketOptionRegistry/genSocketOptionRegi stry.o) (/tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genSocketOptionRegistry/genSocketOptionRegistry.o newer)
| + /tmp/ramdisk/build/hosttools/gcc /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genUnixConstants/genUnixConstants.o -o /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genUnixConstants/genUnixConstants | + /tmp/ramdisk/build/hosttools/ld /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genSocketOptionRegistry/genSocketOptionRegistry.o -o /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genSocketOptionRegistry/genSocket OptionRegistry

| /tmp/ramdisk/build/hosttools/ld: warning: cannot find entry symbol _start; defaulting to 0000000000401000
| /tmp/ramdisk/build/hosttools/ld: /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genSocketOptionRegistry/genSocketOptionRegistry.o: in function `out':
| genSocketOptionRegistry.c:(.text+0x14): undefined reference to `puts'
| /tmp/ramdisk/build/hosttools/ld: /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genSocketOptionRegistry/genSocketOptionRegistry.o: in function `emit':
| genSocketOptionRegistry.c:(.text+0x47): undefined reference to `printf'
| /tmp/ramdisk/build/hosttools/ld: genSocketOptionRegistry.c:(.text+0x5e): undefined reference to `printf'
| make[2]: *** [gensrc/GensrcMisc.gmk:75: /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genSocketOptionRegistry/genSocketOptionRegistry] Error 1
| make[2]: *** Waiting for unfinished jobs....
| Note: Some input files use unchecked or unsafe operations.
| Note: Recompile with -Xlint:unchecked for details.
| + /tmp/ramdisk/build/hosttools/mv /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btclasses/_the.BUILD_TOOLS_batch.tmp /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btclasses/_the.BUILD_TOOLS_batch
| make[1]: *** [BuildJdk.gmk:55: gensrc-only] Error 2
| make: *** [/tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/jdk8u-jdk8u242-ga//make/Main.gmk:117: jdk-only] Error 2
| WARNING: /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/temp/run.do_compile.384980:1 exit 1 from 'exit 1'
#10 lore raw
Quoted 22 lines · Jacob Kroon
Quoted 21 lines · Richard Leitner
Quoted 1 line · Jacob Kroon

On 1/24/20 11:37 AM, Richard Leitner wrote:

...

Quoted 16 lines
Quoted 6 lines

I've just pushed a temporary branch named "g0hl1n/wip-jdk8u242ga" to the meta-java repository [1]. It contains (as you might have guessed) the update to openjdk 8u242ga.

Can you please give it a try if it works for you?

I tried but I get a linker error during openjre-8_242.bb:do_compile:

Making adlc
...
/tmp/ramdisk/build/hosttools/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status

This is using MACHINE=qemux86-64.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Gonna try and fix and get the build going.

Do you have "libstdc++ static" installed on your buildhost as stated in the README? ...the error let me suggest you don't have it ;-)

Oops, yeah I missed that. That got me further, but I got a new linking error:

As this happens in the "native" part of the openjre build:
What distribution and gcc version are you using on your host?

For me (Fedora 31) the openjdk build and runtime tests for aarch32, aarch64 and x86_64 work.

regards;rl

Quoted 23 lines
Quoted 21 lines

| Linking executable genSocketOptionRegistry
| gensrc/GensrcMisc.gmk:75: Building /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genSocketOptionRegistry/genSocketOptionRegistry (from /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genSocketOptionRegistry/genSocketOptionRegi stry.o) (/tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genSocketOptionRegistry/genSocketOptionRegistry.o newer)
| + /tmp/ramdisk/build/hosttools/gcc /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genUnixConstants/genUnixConstants.o -o /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genUnixConstants/genUnixConstants | + /tmp/ramdisk/build/hosttools/ld /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genSocketOptionRegistry/genSocketOptionRegistry.o -o /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genSocketOptionRegistry/genSocket OptionRegistry

| /tmp/ramdisk/build/hosttools/ld: warning: cannot find entry symbol _start; defaulting to 0000000000401000
| /tmp/ramdisk/build/hosttools/ld: /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genSocketOptionRegistry/genSocketOptionRegistry.o: in function `out':
| genSocketOptionRegistry.c:(.text+0x14): undefined reference to `puts'
| /tmp/ramdisk/build/hosttools/ld: /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genSocketOptionRegistry/genSocketOptionRegistry.o: in function `emit':
| genSocketOptionRegistry.c:(.text+0x47): undefined reference to `printf'
| /tmp/ramdisk/build/hosttools/ld: genSocketOptionRegistry.c:(.text+0x5e): undefined reference to `printf'
| make[2]: *** [gensrc/GensrcMisc.gmk:75: /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btnative/genSocketOptionRegistry/genSocketOptionRegistry] Error 1
| make[2]: *** Waiting for unfinished jobs....
| Note: Some input files use unchecked or unsafe operations.
| Note: Recompile with -Xlint:unchecked for details.
| + /tmp/ramdisk/build/hosttools/mv /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btclasses/_the.BUILD_TOOLS_batch.tmp /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/build/jdk/btclasses/_the.BUILD_TOOLS_batch
| make[1]: *** [BuildJdk.gmk:55: gensrc-only] Error 2
| make: *** [/tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/jdk8u-jdk8u242-ga//make/Main.gmk:117: jdk-only] Error 2
| WARNING: /tmp/ramdisk/build/work/core2-64-oe-linux/openjre-8/242-r0/temp/run.do_compile.384980:1 exit 1 from 'exit 1'
#11 lore raw
Quoted 29 lines · Richard Leitner
Quoted 28 lines · Jacob Kroon
Quoted 26 lines · Richard Leitner
Quoted 1 line · Jacob Kroon

On 1/24/20 11:37 AM, Richard Leitner wrote:

...

Quoted 9 lines
Quoted 6 lines

I've just pushed a temporary branch named "g0hl1n/wip-jdk8u242ga" to the meta-java repository [1]. It contains (as you might have guessed) the update to openjdk 8u242ga.

Can you please give it a try if it works for you?

I tried but I get a linker error during openjre-8_242.bb:do_compile:

Quoted 8 lines

Making adlc
...
/tmp/ramdisk/build/hosttools/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status

This is using MACHINE=qemux86-64.

Gonna try and fix and get the build going.

Do you have "libstdc++ static" installed on your buildhost as stated in the README? ...the error let me suggest you don't have it ;-)

Quoted 9 lines
Quoted 2 lines

Oops, yeah I missed that. That got me further, but I got a new linking error:

As this happens in the "native" part of the openjre build:
What distribution and gcc version are you using on your host?

For me (Fedora 31) the openjdk build and runtime tests for aarch32, aarch64 and x86_64 work.

[cut]

Odd.. I'm on plain Fedora 31, with Fedora's regular gcc 9.2.1. I sent a patch to the ml that fixes the build for me, forgot to CC you.

Maybe I have some extra headers installed that triggers something extra to build..

Cheers,
Jacob