openj9 icon indicating copy to clipboard operation
openj9 copied to clipboard

jcstress_BoundedSingleTest_0_FAILED NullPointerException: Cannot read field "sync" because "this" is null

Open JasonFengJ9 opened this issue 2 years ago • 14 comments

Failure link

From an internal build(paix823):

openjdk version "19.0.1" 2022-10-18
IBM Semeru Runtime Open Edition 19.0.1+10 (build 19.0.1+10)
Eclipse OpenJ9 VM 19.0.1+10 (build master-a2475ea96, JRE 19 AIX ppc64-64-Bit Compressed References 20221018_15 (JIT enabled, AOT enabled)
OpenJ9   - a2475ea96
OMR      - 7d8ea8b6b
JCL      - 5168276e58 based on jdk-19.0.1+10)

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

Optional info

Failure output (captured from console output)

[2023-01-01T02:13:10.943Z] variation: NoOptions
[2023-01-01T02:13:10.943Z] JVM_OPTIONS:  

[2023-01-01T02:16:44.483Z]     Unrecoverable error while running
[2023-01-01T02:16:44.483Z]     java.lang.NullPointerException: Cannot read field "sync" because "this" is null
[2023-01-01T02:16:44.483Z]     	at java.base/java.util.concurrent.CountDownLatch.countDown(CountDownLatch.java:290)
[2023-01-01T02:16:44.483Z]     	at org.openjdk.jcstress.tests.countdownlatch.racy.BoundedSingleTest.actor1(BoundedSingleTest.java:60)
[2023-01-01T02:16:44.483Z]     	at org.openjdk.jcstress.tests.countdownlatch.racy.BoundedSingleTest_jcstress.run_actor1(BoundedSingleTest_jcstress.java:256)
[2023-01-01T02:16:44.483Z]     	at org.openjdk.jcstress.tests.countdownlatch.racy.BoundedSingleTest_jcstress.task_actor1(BoundedSingleTest_jcstress.java:239)
[2023-01-01T02:16:44.483Z]     	at org.openjdk.jcstress.tests.countdownlatch.racy.BoundedSingleTest_jcstress.access$100(BoundedSingleTest_jcstress.java:19)
[2023-01-01T02:16:44.483Z]     	at org.openjdk.jcstress.tests.countdownlatch.racy.BoundedSingleTest_jcstress$6.internalRun(BoundedSingleTest_jcstress.java:156)
[2023-01-01T02:16:44.483Z]     	at org.openjdk.jcstress.infra.runners.CounterThread.run(CounterThread.java:38)

[2023-01-01T02:16:45.162Z] jcstress_BoundedSingleTest_0_FAILED

This is a new test added on Dec. 2022, and didn't pass before.

Similar failures: jcstress_UnboundedSingleTest_0_FAILED

Also occurred at JDK17

JasonFengJ9 avatar Jan 03 '23 21:01 JasonFengJ9

@JasonFengJ9 all the failures seem to be on AIX. Is the test running and passing on other platforms?

pshipton avatar Jan 03 '23 22:01 pshipton

all the failures seem to be on AIX. Is the test running and passing on other platforms?

Added AIX label, the test in question passed in other platforms.

JasonFengJ9 avatar Jan 04 '23 03:01 JasonFengJ9

@llxia fyi @JasonFengJ9 does this pass on OpenJDK?

pshipton avatar Jan 04 '23 16:01 pshipton

does this pass on OpenJDK?

13:07:04  openjdk version "19.0.1-beta" 2022-10-18
13:07:04  OpenJDK Runtime Environment Temurin-19+36-202210180349 (build 19.0.1-beta+36-202210180349)
13:07:04  OpenJDK 64-Bit Server VM Temurin-19+36-202210180349 (build 19.0.1-beta+36-202210180349, mixed mode)

5x grinder w/ RI all passed

Note: this is a temurin build on Oct. 2022, there are no newer JDK19 AIX nightly builds available.

10x grinder w/ latest JDK17 temurin nightly - all passed

14:05:23  openjdk version "17.0.6-beta" 2023-01-17
14:05:23  OpenJDK Runtime Environment Temurin-17.0.6+9-202301032339 (build 17.0.6-beta+9-202301032339)

JasonFengJ9 avatar Jan 04 '23 18:01 JasonFengJ9

I was just about to ask for 17 but I see it's been added to the previous comment.

pshipton avatar Jan 04 '23 19:01 pshipton

I see 17 Temurin passed as well.

pshipton avatar Jan 04 '23 20:01 pshipton

I don't know what component is at fault. @JasonFengJ9 can you try one more on OpenJ9 with -Xint pls.

pshipton avatar Jan 04 '23 20:01 pshipton

JDK17 -Xint 10x grinder - all passed

JasonFengJ9 avatar Jan 04 '23 20:01 JasonFengJ9

Moving out to 0.40.

@zl-wang : since this issue only appeared on AIX could you assign for investigation please?

0xdaryl avatar Mar 14 '23 12:03 0xdaryl

@midronij please take a look ...

zl-wang avatar Mar 14 '23 12:03 zl-wang

Moving to 0.41.

0xdaryl avatar Jun 05 '23 17:06 0xdaryl

@midronij, when you have the opportunity, may I ask you to provide an update on the investigation of this problem? I'll move this to the 0.43 release in the meanwhile.

hzongaro avatar Aug 22 '23 14:08 hzongaro

@hzongaro very sorry for the delay. Unfortunately, as I've been occupied with other work, I haven't had much chance to investigate this issue in earnest. If it's alright, I will pick this item back up again as soon as I'm able.

midronij avatar Aug 28 '23 14:08 midronij

@bhavanisn please take this over (at lower priority)

zl-wang avatar Nov 08 '23 18:11 zl-wang