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

illegal access to global field _jvmci_old_thread_counters by terminated thread causes crash

XMLWordPrintable

    • b29
    • x86_64
    • linux

        The following test failed in the JDK17 CI:

        runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java#id3

        Here's a snippet from the log file:

        ----------System.err:(29/1719)----------
        TEST FAILED: Error processing option JVMCICounterSize with valid value '-server -XX:+UseG1GC -XX:+EnableJVMCI -XX:JVMCICounterSize=1000000'! JVM output reports a fatal error. JVM exited with code null!
        stdout content[Java start-up!
        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # SIGSEGV (0xb) at pc=0x00007f015efff2a3, pid=26882, tid=26916
        #
        # JRE version: OpenJDK Runtime Environment (17.0+3) (build 17-ea+3-96)
        # Java VM: OpenJDK 64-Bit Server VM (17-ea+3-96, mixed mode, sharing, tiered, jvmci, compressed oops, g1 gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0xd842a3]]
        stderr content[]

        java.lang.RuntimeException: 1 tests failed! (Error processing option JVMCICounterSize with valid value '-server -XX:+UseG1GC -XX:+EnableJVMCI -XX:JVMCICounterSize=1000000'! JVM output reports a fatal error. JVM exited with code null!)
        : expected 1 to equal 0
        at jdk.test.lib.Asserts.fail(Asserts.java:594)
        at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
        at jdk.test.lib.Asserts.assertEQ(Asserts.java:178)
        at TestOptionsWithRanges.main(TestOptionsWithRanges.java:270)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
        at java.base/java.lang.Thread.run(Thread.java:831)

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

        result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 1 tests failed! (Error processing option JVMCICounterSize with valid value '-server -XX:+UseG1GC -XX:+EnableJVMCI -XX:JVMCICounterSize=1000000'! JVM output reports a fatal error. JVM exited with code null!) : expected 1 to equal 0

              dlong Dean Long
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: