masesgroup / KEFCore

Entity Framework Core provider for Apache Kafka

Home Page:https://kefcore.masesgroup.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Compile KEFCore.Benchmark.Test
  2. Execute the test using .NET 8 version
  3. Wait the end and, if the issue is not raised, relaunch the test
  4. 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