Skip to content

Commit 36d3ec7

Browse files
authored
Add known issue with AVX-512 and JDK 10 (#32135)
It appears that there is a bug in the C2 compiler in JDK 10 that impacts hardware that supports AVX-512. This commit adds this as a known issue to the 6.3 release notes, and provides a workaround.
1 parent d791096 commit 36d3ec7

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

docs/reference/release-notes/6.3.asciidoc

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,52 @@
33

44
Also see <<breaking-changes-6.3>>.
55

6+
[IMPORTANT]
7+
.Known issue with Elasticsearch 6.3.x on JDK 10
8+
======================================================
9+
10+
There appears to be a bug in JDK 10 impacting Elasticsearch 6.3.x (note that the
11+
official Docker images are based on JDK 10). The issue appears to impact the C2
12+
compiler on hardware that supports
13+
https://en.wikipedia.org/wiki/AVX-512[AVX-512 instructions] (e.g., Skylake-X
14+
CPUs). The issue manifests as a segmentation fault in Java code executing
15+
`org.apache.lucene.util.MergedIterator#pullTop`:
16+
17+
[source,txt]
18+
----
19+
#
20+
# A fatal error has been detected by the Java Runtime Environment:
21+
#
22+
# SIGSEGV (0xb) at pc=0x00007fc7ebc050eb, pid=1, tid=151
23+
#
24+
# JRE version: OpenJDK Runtime Environment (10.0.1+10) (build 10.0.1+10)
25+
# Java VM: OpenJDK 64-Bit Server VM (10.0.1+10, mixed mode, tiered, compressed oops, concurrent mark sweep gc, linux-amd64)
26+
# Problematic frame:
27+
# J 14088 c2 org.apache.lucene.util.MergedIterator.pullTop()V (135 bytes) @ 0x00007fc7ebc050eb [0x00007fc7ebc041e0+0x0000000000000f0b]
28+
----
29+
30+
or executing `org.apache.lucene.util.MergedIterator#pushTop`:
31+
32+
[source,txt]
33+
----
34+
#
35+
# A fatal error has been detected by the Java Runtime Environment:
36+
#
37+
# SIGSEGV (0xb) at pc=0x00007f8c43de5371, pid=1, tid=140
38+
#
39+
# JRE version: OpenJDK Runtime Environment (10.0.1+10) (build 10.0.1+10)
40+
# Java VM: OpenJDK 64-Bit Server VM (10.0.1+10, mixed mode, tiered, compressed oops, concurrent mark sweep gc, linux-amd64)
41+
# Problematic frame:
42+
# J 13039 c2 org.apache.lucene.util.MergedIterator.pushTop()V (92 bytes) @ 0x00007f8c43de5371 [0x00007f8c43de4c40+0x0000000000000731]
43+
----
44+
45+
A workaround is to disable the C2 compiler from using AVX-512 instructions via
46+
the <<jvm-options,JVM option>> `-XX:UseAVX=2`. This issue has been taken
47+
upstream to the JDK maintainers and the workaround will be necessary until a
48+
version of the JDK that is not prone to this issue is released. For additional
49+
background, see {issue}31425[#31425].
50+
51+
+
652
[[bug-6.3.1]]
753
[float]
854
=== Bug fixes

0 commit comments

Comments
 (0)