eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 721 forks source link

OpenJDK java/lang/invoke/VarHandles/VarHandleTestByteArrayAsChar ArrayIndexOutOfBoundsException: Index 1 out of bounds for length -1 #20106

Open pshipton opened 2 months ago

pshipton commented 2 months ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_ppc64_aix_Nightly_testList_2/268 - p8-java1-ibm04 jdk_lang_VarHandleTest_j9_1 java/lang/invoke/VarHandles/VarHandleTestByteArrayAsChar.java

00:52:03  test VarHandleTestByteArrayAsChar.testAccess(" VarHandle [ALIGNED, BIG_ENDIAN, READ_WRITE] -> byte[] [ALIGNED, BIG_ENDIAN, READ_WRITE] null array", VarHandleBaseByteArrayTest$VarHandleSourceAccessTestCase@5892e82c): failure
00:52:03  java.lang.AssertionError: Incorrect throwable thrown, java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length -1. Expected class java.lang.NullPointerException expected [true] but found [false]
00:52:03    at org.testng.Assert.fail(Assert.java:99)
00:52:03    at org.testng.Assert.failNotEquals(Assert.java:1037)
00:52:03    at org.testng.Assert.assertTrue(Assert.java:45)
00:52:03    at VarHandleBaseTest.checkWithThrowable(VarHandleBaseTest.java:148)
00:52:03    at VarHandleBaseTest.checkNPE(VarHandleBaseTest.java:129)
00:52:03    at VarHandleTestByteArrayAsChar.testArrayNPE(VarHandleTestByteArrayAsChar.java:247)
00:52:03    at VarHandleTestByteArrayAsChar.lambda$accessTestCaseProvider$7(VarHandleTestByteArrayAsChar.java:175)
00:52:03    at VarHandleBaseTest$AccessTestCase.testAccess(VarHandleBaseTest.java:420)
00:52:03    at VarHandleTestByteArrayAsChar.testAccess(VarHandleTestByteArrayAsChar.java:229)

...

00:52:03  test VarHandleTestByteArrayAsChar.testAccess(" VarHandle [ALIGNED, LITTLE_ENDIAN, READ_WRITE] -> byte[] [ALIGNED, BIG_ENDIAN, READ_WRITE] null array", VarHandleBaseByteArrayTest$VarHandleSourceAccessTestCase@ad7b28f4): failure
00:52:03  java.lang.AssertionError: Incorrect throwable thrown, java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length -1. Expected class java.lang.NullPointerException expected [true] but found [false]
00:52:03    at org.testng.Assert.fail(Assert.java:99)
00:52:03    at org.testng.Assert.failNotEquals(Assert.java:1037)
00:52:03    at org.testng.Assert.assertTrue(Assert.java:45)
00:52:03    at VarHandleBaseTest.checkWithThrowable(VarHandleBaseTest.java:148)
00:52:03    at VarHandleBaseTest.checkNPE(VarHandleBaseTest.java:129)
00:52:03    at VarHandleTestByteArrayAsChar.testArrayNPE(VarHandleTestByteArrayAsChar.java:247)
00:52:03    at VarHandleTestByteArrayAsChar.lambda$accessTestCaseProvider$7(VarHandleTestByteArrayAsChar.java:175)
00:52:03    at VarHandleBaseTest$AccessTestCase.testAccess(VarHandleBaseTest.java:420)
00:52:03    at VarHandleTestByteArrayAsChar.testAccess(VarHandleTestByteArrayAsChar.java:229)
pshipton commented 1 month ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_ppc64_aix_Nightly_testList_2/295 jdk_lang_VarHandleTest_j9_1 java/lang/invoke/VarHandles/VarHandleTestByteArrayAsChar.java

22:40:45  test VarHandleTestByteArrayAsChar.testAccess(" VarHandle [ALIGNED, BIG_ENDIAN, READ_WRITE] -> byte[] [ALIGNED, BIG_ENDIAN, READ_WRITE] null array", VarHandleBaseByteArrayTest$VarHandleSourceAccessTestCase@91879ac8): failure
22:40:45  java.lang.AssertionError: Incorrect throwable thrown, java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length -1. Expected class java.lang.NullPointerException expected [true] but found [false]
22:40:45    at org.testng.Assert.fail(Assert.java:99)
22:40:45    at org.testng.Assert.failNotEquals(Assert.java:1037)
22:40:45    at org.testng.Assert.assertTrue(Assert.java:45)
22:40:45    at VarHandleBaseTest.checkWithThrowable(VarHandleBaseTest.java:148)
22:40:45    at VarHandleBaseTest.checkNPE(VarHandleBaseTest.java:129)
22:40:45    at VarHandleTestByteArrayAsChar.testArrayNPE(VarHandleTestByteArrayAsChar.java:247)
22:40:45    at VarHandleTestByteArrayAsChar.lambda$accessTestCaseProvider$7(VarHandleTestByteArrayAsChar.java:175)
22:40:45    at VarHandleBaseTest$AccessTestCase.testAccess(VarHandleBaseTest.java:420)
22:40:45    at VarHandleTestByteArrayAsChar.testAccess(VarHandleTestByteArrayAsChar.java:229)
pshipton commented 1 week ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_ppc64_aix_OpenJDK17_testList_2/37/ jdk_lang_VarHandleTest_j9_1 java/lang/invoke/VarHandles/VarHandleTestByteArrayAsShort.java

06:21:14  test VarHandleTestByteArrayAsShort.testAccess(" VarHandle [ALIGNED, BIG_ENDIAN, READ_WRITE] -> byte[] [ALIGNED, BIG_ENDIAN, READ_WRITE] null array", VarHandleBaseByteArrayTest$VarHandleSourceAccessTestCase@faedbfee): failure
06:21:14  java.lang.AssertionError: Incorrect throwable thrown, java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length -1. Expected class java.lang.NullPointerException expected [true] but found [false]
06:21:14    at org.testng.Assert.fail(Assert.java:99)
06:21:14    at org.testng.Assert.failNotEquals(Assert.java:1037)
06:21:14    at org.testng.Assert.assertTrue(Assert.java:45)
06:21:14    at VarHandleBaseTest.checkWithThrowable(VarHandleBaseTest.java:148)
06:21:14    at VarHandleBaseTest.checkNPE(VarHandleBaseTest.java:129)
06:21:14    at VarHandleTestByteArrayAsShort.testArrayNPE(VarHandleTestByteArrayAsShort.java:247)
06:21:14    at VarHandleTestByteArrayAsShort.lambda$accessTestCaseProvider$7(VarHandleTestByteArrayAsShort.java:175)
06:21:14    at VarHandleBaseTest$AccessTestCase.testAccess(VarHandleBaseTest.java:420)
06:21:14    at VarHandleTestByteArrayAsShort.testAccess(VarHandleTestByteArrayAsShort.java:229)
pshipton commented 1 week ago

https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_ppc64_aix_Nightly_testList_2/317/ jdk_lang_VarHandleTest_j9_1 java/lang/invoke/VarHandles/VarHandleTestByteArrayAsDouble.java

22:54:39  test VarHandleTestByteArrayAsDouble.testAccess(" VarHandle [ALIGNED, LITTLE_ENDIAN, READ_WRITE] -> byte[] [ALIGNED, BIG_ENDIAN, READ_WRITE] null array", VarHandleBaseByteArrayTest$VarHandleSourceAccessTestCase@65b6167b): failure
22:54:39  java.lang.AssertionError: Incorrect throwable thrown, java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length -7. Expected class java.lang.NullPointerException expected [true] but found [false]
22:54:39    at org.testng.Assert.fail(Assert.java:99)
22:54:39    at org.testng.Assert.failNotEquals(Assert.java:1037)
22:54:39    at org.testng.Assert.assertTrue(Assert.java:45)
22:54:39    at VarHandleBaseTest.checkWithThrowable(VarHandleBaseTest.java:148)
22:54:39    at VarHandleBaseTest.checkNPE(VarHandleBaseTest.java:129)
22:54:39    at VarHandleTestByteArrayAsDouble.testArrayNPE(VarHandleTestByteArrayAsDouble.java:247)
22:54:39    at VarHandleTestByteArrayAsDouble.lambda$accessTestCaseProvider$7(VarHandleTestByteArrayAsDouble.java:175)