-
Notifications
You must be signed in to change notification settings - Fork 197
Segmentation fault Serilog.Sinks.Elasticsearch version 9.0.0 with Elasticsearch version 7.17 on macOS #517
Comments
@maxim-kozlov Can you please try few additional things and look if there are additional logs on the machine, related to the "Segmantation fault" error?
|
We're seeing the same problem but only for ASP.NET applications, console applications work just fine. Versions tested:
I attached the crash report from one of my colleagues M1 MacBook Pro. |
Also catch seg.fault with [Serilog.Sinks.Elasticsearch 9.0.3] on M1 Pro (https://www.nuget.org/packages/Serilog.Sinks.Elasticsearch/9.0.3) If remove ElasticSearch section from config its works fine. |
I make some researches and found, that its runtime bug >.< When we load sink from appsettings its call specific extension method via reflection. In lasts updates new parameter was added: Idk why, but only 36 parameters is a max number that reflection call can handle in this combinations of parameters types, after adding more its crashed. I create extension method with 40 params of string/int and its works :) Its only specific for osx arm environment. Minimal example for reproduce:
Can we reduce params count somehow? |
Does this issue relate to a new feature or an existing bug?
What version of Serilog.Sinks.Elasticsearch is affected? Please list the related NuGet package.
Others NuGet packages.
What is the target framework and operating system? See target frameworks & net standard matrix.
Please describe the current behavior?
When using Serilog.Sinks.Elasticsearch 9.0.0 on macOS:
When using Serilog.Sinks.Elasticsearch 8.4.1 on macOS:
If the current behavior is a bug, please provide the steps to reproduce the issue and if possible a minimal demo of the problem
appsettings.json
docker-compose.yaml
The text was updated successfully, but these errors were encountered: