fluent / fluent-bit

Fast and Lightweight Logs and Metrics processor for Linux, BSD, OSX and Windows
https://fluentbit.io
Apache License 2.0
5.85k stars 1.58k forks source link

opensearch output plugin broken on arm32v7 docker images since v3.0.0 #8940

Closed ideaship closed 1 month ago

ideaship commented 4 months ago

Bug Report

Describe the bug The opensearch output plugin has been broken for arm32v7 docker images since v3.0.0.

To Reproduce

Fluent Bit v3.0.6
* Copyright (C) 2015-2024 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io

___________.__                        __    __________.__  __          ________  
\_   _____/|  |  __ __   ____   _____/  |_  \______   \__|/  |_  ___  _\_____  \ 
 |    __)  |  | |  |  \_/ __ \ /    \   __\  |    |  _/  \   __\ \  \/ / _(__  < 
 |     \   |  |_|  |  /\  ___/|   |  \  |    |    |   \  ||  |    \   / /       \
 \___  /   |____/____/  \___  >___|  /__|    |______  /__||__|     \_/ /______  /
     \/                     \/     \/               \/                        \/ 

[2024/06/11 08:53:16] [ info] Configuration:
[2024/06/11 08:53:16] [ info]  flush time     | 2.000000 seconds
[2024/06/11 08:53:16] [ info]  grace          | 5 seconds
[2024/06/11 08:53:16] [ info]  daemon         | 0
[2024/06/11 08:53:16] [ info] ___________
[2024/06/11 08:53:16] [ info]  inputs:
[2024/06/11 08:53:16] [ info]      dummy
[2024/06/11 08:53:16] [ info] ___________
[2024/06/11 08:53:16] [ info]  filters:
[2024/06/11 08:53:16] [ info] ___________
[2024/06/11 08:53:16] [ info]  outputs:
[2024/06/11 08:53:16] [ info]      opensearch.0
[2024/06/11 08:53:16] [ info] ___________
[2024/06/11 08:53:16] [ info]  collectors:
[2024/06/11 08:53:16] [ info] [fluent bit] version=3.0.6, commit=9af65e2c36, pid=6
[2024/06/11 08:53:16] [debug] [engine] coroutine stack size: 24576 bytes (24.0K)
[2024/06/11 08:53:16] [ info] [storage] ver=1.5.2, type=memory, sync=normal, checksum=off, max_chunks_up=128
[2024/06/11 08:53:16] [ info] [cmetrics] version=0.9.0
[2024/06/11 08:53:16] [ info] [ctraces ] version=0.5.1
[2024/06/11 08:53:16] [ info] [input:dummy:dummy.0] initializing
[2024/06/11 08:53:16] [ info] [input:dummy:dummy.0] storage_strategy='memory' (memory only)
[2024/06/11 08:53:16] [debug] [dummy:dummy.0] created event channels: read=21 write=22
[2024/06/11 08:53:16] [debug] [opensearch:opensearch.0] created event channels: read=23 write=24
[2024/06/11 08:53:16] [debug] [output:opensearch:opensearch.0] host=opensearch.k8s.bisdn.de port=443 uri=/_bulk index=fluent-bit type=_doc
[2024/06/11 08:53:16] [ info] [sp] stream processor started
[2024/06/11 08:53:18] [debug] [task] created task=0xb55e6d80 id=0 OK
[2024/06/11 08:53:18] [debug] [upstream] KA connection #31 to opensearch.k8s.bisdn.de:443 is connected
[2024/06/11 08:53:18] [debug] [http_client] not using http_proxy for header
[2024/06/11 08:53:18] [engine] caught signal (SIGSEGV)

Backtrace:

#0  __libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:47
#1  0xb69e5a20 in __libc_signal_restore_set (set=0xb5dfa3fc) at ../sysdeps/unix/sysv/linux/internal-signals.h:86
#2  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:48
#3  0xb69d6322 in __GI_abort () at abort.c:79
#4  0x00546dd6 in flb_signal_handler (signal=<optimized out>) at /src/fluent-bit/src/fluent-bit.c:602
#5  <signal handler called>
#6  0x005afba0 in flb_net_dns_lookup_context_cleanup (dns_ctx=dns_ctx@entry=0x921430) at /src/fluent-bit/src/flb_network.c:613
#7  0x005b32de in flb_engine_start (config=config@entry=0xb60d8000) at /src/fluent-bit/src/flb_engine.c:1083
#8  0x0059da44 in flb_lib_worker (data=0xb60f1060) at /src/fluent-bit/src/flb_lib.c:674
#9  0xb6ed399e in start_thread (arg=0x22f7be77) at pthread_create.c:477
#10 0xb6a5c02c in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Expected behavior The opensearch output plugin should worn on arm32v7 docker images. This issue does not occur on x86.

Your Environment

SERVICE]
    Daemon             Off
    Log_Level          debug

[INPUT]
    Name   dummy
    Dummy {"message": "custom dummy"}
    Samples 1

[OUTPUT]
    Name               opensearch
    Match              *
    HTTP_User          <USER>
    HTTP_Passwd        <PASSWORD>
    Host               <HOST>
    Port               80
    Suppress_Type_Name On

Additional context v2.2 docker images continue to work. This bug looks related to issue #8785 which provided the template for this report.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the exempt-stale label.

github-actions[bot] commented 1 month ago

This issue was closed because it has been stalled for 5 days with no activity.