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

[TESTBUG] TestCheckedEnsureLocalCapacity.java fails intermittently

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b03
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        The following test failed due to an Exception on Linux-X64
        in the release config using jdk-12+25 bits:

        runtime/jni/checked/TestCheckedEnsureLocalCapacity.java

        The test only failed in 1 of 3 'release' bits runs so I'm
        tagging this bug as intermittent. It did not fail at all in the
        'fastdebug' or 'slowdebug' bits runs.

        Here is a snippet from the log file:

        ----------System.err:(61/4075)*----------
         stdout: [Warning: SIGHUP handler expected:libjvm.so+0xbeabf0 found:0x0000000000000001
        Signal Handlers:
        SIGSEGV: [libjvm.so+0xbea9f0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGBUS: [libjvm.so+0xbea9f0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGFPE: [libjvm.so+0xbea9f0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGPIPE: [libjvm.so+0xbea9f0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGXFSZ: [libjvm.so+0xbea9f0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGILL: [libjvm.so+0xbea9f0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGUSR2: [libjvm.so+0xbea890], sa_mask[0]=00100000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
        SIGHUP: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
        SIGINT: [libjvm.so+0xbeabf0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGTERM: [libjvm.so+0xbeabf0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGQUIT: [libjvm.so+0xbeabf0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        ensureCapacity: setting to 60
        reduceLocalCapacity: setting to 1
        ensureCapacity: creating 45 LocalRefs
        ensureCapacity: done
        ];
         stderr: []
         exitValue = 0

         stdout: [Warning: SIGHUP handler WARNING: JNI local refs: 33, exceeds capacity: 32
        expected:libjvm.so+0xbeabf0 at TestCheckedEnsureLocalCapacity.ensureCapacity(Native Method)
                at TestCheckedEnsureLocalCapacity.main(TestCheckedEnsureLocalCapacity.java:57)
          found:0x0000000000000001
        Signal Handlers:
        SIGSEGV: [libjvm.so+0xbea9f0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGBUS: [libjvm.so+0xbea9f0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGFPE: [libjvm.so+0xbea9f0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGPIPE: [libjvm.so+0xbea9f0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGXFSZ: [libjvm.so+0xbea9f0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGILL: [libjvm.so+0xbea9f0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGUSR2: [libjvm.so+0xbea890], sa_mask[0]=00100000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
        SIGHUP: SIG_IGN, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
        SIGINT: [libjvm.so+0xbeabf0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGTERM: [libjvm.so+0xbeabf0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        SIGQUIT: [libjvm.so+0xbeabf0], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
        ensureCapacity: setting to 1
        reduceLocalCapacity: setting to 1
        ensureCapacity: creating 45 LocalRefs
        ensureCapacity: done
        ];
         stderr: []
         exitValue = 0

        java.lang.RuntimeException: '^WARNING: JNI local refs: \\d++, exceeds capacity:' missing from stdout

                at jdk.test.lib.process.OutputAnalyzer.stdoutShouldMatch(OutputAnalyzer.java:288)
                at TestCheckedEnsureLocalCapacity.main(TestCheckedEnsureLocalCapacity.java:82)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.base/java.lang.reflect.Method.invoke(Method.java:567)
                at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
                at java.base/java.lang.Thread.run(Thread.java:835)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: '^WARNING: JNI local refs: \\d++, exceeds capacity:' missing from stdout

        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: '^WARNING: JNI local refs: \\d++, exceeds capacity:' missing from stdout
        ----------rerun:(29/3778)*----------


        The test failed because it could not find this pattern:

            '^WARNING: JNI local refs: \\d++, exceeds capacity:'

        The expected output is present:

        stdout: [Warning: SIGHUP handler WARNING: JNI local refs: 33, exceeds capacity: 32
        expected:libjvm.so+0xbeabf0 at

        but the expected line is embedded in the middle of another
        output line:

        Warning: SIGHUP handler expected:libjvm.so+0xbeabf0

        The test needed to be examined to see if the output lines
        can be made more distinct. If that's not possible, then the
        pattern should be adjusted to not require the expected
        output at the beginning of a line.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                hseigel Harold Seigel
                Reporter:
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: