GithubHelp home page GithubHelp logo

Comments (10)

tajila avatar tajila commented on May 24, 2024 1

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.

pshipton avatar pshipton commented on May 24, 2024

Grinder failed 100%

from openj9.

JasonFengJ9 avatar JasonFengJ9 commented on May 24, 2024

JDK22 x86-64_windows

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.

JasonFengJ9 avatar JasonFengJ9 commented on May 24, 2024

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.

JasonFengJ9 avatar JasonFengJ9 commented on May 24, 2024

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.

tajila avatar tajila commented on May 24, 2024

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.

tajila avatar tajila commented on May 24, 2024

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.

tajila avatar tajila commented on May 24, 2024

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.

pshipton avatar pshipton commented on May 24, 2024

Presumably the change is intentional? If so this becomes a test issue and the test needs to be updated.

from openj9.

tajila avatar tajila commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.