A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/confluentinc/confluent-kafka-dotnet/issues/2084 below:

ProduceAsync segmentation fault on a specific produce configuration · Issue #2084 · confluentinc/confluent-kafka-dotnet · GitHub

Description

ProduceAsync with certain lengths of ProducerConfig.ClientId and TopicName strings leads to an invalid memory access and a segmentation fault.

How to reproduce
var message = "1";

var bootstrapServers = "<your bootstrap servers>";

var topicName = new String('a', 69);
var clientId = new String('a', 239);

var config = new ProducerConfig
{
	BootstrapServers = bootstrapServers,
	ClientId = clientId,
};

var builder = new ProducerBuilder<string, string>(config);
var producer = builder.Build();

await producer.ProduceAsync(topicName, new Message<string, string>()
{
	Value = message
});

You can reproduce it with confluent.kafka nuget versions 2.2.0 and 2.1.1.
It can't be reproduced with confluent.kafka nuget version 1.9.3.

Apache Kafka 2.8.1

It can be reproduced on any OS afaik.

Checklist

Please provide the following information:

korchak-aleksandr, AlexShchuka, strayker1206, NikitaMatveevMDB, ivolginD and 7 more


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4