Bug#811693: GCC 6 and OpenJDK

Andrew Hughes gnu.andrew at redhat.com
Tue Feb 9 19:55:47 UTC 2016


We've just hit the same issue with OpenJDK 8 and the GCC 6 build
now in Fedora rawhide. This error is down to the switch to a default
of C++ 2014. Changing back to the old default allows the build
to succeed.

However, there are other issues with optimisations in the product
builds of OpenJDK on GCC 6, causing an immediate crash.

The following at least gets the build to complete:

https://github.com/gnu-andrew/java-1.8.0-openjdk/commit/b2be771ef60191e6fa24bd7db5b815167ff95f6d

but only armv7hl is successful [0]. On x86_64 and i686 [1,2], the main
build crashes when compiling the simple Java application, TestCryptoLevel
(you can find this in the IcedTea repositories).
The debug build succeeds, so this is something related to optimisations in
GCC 6 which are only enabled in the product build. I've scaled down our
default build flags but to no avail.

+ export JAVA_HOME=/builddir/build/BUILD/java-1.8.0-openjdk-1.8.0.72-5.b15.fc24.x86_64/openjdk/build/jdk8.build/images/j2sdk-image
+ JAVA_HOME=/builddir/build/BUILD/java-1.8.0-openjdk-1.8.0.72-5.b15.fc24.x86_64/openjdk/build/jdk8.build/images/j2sdk-image
+ /builddir/build/BUILD/java-1.8.0-openjdk-1.8.0.72-5.b15.fc24.x86_64/openjdk/build/jdk8.build/images/j2sdk-image/bin/javac -d
 . /builddir/build/SOURCES/TestCryptoLevel.java
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f6b25ed736b, pid=5973, tid=140097488013056
#
# JRE version: OpenJDK Runtime Environment (8.0_72-b15) (build 1.8.0_72-b15)
# Java VM: OpenJDK 64-Bit Server VM (25.72-b15 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x88636b]  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:
# /builddir/build/BUILD/java-1.8.0-openjdk-1.8.0.72-5.b15.fc24.x86_64/hs_err_pid5973.log
[thread 140097475966720 also had an error]
[thread 140097474914048 also had an error]
[thread 140097473861376 also had an error]
[thread 140097477019392 also had an error]
[error occurred during error reporting , id 0xb]

[0] http://koji.fedoraproject.org/koji/taskinfo?taskID=12911780
[1] http://koji.fedoraproject.org/koji/taskinfo?taskID=12916611
[2] http://koji.fedoraproject.org/koji/taskinfo?taskID=12916617

-- 
Andrew :)

Senior Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

PGP Key: ed25519/35964222 (hkp://keys.gnupg.net)
Fingerprint = 5132 579D D154 0ED2 3E04  C5A0 CFDA 0F9B 3596 4222



More information about the pkg-java-maintainers mailing list