summaryrefslogtreecommitdiffstats
path: root/recipes-core/icedtea/openjdk-7-03b147
diff options
context:
space:
mode:
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>2017-09-07 10:51:35 +0200
committerMaxin B. John <maxin.john@intel.com>2017-09-26 18:16:29 +0300
commit2a706cd2d656a203ecb83bef1c687703c969732e (patch)
treed82ee63b071532aa56e469476f974ece2295e659 /recipes-core/icedtea/openjdk-7-03b147
parent4a33f4c06f6fca3c8e7ff79f352996b3c07014cf (diff)
downloadmeta-java-2a706cd2d656a203ecb83bef1c687703c969732e.tar.gz
icedtea-native: Fix segmentation build during build
Without this patch, icedtea-native do_compile() results in a SIGSEGV when compiled with GCC7 Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: Maxin B. John <maxin.john@intel.com>
Diffstat (limited to 'recipes-core/icedtea/openjdk-7-03b147')
-rw-r--r--recipes-core/icedtea/openjdk-7-03b147/vframeArray_Fix_sigsegv.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/recipes-core/icedtea/openjdk-7-03b147/vframeArray_Fix_sigsegv.patch b/recipes-core/icedtea/openjdk-7-03b147/vframeArray_Fix_sigsegv.patch
new file mode 100644
index 0000000..68653e4
--- /dev/null
+++ b/recipes-core/icedtea/openjdk-7-03b147/vframeArray_Fix_sigsegv.patch
@@ -0,0 +1,60 @@
1Disable Optimization on vframeArray::unpack_to_stack
2
3GCC7 triggers a sigsegv while building:
4
5
6| 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 ....
7| 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
8| #
9| # A fatal error has been detected by the Java Runtime Environment:
10| #
11| # SIGSEGV (0xb) at pc=0x00007fad7906e868, pid=9747, tid=140383055484672
12| #
13| # JRE version: 7.0_03-b21
14| # Java VM: OpenJDK 64-Bit Server VM (22.0-b10 mixed mode linux-amd64 compressed oops)
15| # Derivative: IcedTea7 2.1.3
16| # Distribution: Custom build (Thu Sep 7 09:36:21 CEST 2017)
17| # Problematic frame:
18| # V [libjvm.so+0x78b868] vframeArray::unpack_to_stack(frame&, int, int)+0x88
19| #
20| # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
21| #
22| # An error report file with more information is saved as:
23| # /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
24| #
25| # If you would like to submit a bug report, please include
26| # instructions on how to reproduce the bug and visit:
27| # http://icedtea.classpath.org/bugzilla
28| #
29| Aborted
30
31
32Upstream-Status: Inappropriate
33
34Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
35diff --git a/openjdk-boot/hotspot/src/share/vm/runtime/vframeArray.cpp b/build/openjdk-boot/hotspot/src/share/vm/runtime/vframeArray.cpp
36index 52b080999224..81b6a09ea91a 100644
37--- a/openjdk-boot/hotspot/src/share/vm/runtime/vframeArray.cpp
38+++ b/openjdk-boot/hotspot/src/share/vm/runtime/vframeArray.cpp
39@@ -500,7 +500,7 @@ void vframeArray::fill_in(JavaThread* thread,
40 }
41 }
42
43-void vframeArray::unpack_to_stack(frame &unpack_frame, int exec_mode, int caller_actual_parameters) {
44+void __attribute__((optimize("O0"))) vframeArray::unpack_to_stack(frame &unpack_frame, int exec_mode, int caller_actual_parameters) {
45 // stack picture
46 // unpack_frame
47 // [new interpreter frames ] (frames are skeletal but walkable)
48diff --git a/openjdk/hotspot/src/share/vm/runtime/vframeArray.cpp b/build/openjdk/hotspot/src/share/vm/runtime/vframeArray.cpp
49index 52b080999224..81b6a09ea91a 100644
50--- a/openjdk/hotspot/src/share/vm/runtime/vframeArray.cpp
51+++ b/openjdk/hotspot/src/share/vm/runtime/vframeArray.cpp
52@@ -500,7 +500,7 @@ void vframeArray::fill_in(JavaThread* thread,
53 }
54 }
55
56-void vframeArray::unpack_to_stack(frame &unpack_frame, int exec_mode, int caller_actual_parameters) {
57+void __attribute__((optimize("O0"))) vframeArray::unpack_to_stack(frame &unpack_frame, int exec_mode, int caller_actual_parameters) {
58 // stack picture
59 // unpack_frame
60 // [new interpreter frames ] (frames are skeletal but walkable)