|
3 | 3 |
|
4 | 4 | Also see <<breaking-changes-6.3>>.
|
5 | 5 |
|
| 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 | ++ |
6 | 52 | [[bug-6.3.1]]
|
7 | 53 | [float]
|
8 | 54 | === Bug fixes
|
|
0 commit comments