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

gc/logging/TestUnifiedLoggingSwitchStress.java failed with "NullPointerException: Cannot read field "next" because "x" is null"

XMLWordPrintable

    • gc
    • x86_64
    • linux

      The following test failed in the JDK17 CI with UT enabled:

      gc/logging/TestUnifiedLoggingSwitchStress.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(5/383)----------
      command: main -Xmx256M -Xms256M gc.logging.TestUnifiedLoggingSwitchStress 60
      reason: User specified action: run main/othervm -Xmx256M -Xms256M gc.logging.TestUnifiedLoggingSwitchStress 60
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.management,java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
      elapsed time (seconds): 31.576
      ----------configuration:(4/111)----------
      Boot Layer
        add modules: java.management java.base
        add exports: java.base/jdk.internal.misc ALL-UNNAMED

      ----------System.out:(2/168)----------
      For random generator using seed: -4062912699471591550
      To re-run test with same seed value please add "-Djdk.test.lib.random.seed=-4062912699471591550" to command line.
      ----------System.err:(7/524)----------
      java.lang.NullPointerException: Cannot read field "next" because "x" is null
      at java.base/java.util.LinkedList.node(LinkedList.java:576)
      at java.base/java.util.LinkedList.get(LinkedList.java:481)
      at gc.logging.MemoryStresser.lambda$new$3(TestUnifiedLoggingSwitchStress.java:125)
      at gc.logging.MemoryStresser.run(TestUnifiedLoggingSwitchStress.java:141)
      at java.base/java.lang.Thread.run(Thread.java:831)
      STATUS:Failed.`main' threw exception: java.lang.NullPointerException: Cannot read field "next" because "x" is null
      ----------rerun:(39/7981)*----------

            Unassigned Unassigned
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: