JDK 19/20 CI intermittent failures / flaky test
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
Research direction
Start with com.sun.jna.CallbacksTest.testInvokeCallback at CallbacksTest.java:969 and review the linked CI runs for the JDK 19/20 failures. Reproduce the intermittent callback-thread and native function wrapper failure, then verify the test passes reliably on the affected JDK versions.
Written by the indexing model from the issue text.
Description
https://github.com/java-native-access/jna/actions/runs/5801959465/job/15727351939
https://github.com/java-native-access/jna/actions/runs/5875801992/job/15948144145?pr=1544
[junit] Testsuite: com.sun.jna.CallbacksTest
[junit] JNA: Can't attach native thread to VM for callback: -1 (check stacksize for callbacks)
[junit] Tests run: 53, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.508 sec
[junit]
[junit] Testcase: testInvokeCallback(com.sun.jna.CallbacksTest): FAILED
[junit] Existing native function wrapper should be reused expected same:<Proxy interface to native function@0x7f4d400093b0 (com.sun.jna.CallbacksTest$TestLibrary$Int32CallbackX)> was not:<Proxy interface to native function@0x7f4d400093b0 (com.sun.jna.CallbacksTest$TestLibrary$Int32CallbackX)>
[junit] junit.framework.AssertionFailedError: Existing native function wrapper should be reused expected same:<Proxy interface to native function@0x7f4d400093b0 (com.sun.jna.CallbacksTest$TestLibrary$Int32CallbackX)> was not:<Proxy interface to native function@0x7f4d400093b0 (com.sun.jna.CallbacksTest$TestLibrary$Int32CallbackX)>
[junit] at com.sun.jna.CallbacksTest.testInvokeCallback(CallbacksTest.java:969)
[junit] Test com.sun.jna.CallbacksTest FAILED
[junit] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
- Dominant language
- Java
- Stars
- 8.9k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from java-native-access/jna
-
Incorrect mapping of c.s.j.platform.unix.solaris.LibKstat.KstatCtlPossibly taken @dbwiddis claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
java-native-access/jna#1740 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 66/100
java-native-access/jna#1738 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
java-native-access/jna#1736 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
java-native-access/jna#1717 ·
-
Windows32Exception - The parameter is incorrectPossibly taken @marktech0813 claimed this 331 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
java-native-access/jna#1700 · 11 comments ·
All issues in java-native-access/jna
Similar issues
-
[Bug] AI unread message badge counts a batch of new bubbles as one messagePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
apache/rocketmq-dashboard#5784 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
PCL-Community/PCL-CE#3658 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Team/Identity Server Core Type/Improvement U2
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
wso2/product-is#28553 ·
Maintainers usually reply within 1 day
-
frontend
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Paul-Austin-Oswego-CSC480-HCI521/gift-app#116 ·
Maintainers usually reply within 2 days