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

java/lang/instrument/NativeMethodPrefixApp.java failed due to missing intrinsic

XMLWordPrintable

      The following test failed in the JDK23 CI:

      java/lang/instrument/NativeMethodPrefixApp.java

      Here's a snippet from the log file:

      #section:driver
      ----------messages:(9/424)----------
      command: driver NativeMethodPrefixApp roleDriver
      reason: User specified action: run driver/timeout=240 NativeMethodPrefixApp roleDriver
      started: Thu Jun 06 07:20:31 BST 2024
      Mode: othervm [test requires --enable-preview]
      Additional options from @modules: --add-modules java.management,java.instrument
      Timeout information:
      --- Timeout information end.
      finished: Thu Jun 06 07:40:46 BST 2024
      elapsed time (seconds): 1214.547
      ----------configuration:(3/59)----------
      Boot Layer
        add modules: java.management java.instrument

      ----------System.out:(15/2760)----------
      creating agent jar
      Manifest is:
      Manifest-Version: 1.0
      Premain-Class: NativeMethodPrefixAgent
      Can-Retransform-Classes: true
      Can-Set-Native-Method-Prefix: true
      Boot-Class-Path: /System/Volumes/Data/mesos/work_dir/slaves/f8dfb4e7-ae2d-48ec-aec1-afff79404935-S19335/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7876d816-4070-4ec5-bff3-e78f4246aec1/runs/fd20a21c-9d99-4439-82ba-5a910a3488f6/testoutput/test-support/jtreg_open_test_jdk_jdk_instrument/classes/1/java/lang/instrument/NativeMethodPrefixApp.d/

      launching app, with javaagent jar: NativeMethodPrefixAgent.jar
      Command line: [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-23+26-2235/macosx-aarch64-debug.jdk/jdk-23/fastdebug/bin/java -cp /System/Volumes/Data/mesos/work_dir/slaves/f8dfb4e7-ae2d-48ec-aec1-afff79404935-S19335/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7876d816-4070-4ec5-bff3-e78f4246aec1/runs/fd20a21c-9d99-4439-82ba-5a910a3488f6/testoutput/test-support/jtreg_open_test_jdk_jdk_instrument/classes/1/java/lang/instrument/NativeMethodPrefixApp.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-23+26-2235/src.full/open/test/jdk/java/lang/instrument:/System/Volumes/Data/mesos/work_dir/slaves/f8dfb4e7-ae2d-48ec-aec1-afff79404935-S19335/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7876d816-4070-4ec5-bff3-e78f4246aec1/runs/fd20a21c-9d99-4439-82ba-5a910a3488f6/testoutput/test-support/jtreg_open_test_jdk_jdk_instrument/classes/1/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-23+26-2235/src.full/open/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jtreg.jar -Xmx768m -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk/22/36/bundles/macos-aarch64/jdk-22_macos-aarch64_bin.tar.gz/jdk-22.jdk/Contents/Home -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/f8dfb4e7-ae2d-48ec-aec1-afff79404935-S19335/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/7876d816-4070-4ec5-bff3-e78f4246aec1/runs/fd20a21c-9d99-4439-82ba-5a910a3488f6/testoutput/test-support/jtreg_open_test_jdk_jdk_instrument/tmp -ea -esa -Duse.JTREG_TEST_THREAD_FACTORY=Virtual -XX:-VerifyContinuations --enable-preview -javaagent:NativeMethodPrefixAgent.jar -Dtest.thread.factory=Virtual jdk.test.lib.process.ProcessTools Virtual NativeMethodPrefixApp ]
      [2024-06-06T06:20:32.228511Z] Gathering output for process 74641
      [2024-06-06T06:20:32.286884Z] Waiting for completion for process 74641
      Timeout signalled after 960 seconds
      [2024-06-06T06:36:33.085518Z] Waiting for completion finished for process 74641
      Output and diagnostic info for process 74641 was saved into 'pid-74641-output.log'
      ----------System.err:(842/43124)----------
       stdout: [Premain
      tr1: Retransforming java/lang/Module$ReflectionData
      tr0: Retransforming java/lang/Module$ReflectionData
      tr2: Loading java/lang/WeakPairMap
      tr1: Loading java/lang/WeakPairMap

      <snip>

      tr2: Loading java/util/zip/Checksum
      tr1: Loading java/util/zip/Checksum
      tr0: Loading java/util/zip/Checksum
      tr2: Loading java/util/zip/CRC32
      tr1: Loading java/util/zip/CRC32
      tr0: Loading java/util/zip/CRC32
      Method [java.util.zip.CRC32.wrapped_tr2_update(II)I] is annotated with @IntrinsicCandidate, but no compiler intrinsic is defined for the method. Exiting.
      ];
       stderr: [running app
      start
      Tracked #2: init
      Tracked #1: wrapped_tr2_init
      Tracked #0: wrapped_tr1_wrapped_tr2_init
      Tracked #2: getcwd
      Tracked #1: wrapped_tr2_getcwd
      Tracked #0: wrapped_tr1_wrapped_tr2_getcwd
      Tracked #2: getVersion0
      Tracked #1: wrapped_tr2_getVersion0
      Tracked #0: wrapped_tr1_wrapped_tr2_getVersion0
      Tracked #2: initOptionalSupportFields
      Tracked #1: wrapped_tr2_initOptionalSupportFields
      Tracked #0: wrapped_tr1_wrapped_tr2_initOptionalSupportFields
      Tracked #2: getNativeMap
      Tracked #1: wrapped_tr2_getNativeMap
      Tracked #0: wrapped_tr1_wrapped_tr2_getNativeMap
      Tracked #2: MATCHED -- getStartupTime
      Tracked #1: MATCHED -- wrapped_tr2_getStartupTime
      Tracked #0: MATCHED -- wrapped_tr1_wrapped_tr2_getStartupTime
      Oracle Corporation
      Tracked #2: getSystemTimeZoneID
      Tracked #1: wrapped_tr2_getSystemTimeZoneID
      Tracked #0: wrapped_tr1_wrapped_tr2_getSystemTimeZoneID
      ]
       exitValue = 1

      java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:521)
      at NativeMethodPrefixApp.launchApp(NativeMethodPrefixApp.java:100)
      at NativeMethodPrefixApp.main(NativeMethodPrefixApp.java:68)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.VirtualThread.run(VirtualThread.java:329)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
      ----------rerun:(44/7911)*----------

            jpai Jaikiran Pai
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: