kotlinx-lincheck icon indicating copy to clipboard operation
kotlinx-lincheck copied to clipboard

Fix hunging tests with throwing native calls on JVMs 20 and 21

Open zhelenskiy opened this issue 8 months ago • 1 comments

To find the tests, find occurrences of the issue number in the source code.

zhelenskiy avatar Mar 11 '25 03:03 zhelenskiy

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).

eupp avatar Mar 11 '25 23:03 eupp

Migrated to YT

eupp avatar Oct 06 '25 16:10 eupp