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

com/sun/jdi/CatchAllTest.java failed with "NullPointerException: Cannot invoke "lib.jdb.Jdb.log(String)" because "this.jdb" is null"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b28
    • CPU:
      x86_64
    • OS:
      os_x

      Description

      The following test failed in the JDK16 CI:

      com/sun/jdi/CatchAllTest.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(5/212)----------
      command: main CatchAllTest
      reason: User specified action: run main/othervm CatchAllTest
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules jdk.jdi
      elapsed time (seconds): 136.002
      ----------configuration:(3/35)----------
      Boot Layer
        add modules: jdk.jdi

      ----------System.out:(82/7810)----------
      Command line: [/mesos/work_dir/jib-master/install/jdk-16+26-1678/macosx-x64-debug.jdk/jdk-16/fastdebug/bin/java -cp /mesos/work_dir/slaves/47535081-0322-4d83-bb78-f7e11abb86d0-S22391/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3eb5bc66-6128-4839-8e64-6602dc12fa07/runs/dfd75ffa-0421-484f-9429-4cf66b65ae10/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/0/com/sun/jdi/CatchAllTest.d:/mesos/work_dir/jib-master/install/jdk-16+26-1678/src.full/open/test/jdk/com/sun/jdi:/mesos/work_dir/slaves/47535081-0322-4d83-bb78-f7e11abb86d0-S22391/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3eb5bc66-6128-4839-8e64-6602dc12fa07/runs/dfd75ffa-0421-484f-9429-4cf66b65ae10/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/0/test/lib:/mesos/work_dir/jib-master/install/jdk-16+26-1678/src.full/open/test/lib:/mesos/work_dir/jib-master/install/jtreg/5.1/b01/bundles/jtreg_bin-5.1.zip/jtreg/lib/javatest.jar:/mesos/work_dir/jib-master/install/jtreg/5.1/b01/bundles/jtreg_bin-5.1.zip/jtreg/lib/jtreg.jar -Xmx512m -XX:MaxRAMPercentage=12 -Djava.io.tmpdir=/mesos/work_dir/slaves/47535081-0322-4d83-bb78-f7e11abb86d0-S22391/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3eb5bc66-6128-4839-8e64-6602dc12fa07/runs/dfd75ffa-0421-484f-9429-4cf66b65ae10/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/tmp -ea -esa -server -agentlib:jdwp=transport=dt_socket,server=y,suspend=y CatchAllTestTarg ]
      [debuggee]:/mesos/work_dir/jib-master/install/jdk-16+26-1678/macosx-x64-debug.jdk/jdk-16/fastdebug/bin/java -cp /mesos/work_dir/slaves/47535081-0322-4d83-bb78-f7e11abb86d0-S22391/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3eb5bc66-6128-4839-8e64-6602dc12fa07/runs/dfd75ffa-0421-484f-9429-4cf66b65ae10/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/0/com/sun/jdi/CatchAllTest.d:/mesos/work_dir/jib-master/install/jdk-16+26-1678/src.full/open/test/jdk/com/sun/jdi:/mesos/work_dir/slaves/47535081-0322-4d83-bb78-f7e11abb86d0-S22391/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3eb5bc66-6128-4839-8e64-6602dc12fa07/runs/dfd75ffa-0421-484f-9429-4cf66b65ae10/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/0/test/lib:/mesos/work_dir/jib-master/install/jdk-16+26-1678/src.full/open/test/lib:/mesos/work_dir/jib-master/install/jtreg/5.1/b01/bundles/jtreg_bin-5.1.zip/jtreg/lib/javatest.jar:/mesos/work_dir/jib-master/install/jtreg/5.1/b01/bundles/jtreg_bin-5.1.zip/jtreg/lib/jtreg.jar -Xmx512m -XX:MaxRAMPercentage=12 -Djava.io.tmpdir=/mesos/work_dir/slaves/47535081-0322-4d83-bb78-f7e11abb86d0-S22391/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3eb5bc66-6128-4839-8e64-6602dc12fa07/runs/dfd75ffa-0421-484f-9429-4cf66b65ae10/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/tmp -ea -esa -server -agentlib:jdwp=transport=dt_socket,server=y,suspend=y CatchAllTestTarg
      Thread[Finalizer,8,system] stack: (length = 4)
      java.base@16-ea/java.lang.Object.wait(Native Method)
      java.base@16-ea/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155)
      java.base@16-ea/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:176)
      java.base@16-ea/java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:171)

      Thread[main,5,main] stack: (length = 4)
      java.base@16-ea/java.lang.Object.wait(Native Method)
      java.base@16-ea/java.lang.Thread.join(Thread.java:1301)
      java.base@16-ea/java.lang.Thread.join(Thread.java:1369)
      app//com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:74)

      Thread[Thread-2,5,MainThreadGroup] stack: (length = 12)
      java.base@16-ea/java.io.FileInputStream.readBytes(Native Method)
      java.base@16-ea/java.io.FileInputStream.read(FileInputStream.java:271)
      java.base@16-ea/java.io.BufferedInputStream.read1(BufferedInputStream.java:282)
      java.base@16-ea/java.io.BufferedInputStream.read(BufferedInputStream.java:343)
      java.base@16-ea/java.io.BufferedInputStream.fill(BufferedInputStream.java:244)
      java.base@16-ea/java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
      java.base@16-ea/java.io.BufferedInputStream.read(BufferedInputStream.java:343)
      java.base@16-ea/java.io.FilterInputStream.read(FilterInputStream.java:106)
      app//jdk.test.lib.process.StreamPumper.run(StreamPumper.java:109)
      java.base@16-ea/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      java.base@16-ea/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      java.base@16-ea/java.lang.Thread.run(Thread.java:831)

      Thread[Signal Dispatcher,9,system] stack: (length = 0)

      Thread[MainThread,5,MainThreadGroup] stack: (length = 15)
      java.base@16-ea/java.lang.Thread.dumpThreads(Native Method)
      java.base@16-ea/java.lang.Thread.getAllStackTraces(Thread.java:1647)
      app//jdk.test.lib.process.ProcessTools.startProcess(ProcessTools.java:223)
      app//lib.jdb.Debuggee.<init>(Debuggee.java:131)
      app//lib.jdb.Debuggee$Launcher.launch(Debuggee.java:118)
      app//lib.jdb.Debuggee$Launcher.launch(Debuggee.java:121)
      app//lib.jdb.JdbTest.setup(JdbTest.java:117)
      app//lib.jdb.JdbTest.run(JdbTest.java:94)
      app//CatchAllTest.main(CatchAllTest.java:52)
      java.base@16-ea/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      java.base@16-ea/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      java.base@16-ea/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      java.base@16-ea/java.lang.reflect.Method.invoke(Method.java:564)
      app//com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      java.base@16-ea/java.lang.Thread.run(Thread.java:831)

      Thread[Reference Handler,10,system] stack: (length = 3)
      java.base@16-ea/java.lang.ref.Reference.waitForReferencePendingList(Native Method)
      java.base@16-ea/java.lang.ref.Reference.processPendingReferences(Reference.java:241)
      java.base@16-ea/java.lang.ref.Reference$ReferenceHandler.run(Reference.java:213)

      Thread[Thread-1,5,MainThreadGroup] stack: (length = 12)
      java.base@16-ea/java.io.FileInputStream.readBytes(Native Method)
      java.base@16-ea/java.io.FileInputStream.read(FileInputStream.java:271)
      java.base@16-ea/java.io.BufferedInputStream.read1(BufferedInputStream.java:282)
      java.base@16-ea/java.io.BufferedInputStream.read(BufferedInputStream.java:343)
      java.base@16-ea/java.io.BufferedInputStream.fill(BufferedInputStream.java:244)
      java.base@16-ea/java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
      java.base@16-ea/java.io.BufferedInputStream.read(BufferedInputStream.java:343)
      java.base@16-ea/java.io.FilterInputStream.read(FilterInputStream.java:106)
      app//jdk.test.lib.process.StreamPumper.run(StreamPumper.java:109)
      java.base@16-ea/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      java.base@16-ea/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      java.base@16-ea/java.lang.Thread.run(Thread.java:831)

      Thread[Common-Cleaner,8,InnocuousThreadGroup] stack: (length = 5)
      java.base@16-ea/java.lang.Object.wait(Native Method)
      java.base@16-ea/java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:155)
      java.base@16-ea/jdk.internal.ref.CleanerImpl.run(CleanerImpl.java:140)
      java.base@16-ea/java.lang.Thread.run(Thread.java:831)
      java.base@16-ea/jdk.internal.misc.InnocuousThread.run(InnocuousThread.java:134)

      Thread[process reaper,10,system] stack: (length = 5)
      java.base@16-ea/java.lang.ProcessHandleImpl.waitForProcessExit0(Native Method)
      java.base@16-ea/java.lang.ProcessHandleImpl$1.run(ProcessHandleImpl.java:146)
      java.base@16-ea/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
      java.base@16-ea/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
      java.base@16-ea/java.lang.Thread.run(Thread.java:831)

      Thread[Notification Thread,9,system] stack: (length = 0)

      ----------System.err:(15/1039)----------
      Failed to start a process (thread dump follows)
      java.lang.NullPointerException: Cannot invoke "lib.jdb.Jdb.log(String)" because "this.jdb" is null
      at lib.jdb.JdbTest.run(JdbTest.java:97)
      at CatchAllTest.main(CatchAllTest.java:52)
      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:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)

      JavaTest Message: Test threw exception: java.lang.NullPointerException: Cannot invoke "lib.jdb.Jdb.log(String)" because "this.jdb" is null
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.NullPointerException: Cannot invoke "lib.jdb.Jdb.log(String)" because "this.jdb" is null
      ----------rerun:(39/6367)*----------

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              amenkov Alex Menkov
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: