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

TestFlushableGZIPOutputStream failing with IndexOutOfBoundsException

    XMLWordPrintable

Details

    Backports

      Description

        8u JPRT test runs are frequently failing with the following error:

        java.lang.IndexOutOfBoundsException
        at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:151)
        at InflateIn_DeflateOut.TestFlushableGZIPOutputStream(InflateIn_DeflateOut.java:179)
        at InflateIn_DeflateOut.realMain(InflateIn_DeflateOut.java:311)
        at InflateIn_DeflateOut.main(InflateIn_DeflateOut.java:325)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226)
        at java.lang.Thread.run(Thread.java:748)
        java.lang.AssertionError: Some tests failed
        at InflateIn_DeflateOut.main(InflateIn_DeflateOut.java:327)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226)
        at java.lang.Thread.run(Thread.java:748)

        JavaTest Message: Test threw exception: java.lang.AssertionError
        JavaTest Message: shutting down test

        InflateIn_DeflateOut is not new but TestFlushableGZIPOutputStream was added pretty recently. I suspect an issue with the testcase itself. So far I have only seen it on ia32 and amd64 Linux. Not sure if this reproduces on JDK 10 or later versions.

        Attachments

          Issue Links

            Activity

              People

                coffeys Sean Coffey
                dbuck David Buck
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: