Commit 51c5475
committed
fluent-bit: update to 5.0.8, adopt maintainer, fix musl startup segfault
Update 4.2.0 -> 5.0.8 and add me as maintainer.
fluent-bit segfaulted at startup on every musl target, failing CI for any
PR touching this feed (all versions). Upstream's C-TLS CMake probe calls the
glibc-only __tls_get_addr(), which fails to link on musl, so it falls back to
a pthread_key_t path that calls pthread_getspecific() before
pthread_key_create(). musl's getspecific is an unchecked self->tsd[key], so
the NULL TSD array is dereferenced; glibc bounds-checks and returns NULL,
hiding the bug there. Force -DFLB_HAVE_C_TLS:BOOL=On to keep the native
__thread path (fully supported on musl). Verified on x86_64: starts and
passes the generic test instead of crashing.
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>1 parent 3a1eab7 commit 51c5475
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | | - | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
0 commit comments