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

    • Icon: Bug Bug
    • Resolution: External
    • Icon: P2 P2
    • tbd
    • 17
    • core-libs
    • x86_64
    • os_x

      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)*----------

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

              Created:
              Updated:
              Resolved: