JDK-8240676 : Meet not symmetric failure when running lucene on jdk8
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8,11,15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-03-06
  • Updated: 2020-08-21
  • Resolved: 2020-03-27
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 11 JDK 15 Other
11.0.10-oracleFixed 15 b17Fixed openjdk8u272Fixed
Description
During our testing we saw:

    [junit4] === Meet Not Symmetric ===
    [junit4] t   =                   stable:narrowoop: org/apache/lucene/util/fst/Builder$Arc:TopPTR *,iid=top (inline_depth=InlineDepthTop)[int:max..0]:AnyNull:exact *,iid=top (inline_depth=-8)
    [junit4] this=                   stable:narrowoop: java/lang/Object:TopPTR *,iid=top (inline_depth=InlineDepthTop)[int:0]<ciObjArray length=0 type=<ciObjArrayKlass name=[Ljava/lang/Object; ident=885 address=0x00007f227840b8f0> ident=886 SCAVENGABLE
 address=0x00007f227840b9a0> *,iid=top (inline_depth=InlineDepthTop)
    [junit4] mt=(t meet this)=       stable:narrowoop: org/apache/lucene/util/fst/Builder$Arc:TopPTR *,iid=top (inline_depth=InlineDepthTop)[int:0]:NotNull *
    [junit4] t_dual=                 narrowoop: org/apache/lucene/util/fst/Builder$Arc *[int:>=0]:NotNull:exact * (inline_depth=8)
    [junit4] this_dual=              narrowoop: java/lang/Object *[int:0]<ciObjArray length=0 type=<ciObjArrayKlass name=[Ljava/lang/Object; ident=885 address=0x00007f227840b8f0> ident=886 SCAVENGABLE address=0x00007f227840b9a0> *
    [junit4] mt_dual=                narrowoop: org/apache/lucene/util/fst/Builder$Arc *[int:0]:AnyNull *,iid=top (inline_depth=InlineDepthTop)
    [junit4] mt_dual meet t_dual=    narrowoop: org/apache/lucene/util/fst/Builder$Arc *[int:>=0]:NotNull:exact * (inline_depth=8)
    [junit4] mt_dual meet this_dual= narrowoop: java/lang/Object *[int:0]:NotNull *
    [junit4] # To suppress the following error report, specify this argument
    [junit4] # after -XX: or in .hotspotrc:  SuppressErrorAt=/type.cpp:713
    [junit4] #
    [junit4] # A fatal error has been detected by the Java Runtime Environment:
    [junit4] #
    [junit4] #  Internal Error (/mnt/ramdisk/openjdk/hotspot/src/share/vm/opto/type.cpp:713), pid=18197, tid=0x00007f22a55e3700
    [junit4] #  fatal error: meet not symmetric

Comments
8u Fix Request Backporting this patch eliminates a c2 crash. Patch does not apply cleanly to 8u and requires adjustments. 8u RFR: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-July/012257.html
17-08-2020

11u Fix Request Backporting this patch eliminates a c2 crash. Patch does not apply cleanly to 11u and requires adjustments. 11u RFR: https://mail.openjdk.java.net/pipermail/jdk-updates-dev/2020-June/003350.html
26-06-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/6ccf082f50d4 User: roland Date: 2020-03-27 09:22:36 +0000
27-03-2020

By mistake, sorry. Linked that one to the wrong issue.
11-03-2020

[~shade], why did you link this to JDK-8238691?
10-03-2020

ILW = Type system assert during C2 compilation, very intermittent with Lucene, no known workaround = MMH = P3
10-03-2020