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

test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003/TestDescription.java fails

XMLWordPrintable

    • b24
    • generic
    • generic

        On AArch64, command to reproduce:
        $ make run-test TEST="./test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003/TestDescription.java"

        ......

        ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because "<local1>" is null
        REASON: User specified action: run main/othervm nsk.jdi.VirtualMachine.dispose.dispose003 -verbose -arch=${os.family}-${os.simpleArch} -waittime=5 -debugee.vmkind=java -transport.address=dynamic -debugee.vmkeys="${test.vm.opts} ${test.java.opts}"
        TIME: 0.407 seconds
        messages:
        command: main nsk.jdi.VirtualMachine.dispose.dispose003 -verbose -arch=linux-aarch64 -waittime=5 -debugee.vmkind=java -transport.address=dynamic -debugee.vmkeys="-Xmx768m -XX:MaxRAMPercentage=3.125 -Djava.io.tmpdir=/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/tmp -ea -esa "
        reason: User specified action: run main/othervm nsk.jdi.VirtualMachine.dispose.dispose003 -verbose -arch=${os.family}-${os.simpleArch} -waittime=5 -debugee.vmkind=java -transport.address=dynamic -debugee.vmkeys="${test.vm.opts} ${test.java.opts}"
        started: Thu Oct 06 10:17:40 CST 2022
        Mode: othervm [/othervm specified]
        finished: Thu Oct 06 10:17:41 CST 2022
        elapsed time (seconds): 0.407
        configuration:
        STDOUT:
        binder> VirtualMachineManager: version 20.0
        binder> Finding connector: default
        binder> LaunchingConnector:
        binder> name: com.sun.jdi.CommandLineLaunch
        binder> description: Launches target using Sun Java VM command line and attaches to it
        binder> transport: com.sun.tools.jdi.SunCommandLineLauncher$2@98aea6e
        binder> Connector arguments:
        binder> main=nsk.jdi.VirtualMachine.dispose.dispose003a -vbs -verbose -arch=linux-aarch64 -waittime=5 -debugee.vmkind=java -transport.address=dynamic -debugee.vmkeys="-Xmx768m -XX:MaxRAMPercentage=3.125 -Djava.io.tmpdir=/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/tmp -ea -esa " -pipe.port=38895
        binder> includevirtualthreads=y
        binder> quote=
        binder> home=/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/images/jdk
        binder> vmexec=java
        binder> suspend=true
        binder> options=-Xmx768m -XX:MaxRAMPercentage=3.125 -Djava.io.tmpdir=/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/tmp -ea -esa
        binder> Launching debugee
        binder> Waiting for VM initialized
        Initial VMStartEvent received: VMStartEvent in thread main
        --> debugger: nsk.jdi.VirtualMachine.dispose.dispose003a debuggee launched
        debugee.stderr> **> dispose003a: debuggee started!
        --> debugger: 'ready' recieved
        debugee.stderr> **> dispose003a: waiting for an instruction from the debugger ...

        ==> nsk/jdi/VirtualMachine/dispose/dispose003 TESTING BEGINS
        debugee.stderr> **> dispose003a: thread2 is created
        debugee.stderr> **> dispose003a: synchronized (waitnotifyObj) { enter
        debugee.stderr> **> dispose003a: before: test_thread.start()
        debugee.stderr> **> dispose003a: before: waitnotifyObj.wait();
        debugee.stderr> **> thread2: method 'run' enter
        debugee.stderr> **> thread2: entered into block: synchronized (waitnotifyObj)
        debugee.stderr> **> dispose003a: after: waitnotifyObj.wait();
        debugee.stderr> **> thread2: exited from block: synchronized (waitnotifyObj)

        ==> nsk/jdi/VirtualMachine/dispose/dispose003 new checkready: #0
        --> debugger: getting ThreadReference object
        --> debugger: suspending thread2
        --> debugger: vm.dispose()
        --> debugger: ......forcing the main thread to leave synchronized block
        --> debugger: Waiting for thread2 is not alive
        debugee.stderr> **> dispose003a: mainThread is out of: synchronized (lockingObject)
        debugee.stderr> **> thread2: entered into block: synchronized (lockingObject)
        debugee.stderr> **> thread2: exited from block: synchronized (lockingObject)
        debugee.stderr> **> thread2: call to the method 'runt1'
        debugee.stderr> **> thread2: method 'runt1': enter
        --> debugger: ......sending to the debuggee: 'check_alive'
        --> debugger: expected reply: 'not_alive'
        debugee.stderr> **> dispose003a: checking on: thread2.isAlive
        debugee.stderr> **> thread2: method 'runt1': body: i0 == 1
        debugee.stderr> **> thread2: method 'runt1': exit
        debugee.stderr> **> thread2: returned from the method 'runt1'
        debugee.stderr> **> thread2: method 'run' exit
        debugee.stderr> Exception in thread "main" java.lang.UnsupportedOperationException
        debugee.stderr> at java.base/java.lang.Thread.resume(Thread.java:1837)
        debugee.stderr> at nsk.jdi.VirtualMachine.dispose.dispose003a.main(dispose003a.java:139)
        STDERR:
        java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because "<local1>" is null
                at nsk.jdi.VirtualMachine.dispose.dispose003.lambda$runThis$0(dispose003.java:249)
                at jdk.test.lib.Utils.waitForCondition(Utils.java:590)
                at nsk.jdi.VirtualMachine.dispose.dispose003.runThis(dispose003.java:243)
                at nsk.jdi.VirtualMachine.dispose.dispose003.run(dispose003.java:77)
                at nsk.jdi.VirtualMachine.dispose.dispose003.main(dispose003.java:72)
                at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
                at java.base/java.lang.reflect.Method.invoke(Method.java:578)
                at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
                at java.base/java.lang.Thread.run(Thread.java:1591)

        JavaTest Message: Test threw exception: java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because "<local1>" is null
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because "<local1>" is null
        rerun:
        cd /home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/scratch/0 && \
        HOME=/home/realfyang \
        LANG=en_US.UTF-8 \
        LC_ALL=C \
        PATH=/bin:/usr/bin:/usr/sbin \
        TEST_IMAGE_DIR=/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/images/test \
        _JVM_DWARF_PATH=/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/images/symbols \
        CLASSPATH=/home/realfyang/openjdk-jdk/test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003:/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/classes/0/vmTestbase:/home/realfyang/openjdk-jdk/test/hotspot/jtreg/vmTestbase:/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/classes/0/test/lib:/home/realfyang/openjdk-jdk/test/lib:/home/realfyang/tools/jtreg-7+1/lib/jtreg.jar \
            /home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/images/jdk/bin/java \
                -Dtest.vm.opts='-Xmx768m -XX:MaxRAMPercentage=3.125 -Djava.io.tmpdir=/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/tmp -ea -esa' \
                -Dtest.tool.vm.opts='-J-Xmx768m -J-XX:MaxRAMPercentage=3.125 -J-Djava.io.tmpdir=/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/tmp -J-ea -J-esa' \
                -Dtest.compiler.opts= \
                -Dtest.java.opts= \
                -Dtest.jdk=/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/images/jdk \
                -Dcompile.jdk=/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/images/jdk \
                -Dtest.timeout.factor=4.0 \
                -Dtest.root=/home/realfyang/openjdk-jdk/test/hotspot/jtreg \
                -Dtest.name=vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003/TestDescription.java \
                -Dtest.file=/home/realfyang/openjdk-jdk/test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003/TestDescription.java \
                -Dtest.src=/home/realfyang/openjdk-jdk/test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003 \
                -Dtest.src.path=/home/realfyang/openjdk-jdk/test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003:/home/realfyang/openjdk-jdk/test/hotspot/jtreg/vmTestbase:/home/realfyang/openjdk-jdk/test/lib \
                -Dtest.classes=/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/classes/0/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003/TestDescription.d \
                -Dtest.class.path=/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/classes/0/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003/TestDescription.d:/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/classes/0/vmTestbase:/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/classes/0/test/lib \
                -Dtest.class.path.prefix=/home/realfyang/openjdk-jdk/test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003:/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/classes/0/vmTestbase:/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/classes/0/test/lib \
                -Xmx768m \
                -XX:MaxRAMPercentage=3.125 \
                -Djava.io.tmpdir=/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/tmp \
                -ea \
                -esa \
                com.sun.javatest.regtest.agent.MainWrapper /home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose003/TestDescription.d/main.0.jta -verbose -arch=linux-aarch64 -waittime=5 -debugee.vmkind=java -transport.address=dynamic '-debugee.vmkeys="-Xmx768m -XX:MaxRAMPercentage=3.125 -Djava.io.tmpdir=/home/realfyang/openjdk-jdk/build/linux-aarch64-server-release/test-support/jtreg_test_hotspot_jtreg_vmTestbase_nsk_jdi_VirtualMachine_dispose_dispose003_TestDescription_java/tmp -ea -esa' "

        TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because "<local1>" is null
        --------------------------------------------------
        Test results: failed: 1

              lmesnik Leonid Mesnik
              fyang Fei Yang
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: