Skip to content

5.0.6 Crash when receive http_input in windows2019 server docker container #11904

@cyuz

Description

@cyuz

Bug Report

Describe the bug
Bug found in _mk_event_del() at D:\a\fluent-bit\fluent-bit\lib\monkey\mk_core\mk_event_libevent.c:235

To Reproduce
pack 5.0.6 for windows server 2019

docker file

# escape=`
FROM mcr.microsoft.com/windows/servercore:ltsc2019

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

# Download and install Fluent Bit
RUN Invoke-WebRequest -Uri 'https://packages.fluentbit.io/windows/fluent-bit-5.0.6-win32.exe' -OutFile 'C:\fluent-bit-installer.exe'; `
    Start-Process -FilePath 'C:\fluent-bit-installer.exe' -ArgumentList '/S' -Wait; `
    Remove-Item -Path 'C:\fluent-bit-installer.exe' -Force

# Set environment variables
ENV FLUENT_BIT_HOME="C:\Program Files (x86)\fluent-bit"
ENV PATH="${PATH};C:\Program Files (x86)\fluent-bit\bin"

# Set working directory
WORKDIR "C:\Program Files (x86)\fluent-bit"

# Default configuration
COPY fluent-bit.conf conf/

# Expose port for monitoring
EXPOSE 2020
EXPOSE 9080

# Run Fluent Bit
ENTRYPOINT ["C:\\Program Files (x86)\\fluent-bit\\bin\\fluent-bit.exe"]
CMD ["-c", "C:\\Program Files (x86)\\fluent-bit\\conf\\fluent-bit.conf"]

docker-compose

version: '3.9'

services:
  fluent-bit:
    image: self-hosted/monitor/fluent-bit:windows-2019-5.0.6
    user: ContainerAdministrator
    command: ["C:\\Program Files (x86)\\fluent-bit\\bin\\fluent-bit.exe", "-c", "C:\\Program Files (x86)\\fluent-bit\\conf\\fluent-bit.yaml"]
    ports:
      - 9080:9080
    volumes:
      - ./conf:c:\Program Files (x86)\fluent-bit\conf
    restart: always

fluent-bit.yaml

pipeline:
  inputs:
    - name: http
      listen: 0.0.0.0
      port: 9080

  outputs:
    - name: stdout
      match: '*'

log

fluent-bit_1  | Fluent Bit v5.0.6
fluent-bit_1  | * Copyright (C) 2015-2026 The Fluent Bit Authors
fluent-bit_1  | * Fluent Bit is a CNCF graduated project under the Fluent organization
fluent-bit_1  | * https://fluentbit.io
fluent-bit_1  |
fluent-bit_1  | ______ _                  _    ______ _ _           _____  _____
fluent-bit_1  | |  ___| |                | |   | ___ (_) |         |  ___||  _  |
fluent-bit_1  | | |_  | |_   _  ___ _ __ | |_  | |_/ /_| |_  __   _|___ \ | |/' |
fluent-bit_1  | |  _| | | | | |/ _ \ '_ \| __| | ___ \ | __| \ \ / /   \ \|  /| |
fluent-bit_1  | | |   | | |_| |  __/ | | | |_  | |_/ / | |_   \ V //\__/ /\ |_/ /
fluent-bit_1  | \_|   |_|\__,_|\___|_| |_|\__| \____/|_|\__|   \_/ \____(_)\___/
fluent-bit_1  |
fluent-bit_1  |
fluent-bit_1  | [2026/06/03 11:48:57.357] [ info] [fluent bit] version=5.0.6, commit=7b3a43645d, pid=21328
fluent-bit_1  | [2026/06/03 11:48:57.365] [ info] [storage] ver=1.5.4, type=memory, sync=normal, checksum=off, max_chunks_up=128
fluent-bit_1  | [2026/06/03 11:48:57.365] [ info] [simd    ] disabled
fluent-bit_1  | [2026/06/03 11:48:57.365] [ info] [cmetrics] version=2.1.4
fluent-bit_1  | [2026/06/03 11:48:57.365] [ info] [ctraces ] version=0.7.1
fluent-bit_1  | [2026/06/03 11:48:57.366] [ info] [input:http:http.0] initializing
fluent-bit_1  | [2026/06/03 11:48:57.366] [ info] [input:http:http.0] storage_strategy='memory' (memory only)
fluent-bit_1  | [2026/06/03 11:48:57.366] [ info] [input:http:http.0] listening on 0.0.0.0:9080 with 1 worker
fluent-bit_1  | [2026/06/03 11:48:57.368] [ info] [sp] stream processor started
fluent-bit_1  | [2026/06/03 11:48:57.369] [ info] [output:stdout:stdout.0] worker #0 started
fluent-bit_1  | [2026/06/03 11:48:57.369] [ info] [engine] Shutdown Grace Period=5, Shutdown Input Grace Period=2
fluent-bit_1  | [2026/06/03 11:49:13] [  BUG !] Bug found in _mk_event_del() at D:\a\fluent-bit\fluent-bit\lib\monkey\mk_core\mk_event_libevent.c:235

post command

curl -d "{\"key1\":\"value1\",\"key2\":\"value2\"}" -XPOST -H "content-type: application/json" http://localhost:9080/test.tag

Expected behavior
output anything when receive post message

Screenshots

Your Environment
Windows docker in Windows server2019

  • Version used:
  • 5.0.6

**additional
I try install exe and zip directly, still have same issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions