kotlinx-lincheck
kotlinx-lincheck copied to clipboard
Fix hunging tests with throwing native calls on JVMs 20 and 21
To find the tests, find occurrences of the issue number in the source code.
Description of the issue.
If tests FailingRandomBytesTest are enabled, then the whole test run hungs on CI on JVMs 20 and 21 (not reproducible locally).
The FailingRandomBytesTest itself do not hung but pass normally. However, when they are run together with other tests, the later some other tests (e.g., LocalObjectEliminationTest or KotlinStdlibTransformationTest) hung.
From inspecting the logs, it looks like the hung occurs on attempt to instrument kotlin/collections/ArraysKt.
Interestingly, if after FailingRandomBytesTest no other test uses any methods from kotlin/collections/ArraysKt (and thus apparently does not trigger its instrumentation) then the tests pass.
It also looks like this problem is the same problem as reported in https://github.com/JetBrains/lincheck/issues/508 (requires further investigation to confirm this claim).
Migrated to YT