-
Bug
-
Resolution: Unresolved
-
P3
-
21, 22
java/lang/ScopedValue/StressStackOverflow.java may be a bit unstable with some VM options, and also with JTREG_TEST_THREAD_FACTORY=Virtual runs. The test was excluded via an entry in ProblemList-Virtual.txt in the loom repo and we didn't bring over that exclude to the main line as part of JEP 446.
Here's one sighting on linux-aarch64 with JTREG_TEST_THREAD_FACTORY=Virtual and -XX:-TieredCompilation. Another failure mode is timeout.
----------messages:(6/303)----------
command: main -XX:-TieredCompilation StressStackOverflow
reason: User specified action: run main/othervm/timeout=300 -XX:-TieredCompilation StressStackOverflow
started: Thu Jun 08 05:35:41 UTC 2023
Mode: othervm [/othervm specified]
finished: Thu Jun 08 05:35:46 UTC 2023
elapsed time (seconds): 4.989
----------configuration:(0/0)----------
----------System.out:(0/0)----------
----------System.err:(27/1895)----------
java.lang.RuntimeException: java.lang.WrongThreadException: Current thread not owner
at StressStackOverflow.lambda$run$1(StressStackOverflow.java:208)
at java.base/jdk.internal.vm.ScopedValueContainer.runWithoutScope(ScopedValueContainer.java:112)
at java.base/jdk.internal.vm.ScopedValueContainer.run(ScopedValueContainer.java:98)
at java.base/java.lang.ScopedValue$Carrier.run(ScopedValue.java:507)
at StressStackOverflow.run(StressStackOverflow.java:170)
at StressStackOverflow.main(StressStackOverflow.java:221)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.VirtualThread.run(VirtualThread.java:311)
Suppressed: java.lang.WrongThreadException: Current thread not owner
at java.base/java.util.concurrent.StructuredTaskScope.ensureOwner(StructuredTaskScope.java:458)
at java.base/java.util.concurrent.StructuredTaskScope.close(StructuredTaskScope.java:822)
at StressStackOverflow.lambda$run$1(StressStackOverflow.java:171)
... 9 more
Caused by: java.lang.WrongThreadException: Current thread not owner
at java.base/java.util.concurrent.StructuredTaskScope.ensureOwner(StructuredTaskScope.java:458)
at java.base/java.util.concurrent.StructuredTaskScope.implJoin(StructuredTaskScope.java:613)
at java.base/java.util.concurrent.StructuredTaskScope.join(StructuredTaskScope.java:647)
at StressStackOverflow.lambda$run$1(StressStackOverflow.java:203)
... 9 more
JavaTest Message: Test threw exception: java.lang.RuntimeException: java.lang.WrongThreadException: Current thread not owner
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: java.lang.WrongThreadException: Current thread not owner
Here's one sighting on linux-aarch64 with JTREG_TEST_THREAD_FACTORY=Virtual and -XX:-TieredCompilation. Another failure mode is timeout.
----------messages:(6/303)----------
command: main -XX:-TieredCompilation StressStackOverflow
reason: User specified action: run main/othervm/timeout=300 -XX:-TieredCompilation StressStackOverflow
started: Thu Jun 08 05:35:41 UTC 2023
Mode: othervm [/othervm specified]
finished: Thu Jun 08 05:35:46 UTC 2023
elapsed time (seconds): 4.989
----------configuration:(0/0)----------
----------System.out:(0/0)----------
----------System.err:(27/1895)----------
java.lang.RuntimeException: java.lang.WrongThreadException: Current thread not owner
at StressStackOverflow.lambda$run$1(StressStackOverflow.java:208)
at java.base/jdk.internal.vm.ScopedValueContainer.runWithoutScope(ScopedValueContainer.java:112)
at java.base/jdk.internal.vm.ScopedValueContainer.run(ScopedValueContainer.java:98)
at java.base/java.lang.ScopedValue$Carrier.run(ScopedValue.java:507)
at StressStackOverflow.run(StressStackOverflow.java:170)
at StressStackOverflow.main(StressStackOverflow.java:221)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.VirtualThread.run(VirtualThread.java:311)
Suppressed: java.lang.WrongThreadException: Current thread not owner
at java.base/java.util.concurrent.StructuredTaskScope.ensureOwner(StructuredTaskScope.java:458)
at java.base/java.util.concurrent.StructuredTaskScope.close(StructuredTaskScope.java:822)
at StressStackOverflow.lambda$run$1(StressStackOverflow.java:171)
... 9 more
Caused by: java.lang.WrongThreadException: Current thread not owner
at java.base/java.util.concurrent.StructuredTaskScope.ensureOwner(StructuredTaskScope.java:458)
at java.base/java.util.concurrent.StructuredTaskScope.implJoin(StructuredTaskScope.java:613)
at java.base/java.util.concurrent.StructuredTaskScope.join(StructuredTaskScope.java:647)
at StressStackOverflow.lambda$run$1(StressStackOverflow.java:203)
... 9 more
JavaTest Message: Test threw exception: java.lang.RuntimeException: java.lang.WrongThreadException: Current thread not owner
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: java.lang.WrongThreadException: Current thread not owner
- relates to
-
JDK-8309592 jdk/java/lang/ScopedValue/StressStackOverflow.java fails on multiple platforms with timeouts
-
- Open
-
-
JDK-8308609 java/lang/ScopedValue/StressStackOverflow.java fails with "-XX:-VMContinuations"
-
- Closed
-