JDK-8078666 : JVM fastdebug build compiled with GCC 5 asserts with "widen increases"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8u40,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2015-04-27
  • Updated: 2018-11-13
  • Resolved: 2015-04-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 JDK 9 Other
7u211Fixed 8u60Fixed 9 b64Fixed openjdk7uFixed
Description
A fastdebug JVM build with GCC version 5 asserts in phaseX.cpp:1538 with:
assert(t0->isa_int()->_widen <= t->isa_int()->_widen) failed: widen increases

Note that a current fastdebug build of the hs-rt forest compiles hotspot with "-O3 -O0". Not sure why. In order to reproduce the issue, one needs to build hotspot with -DASSERT and -O3 (no -O0).

Then the reproducer in order to trigger the assertion is compiling "HelloWorld.java":
./build/linux-x86_64-normal-server-fastdebug/images/jdk/bin/javac -d . HelloWorld.java
Comments
ILW = HLM = P3 Impact: High - can't build Likelihood: low - uncommon version to use Workaround: medium - use a different version but that may not be feasible depending on the environment
11-06-2015

Review thread: http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2015-April/017759.html
28-04-2015

We've discovered this issue in downstream Fedora. Related bug is: https://bugzilla.redhat.com/show_bug.cgi?id=1208369 I've reproduced this with the latest F22 GCC 5 build. $ gcc --version gcc (GCC) 5.1.1 20150422 (Red Hat 5.1.1-1) Copyright (C) 2015 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.
27-04-2015