Comments (10)
Also, I dont think this issue is windows specific. It failed on Linux for me.
I think the issue is that in JDK22 instance main methods are turned on by default. The first time it tries to call main it fails, then it tries again 3 more times, it looks like that eats the pending exception.
from openj9.
Grinder failed 100%
from openj9.
13:43:34 variation: NoOptions
13:43:34 JVM_OPTIONS:
13:43:38 TESTING:
13:43:40 *** Starting test suite: LoadLibrary test intended for CMVC 201408 ***
13:43:40 Testing: LoadLibrary testcase with invalid paths specified in the library path list
13:43:40 Test start time: 2024/03/03 10:43:39 Pacific Standard Time
13:43:40 Running command: C:/Users/jenkins/workspace/Test_openjdk22_j9_sanity.functional_x86-64_windows_Personal_testList_1/jdkbinary/j2sdk-image\bin\java -Djava.library.path=".;'C:\\Program Files (x86)\\ibm\\tivoli';C:\\Users\\j9build;C:\\dev;." -cp C:/Users/jenkins/workspace/Test_openjdk22_j9_sanity.functional_x86-64_windows_Personal_testList_1/aqa-tests///..//jvmtest\functional\cmdLineTests\loadLibraryTest\loadLibraryTest.jar org.openj9.test.loadLibrary.TestLoadLibrary
13:43:40 Time spent starting: 140 milliseconds
13:43:43 Time spent executing: 2332 milliseconds
13:43:43 Test result: FAILED
13:43:43 Output from test:
13:43:43 >> Success condition was not found: [Output match: Not found in java.library.path]
13:43:43 >> Success condition was not found: [Output match: The specified network name is no longer available]
13:43:43 >> Success condition was not found: [Output match: java.lang.UnsatisfiedLinkError: Can't load abcdef]
13:43:43 >> Failure condition was not found: [Output match: The specified path is invalid]
13:43:43 >> Failure condition was not found: [Output match: Could not find or load main class Files]
13:43:43 >> Failure condition was not found: [Output match: Unhandled Exception]
13:43:43 >> Failure condition was not found: [Output match: corrupt]
13:43:43 >> Failure condition was not found: [Output match: Processing dump event]
13:43:43 >> Failure condition was not found: [Output match: JVM requested Java dump]
13:43:43 >> Failure condition was not found: [Output match: JVM requested Snap dump]
13:43:43
13:43:43
13:43:43 ---TEST RESULTS---
13:43:43 Number of PASSED tests: 0 out of 1
13:43:43 Number of FAILED tests: 1 out of 1
13:43:43
13:43:43 ---SUMMARY OF FAILED TESTS---
13:43:43 LoadLibrary testcase with invalid paths specified in the library path list
13:43:43 -----------------------------
13:43:43
13:43:43 -----------------------------------
13:43:43 cmdLineTester_loadLibraryTests_0_FAILED
from openj9.
JDK21 x86-64_windows passed
03:23:25 ===============================================
03:23:25 Running test cmdLineTester_loadLibraryTests_0 ...
03:23:25 ===============================================
03:23:25 cmdLineTester_loadLibraryTests_0 Start Time: Wed Feb 21 03:23:25 2024 Epoch Time (ms): 1708503805821
03:23:25 variation: NoOptions
03:23:26 JVM_OPTIONS:
03:23:26 TESTING:
03:23:27 *** Starting test suite: LoadLibrary test intended for CMVC 201408 ***
03:23:27 Testing: LoadLibrary testcase with invalid paths specified in the library path list
03:23:28 Test start time: 2024/02/21 03:23:27 Eastern Standard Time
03:23:28 Running command: C:/Users/jenkins/workspace/Test_openjdk21_j9_sanity.functional_x86-64_windows_Nightly_testList_1/jdkbinary/j2sdk-image\bin\java -Djava.library.path=".;'C:\\Program Files (x86)\\ibm\\tivoli';C:\\Users\\j9build;C:\\dev;." -cp C:/Users/jenkins/workspace/Test_openjdk21_j9_sanity.functional_x86-64_windows_Nightly_testList_1/aqa-tests///..//jvmtest\functional\cmdLineTests\loadLibraryTest\loadLibraryTest.jar org.openj9.test.loadLibrary.TestLoadLibrary
03:23:28 Time spent starting: 172 milliseconds
03:23:28 Match (success): Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load abcdef
03:23:28 Time spent executing: 1063 milliseconds
03:23:28 Test result: PASSED
03:23:28
03:23:28
03:23:28 ---TEST RESULTS---
03:23:28 Number of PASSED tests: 1 out of 1
03:23:28 Number of FAILED tests: 0 out of 1
03:23:28 -----------------------------------
03:23:28 cmdLineTester_loadLibraryTests_0_PASSED
from openj9.
JDK 8/11/17/21/22 personal build
JDK8 x86-64_windows cmdLineTester_loadLibraryTests_0_PASSED(win22x86-svl-rt5-1
)
JDK11 x86-64_windows cmdLineTester_loadLibraryTests_0_PASSED(win11x86-svl-rt8-1
)
JDK17 x86-64_windows cmdLineTester_loadLibraryTests_0_PASSED(win19x86-svl-rt5-1
)
JDK21 x86-64_windows cmdLineTester_loadLibraryTests_0_PASSED(win16x64rt-1-9
)
JDK22 x86-64_windows cmdLineTester_loadLibraryTests_0_FAILED(win11x86-rtp-rt5-1
)
This is a JDK22-specific issue.
from openj9.
Ive determined that in JDK22 the exception is thrown and the application is termitnated, but for some reason the exception trace isnt printed.
from openj9.
This test also failed with RI
openjdk version "23-beta" 2024-09-17
OpenJDK Runtime Environment Temurin-23+13-202403072022 (build 23-beta+13-ea)
OpenJDK 64-Bit Server VM Temurin-23+13-202403072022 (build 23-beta+13-ea, mixed mode, sharing)
from openj9.
I think the issue is the launcher code, it clears any exception after calling mainID = (*env)->GetStaticMethodID(env, mainClass, "main",
, so the static init failure remains hidden.
The JDK21 launcher code would check the exception and then print it. So this looks like a regression in openjdk code.
from openj9.
Presumably the change is intentional? If so this becomes a test issue and the test needs to be updated.
from openj9.
It may be a bug on their part. Either way, the test should be excluded on JDK22+ for the time being
from openj9.
Related Issues (20)
- Windows system testing, sha mismatch downloading dependent third party jars HOT 11
- The array operation caused OpenJ9 to report an incorrect Exception HOT 1
- ClassFormatError is not reported properly in OpenJ9 HOT 5
- functionality tests fail to compile on jdk21+ HOT 3
- An issue of OpenJ9-11 checking bytecode files for minor version HOT 5
- Thread tests that lead to incorrect results or blocking HOT 2
- The mis-compilation phenomenon occurring at LastOptIndex 148 under JIT Hot Level HOT 4
- OpenJ9-17 Incorrectly calculates the hashcode value for a String HOT 4
- ThreadRegressionTests WaitForAfterJoinWithTimeout, WaitForAfterInterruptInSleep invalid
- OpenJ9's optimization for array operations issue HOT 3
- The order of analysis is different for OpenJ9 and Hotspot HOT 2
- Placeholder for code temporarily disabled for Valhalla
- TR_EscapeAnalysis::fixupNode expects awrtbari Node to have a parent HOT 1
- testJitserverArguments_0_FAILED FAILURE: JITServer::StreamFailure: Connect failed: Connection refused HOT 4
- Liberty starts slower with Semeru 17.0.9 than Semeru 11
- Unexpected system GCs with Semeru 17.0.10 HOT 2
- jdk_lang_1_FAILED java/lang/Thread/virtual/stress/ParkALot.java#id0 timeout
- [zOS S390] 80 Load_Level_2.abbs.5mins.Mode112.5 Segmentation error vmState=0x000503ff HOT 3
- cmdLineTester_criu_nonPortableRestore Test Ghost File Limit -- negative, Success condition was not found HOT 1
- How to disable coredumps in Semeru JVM ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openj9.