JDK-8086061 : Crash with "assert(VM_Version::supports_sse4_1()) failed" when "-Xcomp -XX:+UseSSE42Intrinsics" is set
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8u45,9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • CPU: x86_64
  • Submitted: 2015-06-09
  • Updated: 2016-05-31
  • Resolved: 2016-05-31
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 9
9Resolved
Related Reports
Duplicate :  
Description
JDK 9-fastdebug b66 hit assertion when ran simple HelloWorld with "-Xcomp -XX:+UseSSE42Intrinsics" on Linux-x64 platform under VirtualBox.

Running next command give following result(hs_err_pid22139.log and replay_pid22139.log are attached): 
java -Xcomp -XX:+UseSSE42Intrinsics HelloWorld 
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/assembler_x86.cpp:3108
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/HUDSON/workspace/9-2-build-linux-amd64/jdk9/2755/hotspot/src/cpu/x86/vm/assembler_x86.cpp:3108), pid=22139, tid=0x00007f7304100700
#  assert(VM_Version::supports_sse4_1()) failed: 
#
# JRE version: Java(TM) SE Runtime Environment (9.0-b66) (build 1.9.0-ea-fastdebug-b66)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.9.0-ea-fastdebug-b66 compiled mode linux-amd64 compressed oops)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c" (or dumping to /home/dmitry/bundles/jdk9/b66/fastdebug/bin/core.22139)
#
# An error report file with more information is saved as:
# /home/dmitry/bundles/jdk9/b66/fastdebug/bin/hs_err_pid22139.log
...

JDK 8u45-fastdebug also affected.
Comments
I can reproduce with latest JDK 8u and with JDK 9 until b96 using java -Xcomp -XX:UseSSE=3 -XX:+UseSSE42Intrinsics The problem is that it's possible to enable UseSSE42Intrinsics although the platform does not support SSE4.2 or UseSSE is set to < 4. This was fixed in JDK 9 b96 by JDK-8143208. Closing as duplicate.
31-05-2016

ILW=Assert in flag check, in start up when forcing sse42 on unsupported HW, (dont force sse42)=MLH=P4 Fix 9 (Too late for 8u60)
15-06-2015