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

java/lang/instrument/BootClassPath/BootClassPathTest.sh fails with "FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed"

    XMLWordPrintable

    Details

      Description

      The following test failed in the JDK18 CI:

      java/lang/instrument/BootClassPath/BootClassPathTest.sh

      Here's a snippet from the log file:

      #section:shell
      ----------messages:(3/142)----------
      command: shell BootClassPathTest.sh
      reason: User specified action: run shell/timeout=240 BootClassPathTest.sh
      elapsed time (seconds): 17.544
      ----------System.out:(14/1531)*----------
      COMPILEJAVA=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+13-659/macosx-x64-debug.jdk/jdk-18/fastdebug
      Creating manifest file...
      Env vars:
        LANG=null
        LC_ALL=C
        LC_CTYPE=null
      Created /System/Volumes/Data/mesos/work_dir/slaves/369e65c9-433d-40ff-b6a0-b4e65701097a-S2204/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/99495dd2-ba91-4795-b19f-2b2b5f25b724/runs/2c6114b7-3144-4cb8-a362-50f904d10eba/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/classes/1/java/lang/instrument/BootClassPath/BootClassPathTest.d/boot\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffdLietuvi\ufffd\ufffd\ufffd\ufffde\ufffd\ufffdtinaT\ufffd\ufffdrk\ufffd\ufffdeespa\ufffd\ufffdol\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd
      Building test classes...
      Creating agent jar file...
      added manifest
      adding: Agent.class(in = 1393) (out= 731)(deflated 47%)
      Running test...
      FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed
      Cleanup...
      ----------System.err:(17/1830)----------
      Exception in thread "main" java.lang.reflect.InvocationTargetException
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:491)
      at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:503)
      Caused by: java.lang.ClassNotFoundException: AgentSupport
      at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
      at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
      at java.base/java.lang.Class.forName0(Native Method)
      at java.base/java.lang.Class.forName(Class.java:375)
      at Agent.premain(Agent.java:36)
      ... 6 more
      *** java.lang.instrument ASSERTION FAILED ***: "result" with message agent load/premain call failed at /System/Volumes/Data/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S109179/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b7325ed7-6067-4497-823f-288ea8ef4db3/runs/90d9009d-09f5-4984-8177-3ff66fc4b45b/workspace/open/src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 422
      /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-18+13-659/src.full/open/test/jdk/java/lang/instrument/BootClassPath/BootClassPathTest.sh: line 86: 97423 Abort trap: 6 (core dumped) "${JAVA}" ${TESTVMOPTS} -javaagent:"${TESTCLASSES}"/Agent.jar -classpath "${TESTCLASSES}" DummyMain
      ----------rerun:(30/3806)*----------

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              naoto Naoto Sato
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: