Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8150280

jdk-9-ea+105 breaks MinimizeOperations.minimize()

    XMLWordPrintable

Details

    • x86_64
    • linux

    Description

      FULL PRODUCT VERSION :
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+105-2016-02-10-210515.javare.4433.nc)
      Java HotSpot(TM) 64-Bit Server VM (build 9-ea+105-2016-02-10-210515.javare.4433.nc, mixed mode)

      FULL OS VERSION :
      Linux beast 4.2.0-25-generic #30-Ubuntu SMP Mon Jan 18 12:31:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


      A DESCRIPTION OF THE PROBLEM :
      Since lucene upgraded to testing jdk-9-ea+105 we see regressions that only fail with this version. Prior EA releases did not have the problem so it was introduced fairly recently.

      So far, the failures appear as if integer arrays may have incorrect values (this is a test of our finite state machine)

      I've created an issue at lucene jira with my investigations so far: https://issues.apache.org/jira/browse/LUCENE-7032



      THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: No

      THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Yes

      REGRESSION. Last worked in version 9

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      git clone https://github.com/apache/lucene-solr.git
      cd lucene-solr
      git checkout 25931d36248d57e52847feee1a2ecd0be98954b6
      cd lucene/core
      ant test -Dtestcase=TestMinimize -Dtests.method="testBasic*" -Dtests.seed=5E1BF6106DCA9EC9 -Dargs="-XX:-TieredCompilation -Xbatch"

      Note: -verbose can be added to the 'ant test' command if you want to see additional debug information (such as exact commandline launched)

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      The test passes with other java versions.

      With jdk-9-ea+105 the test fails (a lucene bounds check fails):

         [junit4] ERROR 0.64s | TestMinimize.testBasic <<<
         [junit4] > Throwable #1: java.lang.IllegalArgumentException: source=3 is out of bounds (maxState is 2)
         [junit4] > at __randomizedtesting.SeedInfo.seed([5E1BF6106DCA9EC9:F5E1EB05B21618E7]:0)
         [junit4] > at org.apache.lucene.util.automaton.Automaton.addTransition(Automaton.java:165)
         [junit4] > at org.apache.lucene.util.automaton.MinimizationOperations.minimize(MinimizationOperations.java:245)
         [junit4] > at org.apache.lucene.util.automaton.RegExp.toAutomatonInternal(RegExp.java:537)
         [junit4] > at org.apache.lucene.util.automaton.RegExp.findLeaves(RegExp.java:617)
         [junit4] > at org.apach
      REPRODUCIBILITY :
      This bug can be reproduced always.

      Attachments

        Issue Links

          Activity

            People

              thartmann Tobias Hartmann
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: