masesgroup / KNet

KNet is a comprehensive .NET suite for Apache Kafka™ providing all features: Producer, Consumer, Admin, Streams, Connect, backends (ZooKeeper and Kafka).
https://knet.masesgroup.com/
Apache License 2.0
33 stars 6 forks source link

Check the wrong behavior of KNetCompactedReplicator #536

Closed masesdevelopers closed 2 weeks ago

masesdevelopers commented 2 weeks ago

After some runs using both last published version and last build version of JNet/KNet it is possible to highlight that:

  • Test fails always on Windows, i.e. windows-latest GitHub image
  • Few time fails the tests with KNetReplicator: an example is at https://github.com/masesgroup/KEFCore/actions/runs/9778745372/job/26996474265
  • Other failures happen when a JDK 17 is in use: most one with Zulu, but other one are reported too; the failures in general reports the following callstack (here the source job):
    
    The last pc belongs to native nmethod (printed below).
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    J 2983  java.lang.Class.getDeclaredMethods0(Z)[Ljava/lang/reflect/Method; java.base@17.0.10 (0 bytes) @ 0x00000292d69090e3 [0x00000292d69090a0+0x0000000000000043]
    J 1419 c1 java.lang.Class.privateGetDeclaredMethods(Z)[Ljava/lang/reflect/Method; java.base@17.0.10 (64 bytes) @ 0x00000292ceff01dc [0x00000292ceff0040+0x000000000000019c]
    j  java.lang.Class.getDeclaredMethods()[Ljava/lang/reflect/Method;+20 java.base@17.0.10
    v  ~StubRoutines::call_stub

siginfo: EXCEPTION_ACCESS_VIOLATION (0xc0000005), reading address 0xffffffffffffffff

which ends in the native call `getDeclaredMethods0` which accepts only a `boolean` parameter. So the expectation is that something is wrong at the hearth of the JVM itself.
The same

The last pc belongs to native nmethod (printed below). Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J 2971 java.lang.Class.getDeclaredMethods0(Z)[Ljava/lang/reflect/Method; java.base@17.0.11 (0 bytes) @ 0x0000022db91a5063 [0x0000022db91a5020+0x0000000000000043] J 1388 c1 java.lang.Class.privateGetDeclaredMethods(Z)[Ljava/lang/reflect/Method; java.base@17.0.11 (64 bytes) @ 0x0000022db188255c [0x0000022db18823c0+0x000000000000019c] j java.lang.Class.getDeclaredMethods()[Ljava/lang/reflect/Method;+20 java.base@17.0.11 v ~StubRoutines::call_stub

siginfo: EXCEPTION_ACCESS_VIOLATION (0xc0000005), reading address 0xffffffffffffffff


within a Corretto 17

Originally posted by @masesdevelopers in https://github.com/masesgroup/KEFCore/issues/261#issuecomment-2206749093

Use the info in the referenced issue.