Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SharedClassesAPI_0 JVMJ9TI001E Agent library sharedClasses.dll could not be opened (The specified module could not be found. ) #21029

Closed
JasonFengJ9 opened this issue Jan 27, 2025 · 9 comments

Comments

@JasonFengJ9
Copy link
Member

JasonFengJ9 commented Jan 27, 2025

Failure link

From internal Test_openjdk8_j9_extended.system_x86-64_windows_testList_2 (rtj-win25x86-rtp-test-alk22)

openjdk version "1.8.0_442"
IBM Semeru Runtime Open Edition (build 1.8.0_442-b06)
Eclipse OpenJ9 VM (build v0.49.0-release-3c3d179854, JRE 1.8.0 Windows Server 2025 amd64-64-Bit Compressed References 20250123_1160 (JIT enabled, AOT enabled)
OpenJ9   - 3c3d179854
OMR      - e49875871
JCL      - 61f83383b8 based on jdk8u442-b06)

Rerun in Grinder - Change TARGET to run only the failed test targets

Optional info

Failure output (captured from console output)

[2025-01-24T21:37:30.753Z] variation: Mode110
[2025-01-24T21:37:30.753Z] JVM_OPTIONS:  -Xjit -Xgcpolicy:gencon -Xnocompressedrefs 

[2025-01-24T21:39:22.902Z] STF 13:39:20.756 - +------ Step 65 - DefaultLocGrpAccessJVMTI: Verify caches using JVMTI
[2025-01-24T21:39:22.902Z] STF 13:39:20.756 - | Verify caches using JVMTI
[2025-01-24T21:39:22.902Z] STF 13:39:20.757 - |   TestName:            DefaultLocGrpAccessJVMTI
[2025-01-24T21:39:22.902Z] STF 13:39:20.757 - |   sharedClassesOption: -Xshareclasses:name=DefaultLocGrpAccessJVMTINoIterator,groupAccess
[2025-01-24T21:39:22.902Z] STF 13:39:20.757 - |   AgentOptions:        -agentpath:C:/Users/jenkins/workspace/Test_openjdk8_j9_extended.system_x86-64_windows_testList_2/jvmtest/system/openj9-systemtest/openj9.test.sharedClasses.jvmti/bin/native/win/sharedClasses.dll=expectedCacheCount=5,deleteCaches=true,cachePrefix=DefaultLocGrpAccessJVMTI
[2025-01-24T21:39:22.902Z] STF 13:39:20.757 - |
[2025-01-24T21:39:22.903Z] STF 13:39:20.758 - Running command: C:/Users/jenkins/workspace/Test_openjdk8_j9_extended.system_x86-64_windows_testList_2/jdkbinary/j2sdk-image/bin/java -Xshareclasses:name=DefaultLocGrpAccessJVMTINoIterator,groupAccess -agentpath:C:/Users/jenkins/workspace/Test_openjdk8_j9_extended.system_x86-64_windows_testList_2/jvmtest/system/openj9-systemtest/openj9.test.sharedClasses.jvmti/bin/native/win/sharedClasses.dll=expectedCacheCount=5,deleteCaches=true,cachePrefix=DefaultLocGrpAccessJVMTI -Xjit -Xgcpolicy:gencon -Xnocompressedrefs -Xdump:system:events=user -classpath C:\Users\jenkins\workspace\Test_openjdk8_j9_extended.system_x86-64_windows_testList_2\jvmtest\system\openj9-systemtest\openj9.stf.extensions\bin net.openj9.stf.sharedClasses.DummySleeper
[2025-01-24T21:39:22.903Z] STF 13:39:20.758 - Redirecting stderr to C:/Users/jenkins/workspace/Test_openjdk8_j9_extended.system_x86-64_windows_testList_2/aqa-tests/TKG/output_1737748684197/SharedClassesAPI_0/20250124-133732-SharedClassesAPI/results/65.JVMT.stderr
[2025-01-24T21:39:22.903Z] STF 13:39:20.758 - Redirecting stdout to C:/Users/jenkins/workspace/Test_openjdk8_j9_extended.system_x86-64_windows_testList_2/aqa-tests/TKG/output_1737748684197/SharedClassesAPI_0/20250124-133732-SharedClassesAPI/results/65.JVMT.stdout
[2025-01-24T21:39:22.903Z] STF 13:39:20.790 - Monitoring processes: JVMT
[2025-01-24T21:39:22.903Z] JVMT stderr JVMJ9TI001E Agent library C:/Users/jenkins/workspace/Test_openjdk8_j9_extended.system_x86-64_windows_testList_2/jvmtest/system/openj9-systemtest/openj9.test.sharedClasses.jvmti/bin/native/win/sharedClasses.dll could not be opened (The specified module could not be found. )
[2025-01-24T21:39:22.903Z] JVMT stderr JVMJ9VM015W Initialization error for library j9jvmti29(-3): JVMJ9VM009E J9VMDllMain failed
[2025-01-24T21:39:22.904Z] STF 13:39:21.609 - **FAILED** Process JVMT ended with exit code (1) and not the expected exit code/s (0)
[2025-01-24T21:39:22.904Z] STF 13:39:21.609 - Monitoring Report Summary:
[2025-01-24T21:39:22.904Z] STF 13:39:21.610 -   o Process JVMT ended with exit code (1) and not the expected exit code/s (0)
[2025-01-24T21:39:22.904Z] STF 13:39:21.610 - Killing processes: JVMT
[2025-01-24T21:39:22.904Z] STF 13:39:21.610 -   o Process JVMT pid 5736 is not running
[2025-01-24T21:39:22.904Z] **FAILED** at step 65 (DefaultLocGrpAccessJVMTI - Check Shared Classes Caches). Expected return value=0 Actual=1 at C:/Users/jenkins/workspace/Test_openjdk8_j9_extended.system_x86-64_windows_testList_2/aqa-tests/\TKG\output_1737748684197\SharedClassesAPI_0/20250124-133732-SharedClassesAPI/execute.pl line 2214.
[2025-01-24T21:39:22.904Z] STF 13:39:22.007 - **FAILED** execute script failed. Expected return value=0 Actual=1

[2025-01-24T21:39:30.763Z] SharedClassesAPI_0_FAILED

50x internal Grinder - passed
5x internal same machine Grinder - failed

@pshipton
Copy link
Member

@llxia pls take a look. Any ideas what is wrong? We should try to get the machine fixed.

@llxia
Copy link
Contributor

llxia commented Jan 28, 2025

This (rtj-win25x86-rtp-test-alk22) is a new Windows 2025 machine. It should not be used for regular testing. We suspected Visual Studio was not installed properly (For details, see issue)

@pshipton
Copy link
Member

pshipton commented Jan 28, 2025

I removed the ci.role.test label from the Windows 2025 machines (https://github.ibm.com/runtimes/infrastructure/issues/10289). Not sure if I should remove other labels as well (i.e. ci.role.test.displaymanual).

@AswathySK
Copy link
Contributor

AswathySK commented Jan 29, 2025

From my understanding the sharedClasses.dll is generated after running the vcvarsall.bat file so it sets path to the cl.exe.
From the output of 5x internal same machine Grinder I was not able to see the vcvarsall.bat file getting executed to set the path for cl.exe, how does the vcvarsall.bat file gets executed for this grinder?
Is a predefined path set in the test to run the batch file?

@AswathySK
Copy link
Contributor

AswathySK commented Jan 29, 2025

I will install a couple more c++ development tools for vs2022 and see if that helps.
Image

retriggered failed job: https://hyc-runtimes-jenkins.swg-devops.com/job/Grinder/47137/

@AswathySK
Copy link
Contributor

@llxia
Copy link
Contributor

llxia commented Jan 29, 2025

We will update STF to point to Visual Studio 2022. Amrutha will have a fix tomorrow.

@llxia
Copy link
Contributor

llxia commented Jan 30, 2025

PR adoptium/STF#144

@llxia
Copy link
Contributor

llxia commented Jan 31, 2025

PR is delivered. Close this issue.

@llxia llxia closed this as completed Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants