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

java/lang/Thread/jni/AttachCurrentThread/AttachTest.java#id1 failed with "RuntimeException: Test failed"

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 19
    • 19
    • core-libs
    • 19
    • b29
    • x86_64
    • linux

    Backports

      Description

        The following test failed in the JDK19 CI:

        java/lang/Thread/jni/AttachCurrentThread/AttachTest.java#id1

        Here's a snippet from the log file:

        #section:main
        ----------messages:(5/274)----------
        command: main AttachTest --enable-preview --enable-native-access=ALL-UNNAMED ImplicitAttach 1
        reason: User specified action: run main AttachTest --enable-preview --enable-native-access=ALL-UNNAMED ImplicitAttach 1
        Mode: agentvm
        Agent id: 307
        elapsed time (seconds): 38.026
        ----------configuration:(16/2053)----------
        Boot Layer
          class path: /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar
                      /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar
                      /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar
                      /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar
                      /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar
                      /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar
                      /opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar
          patch: java.base /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8763/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e2b6c9f-97f5-4dfd-874c-f4a97859fcf2/runs/bf95d698-c936-43da-a59f-ae950830bdbd/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/patches/java.base

        Test Layer
          class path: /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8763/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e2b6c9f-97f5-4dfd-874c-f4a97859fcf2/runs/bf95d698-c936-43da-a59f-ae950830bdbd/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/classes/4/java/lang/Thread/jni/AttachCurrentThread/AttachTest_id1.d
                      /opt/mach5/mesos/work_dir/jib-master/install/jdk-19+28-2110/src.full/open/test/jdk/java/lang/Thread/jni/AttachCurrentThread
                      /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8763/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e2b6c9f-97f5-4dfd-874c-f4a97859fcf2/runs/bf95d698-c936-43da-a59f-ae950830bdbd/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/classes/4/test/lib
                      /opt/mach5/mesos/work_dir/jib-master/install/jdk-19+28-2110/src.full/open/test/lib

        ----------rerun:(30/6037)*----------

        <snip>

        ----------System.out:(10/3125)----------
        Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-19+28-2110/linux-x64-debug.jdk/jdk-19/fastdebug/bin/java -cp /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8763/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e2b6c9f-97f5-4dfd-874c-f4a97859fcf2/runs/bf95d698-c936-43da-a59f-ae950830bdbd/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/classes/4/java/lang/Thread/jni/AttachCurrentThread/AttachTest_id1.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-19+28-2110/src.full/open/test/jdk/java/lang/Thread/jni/AttachCurrentThread:/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8763/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e2b6c9f-97f5-4dfd-874c-f4a97859fcf2/runs/bf95d698-c936-43da-a59f-ae950830bdbd/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/classes/4/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8763/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e2b6c9f-97f5-4dfd-874c-f4a97859fcf2/runs/bf95d698-c936-43da-a59f-ae950830bdbd/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/tmp -ea -esa -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation -XX:-UseCompressedOops -cp /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S8763/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2e2b6c9f-97f5-4dfd-874c-f4a97859fcf2/runs/bf95d698-c936-43da-a59f-ae950830bdbd/testoutput/test-support/jtreg_open_test_jdk_jdk_lang/classes/4/java/lang/Thread/jni/AttachCurrentThread/AttachTest_id1.d -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-19+28-2110/linux-x64-debug.test/jdk/jtreg/native --enable-preview --enable-native-access=ALL-UNNAMED ImplicitAttach 1 ]
        [2022-06-23T18:05:16.769697758Z] Gathering output for process 591805
        [2022-06-23T18:05:50.614112530Z] Waiting for completion for process 591805
        [2022-06-23T18:05:50.774330474Z] Waiting for completion finished for process 591805
        Output and diagnostic info for process 591805 was saved into 'pid-591805-output.log'
        Thread[#30,Thread-0,5,main]


        [2022-06-23T18:05:50.878509029Z] Waiting for completion for process 591805
        [2022-06-23T18:05:50.878684541Z] Waiting for completion finished for process 591805
        ----------System.err:(10/507)----------
        java.lang.RuntimeException: Test failed
        at AttachTest.main(AttachTest.java:68)
        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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:1589)

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

        result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed

        The "RuntimeException: Test failed" failure mode is not very helpful.

        I'm going to start this failure off in hotspot/runtime since my guess
        is that this is a JNI attach test failure.

        Attachments

          Issue Links

            Activity

              People

                alanb Alan Bateman
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: