-
Bug
-
Resolution: Won't Fix
-
P4
-
9
-
ppc
-
linux
Steps to reproduce:
1. Build Zero variant OpenJDK (release type build) on Power 7 hardware and gcc version 4.8.2 20140120 (e.g. from RHEL 7.0)
$ JDK_TO_BUILD_WITH=/path/to/jdk-8
$ bash configure --with-boot-jdk="$JDK_TO_BUILD_WITH" \
--with-debug-level="release" --disable-zip-debug-info \
--enable-unlimited-crypto --with-zlib=system \
--with-giflib=system --with-stdc++lib=dynamic \
--with-num-cores=8 --with-jvm-variants=zero
$ make SCTP_WERROR= DEBUG_BINARIES=true ENABLE_FULL_DEBUG_SYMBOLS=0 POST_STRIP_CMD="" DISABLE_INTREE_EC=true LOG=trace images
2. Compile and run attached reproducer using the JDK as a result of 1:
$ javac *.java && java -cp . PPCZeroSegfaultReproducer 115
Actual results:
[...]
call 112
call 113
call 114
Segmentation fault (core dumped)
Expected results:
[...]
call 112
call 113
call 114
call 115
Stack overflow test PASSED!
The segfault is caused by miscompiled code using -O2 on Power 7.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63341
GCC version:
$ gcc -version
gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-16)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Current workaround:
Pass '--with-extra-cflags="-fno-tree-vectorize"' to configure in step 1.
1. Build Zero variant OpenJDK (release type build) on Power 7 hardware and gcc version 4.8.2 20140120 (e.g. from RHEL 7.0)
$ JDK_TO_BUILD_WITH=/path/to/jdk-8
$ bash configure --with-boot-jdk="$JDK_TO_BUILD_WITH" \
--with-debug-level="release" --disable-zip-debug-info \
--enable-unlimited-crypto --with-zlib=system \
--with-giflib=system --with-stdc++lib=dynamic \
--with-num-cores=8 --with-jvm-variants=zero
$ make SCTP_WERROR= DEBUG_BINARIES=true ENABLE_FULL_DEBUG_SYMBOLS=0 POST_STRIP_CMD="" DISABLE_INTREE_EC=true LOG=trace images
2. Compile and run attached reproducer using the JDK as a result of 1:
$ javac *.java && java -cp . PPCZeroSegfaultReproducer 115
Actual results:
[...]
call 112
call 113
call 114
Segmentation fault (core dumped)
Expected results:
[...]
call 112
call 113
call 114
call 115
Stack overflow test PASSED!
The segfault is caused by miscompiled code using -O2 on Power 7.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63341
GCC version:
$ gcc -version
gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-16)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Current workaround:
Pass '--with-extra-cflags="-fno-tree-vectorize"' to configure in step 1.
- relates to
-
JDK-8238281 Raise minimum gcc version needed to 5.0
-
- Resolved
-