icedtea-native: Fix segmentation build during build
PATCH 1/2 icedtea-native: Fix segmentation build during build
Without this patch, icedtea-native do_compile() results in a SIGSEGV when compiled with GCC7
--- recipes-core/icedtea/icedtea7-native.inc | 2 + .../openjdk-7-03b147/vframeArray_Fix_sigsegv.patch | 60 ++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 recipes-core/icedtea/openjdk-7-03b147/vframeArray_Fix_sigsegv.patch
recipes-core/icedtea/icedtea7-native.inc +2 -0
@@ -43,6 +43,7 @@ SRC_URI = " \ file://jaxws_fix_NullPointerException.patch;apply=no \ file://timezoneszip.patch \ file://sigsegv.patch;apply=no \ + file://vframeArray_Fix_sigsegv.patch;apply=no \ " S = "${WORKDIR}/${ICEDTEA}"
@@ -154,6 +155,7 @@ do_configure_append() { patch -p1 < ${WORKDIR}/jaxws_fix_NullPointerException.patch patch -p1 < ${WORKDIR}/sigsegv.patch + patch -p1 < ${WORKDIR}/vframeArray_Fix_sigsegv.patch } EXTRA_OEMAKE = ' \
recipes-core/icedtea/openjdk-7-03b147/vframeArray_Fix_sigsegv.patch new file +60 -0
60 lines not on this page · raw message
Signature · 1 line
2.14.1
PATCH 2/2 openjdk-8-native: Fix sigsegv with gcc7
OpenJDK does not build properly with GCC7. Add the same workaround that we have for GCC6.
Without this patch:
| # | # A fatal error has been detected by the Java Runtime Environment: | # | # SIGSEGV (0xb) at pc=0x00007fcad0efcd5b, pid=17206, tid=0x00007fcab264c700 | # | # JRE version: OpenJDK Runtime Environment (8.0_102-b14) (build 1.8.0_102-internal-b14) | # Java VM: OpenJDK 64-Bit Server VM (25.102-b14 mixed mode linux-amd64 compressed oops) | # Problematic frame: | # V [libjvm.so+0x78bd5b] Node::Node(unsigned int)+0x2b | # | # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again | # | # An error report file with more information is saved as: | # /home/ricardo/curro/qt5022/build-qt5022-pyro/build/tmp/work/x86_64-linux/openjdk-8-native/102b14-r0/build/hs_err_pid17206.log | [thread 140508549912320 also had an error] | | [error occurred during error reporting , id 0xb] | | # | # If you would like to submit a bug report, please visit: | # http://bugreport.java.com/bugreport/crash.jsp | #
--- recipes-core/openjdk/openjdk-8-common.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
recipes-core/openjdk/openjdk-8-common.inc +4 -3
@@ -218,10 +218,11 @@ EXTRA_OECONF_append = "\ --with-update-version=${OPENJDK_UPDATE_VERSION} \ " -# GCC 6 sets the default C++ standard to C++14 and introduces dead store -# elimination by default. OpenJDK 8 is not ready for either of these -# changes. +# Since v6, GCC sets the default C++ standard to C++14 and introduces +# dead store elimination by default. OpenJDK 8 is not ready for either +# of these changes. FLAGS_GCC6 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" +FLAGS_GCC7 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" # All supported cross compilers support the compiler flags that were # added to make compilation with gcc6 work. But the host compiler for
Signature · 1 line
2.14.1
Re: [meta-java][PATCH 2/2] openjdk-8-native: Fix sigsegv with gcc7
Ping?
Quoted 55 lines · Ricardo Ribalda Delgado
OpenJDK does not build properly with GCC7. Add the same workaround that we have for GCC6.
Without this patch:
| # | # A fatal error has been detected by the Java Runtime Environment: | # | # SIGSEGV (0xb) at pc=0x00007fcad0efcd5b, pid=17206, tid=0x00007fcab264c700 | # | # JRE version: OpenJDK Runtime Environment (8.0_102-b14) (build 1.8.0_102-internal-b14) | # Java VM: OpenJDK 64-Bit Server VM (25.102-b14 mixed mode linux-amd64 compressed oops) | # Problematic frame: | # V [libjvm.so+0x78bd5b] Node::Node(unsigned int)+0x2b | # | # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again | # | # An error report file with more information is saved as: | # /home/ricardo/curro/qt5022/build-qt5022-pyro/build/tmp/work/x86_64-linux/openjdk-8-native/102b14-r0/build/hs_err_pid17206.log | [thread 140508549912320 also had an error] | | [error occurred during error reporting , id 0xb] | | # | # If you would like to submit a bug report, please visit: | # http://bugreport.java.com/bugreport/crash.jsp | #Signed-off-by Ricardo Ribalda Delgado <[email protected]>--- recipes-core/openjdk/openjdk-8-common.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)recipes-core/openjdk/openjdk-8-common.inc +4
-4@@ -218,10 +218,11 @@ EXTRA_OECONF_append = "\ --with-update-version=${OPENJDK_UPDATE_VERSION} \ " -# GCC 6 sets the default C++ standard to C++14 and introduces dead store -# elimination by default. OpenJDK 8 is not ready for either of these -# changes. +# Since v6, GCC sets the default C++ standard to C++14 and introduces +# dead store elimination by default. OpenJDK 8 is not ready for either +# of these changes. FLAGS_GCC6 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" +FLAGS_GCC7 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" # All supported cross compilers support the compiler flags that were # added to make compilation with gcc6 work. But the host compiler for --2.14.1
Signature · 1 line
Ricardo Ribalda
Re: [meta-java][PATCH 2/2] openjdk-8-native: Fix sigsegv with gcc7
Hi,
Quoted 1 line · Ricardo Ribalda Delgado
Ping?
Pushed these 3 patches to master-next. Sorry for the delay.
Best Regards,
Maxin
Quoted 67 lines
Quoted 55 lines · Ricardo Ribalda Delgado
OpenJDK does not build properly with GCC7. Add the same workaround that we have for GCC6.
Without this patch:
| # | # A fatal error has been detected by the Java Runtime Environment: | # | # SIGSEGV (0xb) at pc=0x00007fcad0efcd5b, pid=17206, tid=0x00007fcab264c700 | # | # JRE version: OpenJDK Runtime Environment (8.0_102-b14) (build 1.8.0_102-internal-b14) | # Java VM: OpenJDK 64-Bit Server VM (25.102-b14 mixed mode linux-amd64 compressed oops) | # Problematic frame: | # V [libjvm.so+0x78bd5b] Node::Node(unsigned int)+0x2b | # | # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again | # | # An error report file with more information is saved as: | # /home/ricardo/curro/qt5022/build-qt5022-pyro/build/tmp/work/x86_64-linux/openjdk-8-native/102b14-r0/build/hs_err_pid17206.log | [thread 140508549912320 also had an error] | | [error occurred during error reporting , id 0xb] | | # | # If you would like to submit a bug report, please visit: | # http://bugreport.java.com/bugreport/crash.jsp | #Signed-off-by Ricardo Ribalda Delgado <[email protected]>--- recipes-core/openjdk/openjdk-8-common.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)recipes-core/openjdk/openjdk-8-common.inc +4
-4@@ -218,10 +218,11 @@ EXTRA_OECONF_append = "\ --with-update-version=${OPENJDK_UPDATE_VERSION} \ " -# GCC 6 sets the default C++ standard to C++14 and introduces dead store -# elimination by default. OpenJDK 8 is not ready for either of these -# changes. +# Since v6, GCC sets the default C++ standard to C++14 and introduces +# dead store elimination by default. OpenJDK 8 is not ready for either +# of these changes. FLAGS_GCC6 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" +FLAGS_GCC7 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" # All supported cross compilers support the compiler flags that were # added to make compilation with gcc6 work. But the host compiler for --2.14.1
Signature · 6 lines
Ricardo Ribalda -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-java][PATCH 2/2] openjdk-8-native: Fix sigsegv with gcc7
Quoted 6 lines · Maxin B. John
Hi,
Quoted 1 line · Ricardo Ribalda Delgado
Ping?
Pushed these 3 patches to master-next. Sorry for the delay.
No worries :) Just wanted to make sure the patches were not lost in the wind.
Best regards!
Quoted 71 lines
Best Regards,
MaxinQuoted 67 lines
Quoted 53 lines · Ricardo Ribalda Delgado
OpenJDK does not build properly with GCC7. Add the same workaround that we have for GCC6.
Without this patch:
| # | # A fatal error has been detected by the Java Runtime Environment: | # | # SIGSEGV (0xb) at pc=0x00007fcad0efcd5b, pid=17206, tid=0x00007fcab264c700 | # | # JRE version: OpenJDK Runtime Environment (8.0_102-b14) (build 1.8.0_102-internal-b14) | # Java VM: OpenJDK 64-Bit Server VM (25.102-b14 mixed mode linux-amd64 compressed oops) | # Problematic frame: | # V [libjvm.so+0x78bd5b] Node::Node(unsigned int)+0x2b | # | # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again | # | # An error report file with more information is saved as: | # /home/ricardo/curro/qt5022/build-qt5022-pyro/build/tmp/work/x86_64-linux/openjdk-8-native/102b14-r0/build/hs_err_pid17206.log | [thread 140508549912320 also had an error] | | [error occurred during error reporting , id 0xb] | | # | # If you would like to submit a bug report, please visit: | # http://bugreport.java.com/bugreport/crash.jsp | #Signed-off-by Ricardo Ribalda Delgado <[email protected]>--- recipes-core/openjdk/openjdk-8-common.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)recipes-core/openjdk/openjdk-8-common.inc +4
-4@@ -218,10 +218,11 @@ EXTRA_OECONF_append = "\ --with-update-version=${OPENJDK_UPDATE_VERSION} \ " -# GCC 6 sets the default C++ standard to C++14 and introduces dead store -# elimination by default. OpenJDK 8 is not ready for either of these -# changes. +# Since v6, GCC sets the default C++ standard to C++14 and introduces +# dead store elimination by default. OpenJDK 8 is not ready for either +# of these changes. FLAGS_GCC6 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" +FLAGS_GCC7 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" # All supported cross compilers support the compiler flags that were # added to make compilation with gcc6 work. But the host compiler for --Quoted 2 lines
2.14.1
--
Ricardo Ribalda
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Ricardo Ribalda
Ping?
Quoted 99 lines · Ricardo Ribalda Delgado
Without this patch, icedtea-native
do_compile()results in a SIGSEGV when compiled with GCC7Signed-off-by Ricardo Ribalda Delgado <[email protected]>--- recipes-core/icedtea/icedtea7-native.inc | 2 + .../openjdk-7-03b147/vframeArray_Fix_sigsegv.patch | 60 ++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 recipes-core/icedtea/openjdk-7-03b147/vframeArray_Fix_sigsegv.patchrecipes-core/icedtea/icedtea7-native.inc +2
-0@@ -43,6 +43,7 @@ SRC_URI = " \ file://jaxws_fix_NullPointerException.patch;apply=no \ file://timezoneszip.patch \ file://sigsegv.patch;apply=no \ + file://vframeArray_Fix_sigsegv.patch;apply=no \ " S = "${WORKDIR}/${ICEDTEA}"@@ -154,6 +155,7 @@ do_configure_append() { patch -p1 < ${WORKDIR}/jaxws_fix_NullPointerException.patch patch -p1 < ${WORKDIR}/sigsegv.patch + patch -p1 < ${WORKDIR}/vframeArray_Fix_sigsegv.patch } EXTRA_OEMAKE = ' \recipes-core/icedtea/openjdk-7-03b147/vframeArray_Fix_sigsegv.patch new file +60
-1@@ -0,0 +1,60 @@ +Disable Optimization on vframeArray::unpack_to_stack + +GCC7 triggers a sigsegv while building: + + +| JAVA_HOME=/home/ricardo/curro/qt5022/build-qt5022-pyro/build/tmp/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/bootstrap/jdk1.6.0 ANT_OPTS=-Djava.io.tmpdir='/home/ricardo/curro/qt5022/build-qt5022-pyro/build/tmp/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk.build/langtools/build/ant-tmp' /home/ricardo/curro/qt5022/build-qt5022-pyro/build/tmp/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/recipe-sysroot-native/usr/bin/ant -Djdk.version=1.7.0_03 -Dfull.version='1.7.0_03-icedtea-b21' -Drelease=1.7.0_03 -Dbuild.number=b21 -Djavac.debug=true -Ddebug.classfiles=true -Djavac.target=7 -Djavac.source=7 -Dboot.java.home=/home/ricardo/curro/qt5022/build-qt5022-pyro/build/tmp/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/bootstrap/jdk1.6.0 -Dimport.jdk=/home/ricardo/curro/qt5022/build-qt5022-pyro/build/tmp/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk/jdk .... +| Buildfile: /home/ricardo/curro/qt5022/build-qt5022-pyro/build/tmp/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk/langtools/make/build.xml +| # +| # A fatal error has been detected by the Java Runtime Environment: +| # +| # SIGSEGV (0xb) at pc=0x00007fad7906e868, pid=9747, tid=140383055484672 +| # +| # JRE version: 7.0_03-b21 +| # Java VM: OpenJDK 64-Bit Server VM (22.0-b10 mixed mode linux-amd64 compressed oops) +| # Derivative: IcedTea7 2.1.3 +| # Distribution: Custom build (Thu Sep 7 09:36:21 CEST 2017) +| # Problematic frame: +| # V [libjvm.so+0x78b868] vframeArray::unpack_to_stack(frame&, int, int)+0x88 +| # +| # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again +| # +| # An error report file with more information is saved as: +| # /home/ricardo/curro/qt5022/build-qt5022-pyro/build/tmp/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/icedtea-2.1.3/build/openjdk/langtools/make/hs_err_pid9747.log +| # +| # If you would like to submit a bug report, please include +| # instructions on how to reproduce the bug and visit: +| # http://icedtea.classpath.org/bugzilla +| # +| Aborted + + +Upstream-Status: Inappropriate + +Signed-off-by: Ricardo Ribalda Delgado <[email protected]> +diff --git a/openjdk-boot/hotspot/src/share/vm/runtime/vframeArray.cpp b/build/openjdk-boot/hotspot/src/share/vm/runtime/vframeArray.cpp +index 52b080999224..81b6a09ea91a 100644 +--- a/openjdk-boot/hotspot/src/share/vm/runtime/vframeArray.cpp ++++ b/openjdk-boot/hotspot/src/share/vm/runtime/vframeArray.cpp +@@ -500,7 +500,7 @@ void vframeArray::fill_in(JavaThread* thread, + } + } + +-void vframeArray::unpack_to_stack(frame &unpack_frame, int exec_mode, int caller_actual_parameters) { ++void __attribute__((optimize("O0"))) vframeArray::unpack_to_stack(frame &unpack_frame, int exec_mode, int caller_actual_parameters) { + // stack picture + // unpack_frame + // [new interpreter frames ] (frames are skeletal but walkable) +diff --git a/openjdk/hotspot/src/share/vm/runtime/vframeArray.cpp b/build/openjdk/hotspot/src/share/vm/runtime/vframeArray.cpp +index 52b080999224..81b6a09ea91a 100644 +--- a/openjdk/hotspot/src/share/vm/runtime/vframeArray.cpp ++++ b/openjdk/hotspot/src/share/vm/runtime/vframeArray.cpp +@@ -500,7 +500,7 @@ void vframeArray::fill_in(JavaThread* thread, + } + } + +-void vframeArray::unpack_to_stack(frame &unpack_frame, int exec_mode, int caller_actual_parameters) { ++void __attribute__((optimize("O0"))) vframeArray::unpack_to_stack(frame &unpack_frame, int exec_mode, int caller_actual_parameters) { + // stack picture + // unpack_frame + // [new interpreter frames ] (frames are skeletal but walkable) --2.14.1
Signature · 1 line
Ricardo Ribalda