adoptium / adoptium/aqa-tests

BootClassPathTest.sh test fails due to java.lang.ClassNotFoundException: AgentSupport on test-macstadium-macos1013-x64-1 and other macstadium hosts

Open
#3,041 0 comments 0 reactions 0 assignees View on GitHub
bug mac release triage
Dominant language
HTML
Stars
155
Forks
346
Avg merge
2d 9h
Merged PRs (30d)
36

Description

https://trss.adoptium.net/output/test?id=616f9188c6182d02178a6890

[2021-10-20T01:29:52.603Z] --------------------------------------------------
[2021-10-20T01:29:52.603Z] TEST: java/lang/instrument/BootClassPath/BootClassPathTest.sh
[2021-10-20T01:29:52.603Z] TEST JDK: /Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_0/openjdkbinary/j2sdk-image/Contents/Home/bin/..
[2021-10-20T01:29:52.603Z]
[2021-10-20T01:29:52.603Z] ACTION: shell -- Failed. Execution failed: exit code 134
[2021-10-20T01:29:52.603Z] REASON: User specified action: run shell/timeout=240 BootClassPathTest.sh
[2021-10-20T01:29:52.603Z] TIME: 5.127 seconds
[2021-10-20T01:29:52.603Z] messages:
[2021-10-20T01:29:52.603Z] command: shell BootClassPathTest.sh
[2021-10-20T01:29:52.603Z] reason: User specified action: run shell/timeout=240 BootClassPathTest.sh
[2021-10-20T01:29:52.603Z] elapsed time (seconds): 5.127
[2021-10-20T01:29:52.603Z] STDOUT:
[2021-10-20T01:29:52.603Z] COMPILEJAVA=/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_0/openjdkbinary/j2sdk-image/Contents/Home/bin/..
[2021-10-20T01:29:52.603Z] Creating manifest file...
[2021-10-20T01:29:52.603Z] Created /Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_0/aqa-tests/TKG/output_16346914568779/jdk_instrument_1/work/classes/1/java/lang/instrument/BootClassPath/bootالعربية中文中文русскийहिंदीελληνικάעברית日本語한국어LietuviųčeštinaTürkçeespañolไทย
[2021-10-20T01:29:52.603Z] Building test classes...
[2021-10-20T01:29:52.603Z] Creating agent jar file...
[2021-10-20T01:29:52.603Z] added manifest
[2021-10-20T01:29:52.603Z] adding: Agent.class(in = 1344) (out= 708)(deflated 47%)
[2021-10-20T01:29:52.603Z] Running test...
[2021-10-20T01:29:52.603Z] bootclasspath: /Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_0/openjdkbinary/j2sdk-image/Contents/Home/jre/lib/resources.jar:/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_0/openjdkbinary/j2sdk-image/Contents/Home/jre/lib/rt.jar:/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_0/openjdkbinary/j2sdk-image/Contents/Home/jre/lib/sunrsasign.jar:/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_0/openjdkbinary/j2sdk-image/Contents/Home/jre/lib/jsse.jar:/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_0/openjdkbinary/j2sdk-image/Contents/Home/jre/lib/jce.jar:/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_0/openjdkbinary/j2sdk-image/Contents/Home/jre/lib/charsets.jar:/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_0/openjdkbinary/j2sdk-image/Contents/Home/jre/lib/jfr.jar:/Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_0/openjdkbinary/j2sdk-image/Contents/Home/jre/classes
[2021-10-20T01:29:52.603Z] FATAL ERROR in native method: processing of -javaagent failed
[2021-10-20T01:29:52.603Z] Cleanup...
[2021-10-20T01:29:52.603Z] STDERR:
[2021-10-20T01:29:52.603Z] Exception in thread "main" java.lang.reflect.InvocationTargetException
[2021-10-20T01:29:52.603Z] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2021-10-20T01:29:52.603Z] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2021-10-20T01:29:52.603Z] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2021-10-20T01:29:52.603Z] at java.lang.reflect.Method.invoke(Method.java:498)
[2021-10-20T01:29:52.603Z] at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
[2021-10-20T01:29:52.603Z] at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
[2021-10-20T01:29:52.603Z] Caused by: java.lang.ClassNotFoundException: AgentSupport
[2021-10-20T01:29:52.603Z] at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
[2021-10-20T01:29:52.603Z] at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
[2021-10-20T01:29:52.603Z] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
[2021-10-20T01:29:52.603Z] at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
[2021-10-20T01:29:52.603Z] at java.lang.Class.forName0(Native Method)
[2021-10-20T01:29:52.603Z] at java.lang.Class.forName(Class.java:264)
[2021-10-20T01:29:52.603Z] at Agent.premain(Agent.java:39)
[2021-10-20T01:29:52.603Z] ... 6 more
[2021-10-20T01:29:52.603Z] /Users/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_mac_testList_0/aqa-tests/openjdk/openjdk-jdk/jdk/test/java/lang/instrument/BootClassPath/BootClassPathTest.sh: line 85: 34983 Abort trap: 6 "${JAVA}" ${TESTVMOPTS} -javaagent:"${TESTCLASSES}"/Agent.jar -classpath "${TESTCLASSES}" DummyMain
[2021-10-20T01:29:52.603Z] Unrecognized option: -J-ea
[2021-10-20T01:29:52.603Z] Error: Could not create the Java Virtual Machine.
[2021-10-20T01:29:52.603Z] Error: A fatal exception has occurred. Program will exit.

Contributor guide

Open the contributing guide

Research direction

Start with jdk/test/java/lang/instrument/BootClassPath/BootClassPathTest.sh, especially the command at line 85, and inspect Agent.java around Agent.premain line 39. Reproduce the failure on the affected macOS test host using the linked test output. Done means BootClassPathTest.sh completes without the AgentSupport ClassNotFoundException or the subsequent JVM startup error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.