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

java/math/BigInteger/largeMemory/SymmetricRangeTests.java fails with "RuntimeException: BigInteger.MAX_VALUE.or(BigInteger.MAX_VALUE).bitLength()=2147483647"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: External
    • Affects Version/s: 17
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      os_x

      Description

      The following test failed in the JDK17 CI:

      java/math/BigInteger/largeMemory/SymmetricRangeTests.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(4/235)----------
      command: main -Xmx8g -XX:+CompactStrings SymmetricRangeTests
      reason: User specified action: run main/timeout=180/othervm -Xmx8g -XX:+CompactStrings SymmetricRangeTests
      Mode: othervm [/othervm specified]
      elapsed time (seconds): 41.604
      ----------configuration:(0/0)----------
      ----------System.out:(21/592)----------
      Testing overflow in BigInteger.makePositive
      Testing Bug 8021204
      Testing overflow in BitSieve.sieveSingle
      Seed from RandomFactory = 2292305594291955283L
      Testing BigInteger.add
      Testing BigInteger.subtract
      Testing BigInteger.multiply
      Testing BigInteger.divide
      Testing BigInteger.divideAndRemainder
      Testing Bug 9005933
      Testing BigInteger.remainder
      Testing BigInteger.pow
      Testing BigInteger.gcd
      Testing BigInteger.abs
      Testing BigInteger.negate
      Testing BigInteger.mod
      Testing BigInteger.modPow
      Testing BigInteger.shiftLeft
      Testing BigInteger.shiftRight
      Testing BigInteger.and
      Testing BigInteger.or
      ----------System.err:(15/1079)----------
      java.lang.RuntimeException: BigInteger.MAX_VALUE.or(BigInteger.MAX_VALUE).bitLength()=2147483647
      at SymmetricRangeTests.check(SymmetricRangeTests.java:58)
      at SymmetricRangeTests.testOr(SymmetricRangeTests.java:323)
      at SymmetricRangeTests.main(SymmetricRangeTests.java:644)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: BigInteger.MAX_VALUE.or(BigInteger.MAX_VALUE).bitLength()=2147483647
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: BigInteger.MAX_VALUE.or(BigInteger.MAX_VALUE).bitLength()=2147483647
      ----------rerun:(37/7141)*----------

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bpb Brian Burkhalter
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: