]> git.99rst.org Git - openwrt-packages.git/commit
fluent-bit: fix HTTP output SIGSEGV on too-small coroutine stack
authorAlexandru Ardelean <redacted>
Fri, 31 Jul 2026 09:38:33 +0000 (12:38 +0300)
committerAlexandru Ardelean <redacted>
Sat, 1 Aug 2026 18:19:47 +0000 (21:19 +0300)
commit927fc5ea54e81e1f2c472a40db6a1db9908bbe5e
tree589cebce5f08916c4e03bd06edd9637a5d6d126e
parentaad6a5a68c592969eff2352154f157c6e0382436
fluent-bit: fix HTTP output SIGSEGV on too-small coroutine stack

Each output flush runs in a coroutine whose stack was forced to 4096 (one
page). The HTTP output plugin overflows it and crashes with SIGSEGV after
the flush (issue #30113). Pin FLB_CORO_STACK_SIZE to upstream's own 64K
floor (FLB_CORO_STACK_SIZE_MIN_BYTE), which the musl-shrunk default undercuts.

Also add a regression test: drive the dummy input into the http output and
assert fluent-bit survives a few flush cycles instead of dying from a signal
(no listener needed -- the overflow happens while composing the request).

Fixes: https://github.com/openwrt/packages/issues/30113
Signed-off-by: Alexandru Ardelean <redacted>
admin/fluent-bit/Makefile
admin/fluent-bit/test.sh [new file with mode: 0755]
git clone https://git.99rst.org/PROJECT