.NET 8 raises `System.AccessViolationException` when `Org.Apache.Kafka.Streams.KeyValue<K, V>` is retrieved from `Org.Apache.Kafka.Streams.State.KeyValueIterator<K, V>`
masesdevelopers opened this issue · comments
Describe the bug
Benchmark test under .NET 8 environment many times raises System.AccessViolationException
when Org.Apache.Kafka.Streams.KeyValue<K, V>
is retrieved from Org.Apache.Kafka.Streams.State.KeyValueIterator<K, V>
To Reproduce
Steps to reproduce the behavior:
- Compile KEFCore.Benchmark.Test
- Execute the test using .NET 8 version
- Wait the end and, if the issue is not raised, relaunch the test
- See an error like System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Expected behavior
Since in .NET 6 and .NET 7 the issue is not raised, the expectation is the same for .NET 8
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows 10
- .NET 8 version 8.0.1
- Version: latest release 1.1.0
Additional context
N/A
To be checked when masesgroup/KNet#345 will be closed
Try to use masesgroup/KNet#345 (comment) in the application.