8000 SIGSEGV when forwarding metrics · Issue #8000 · fluent/fluent-bit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
SIGSEGV when forwarding metrics #8000
Closed
@GlassBil

Description

@GlassBil

Bug Report

Crash when attempting to forward logs and metrics (just forwarding logs works fine):

[2023/10/03 05:23:35] [engine] caught signal (SIGSEGV)
#0  0x56417ef61b65      in  pack_context_header() at lib/cmetrics/src/cmt_encode_msgpack.c:353
#1  0x56417ef61e9c      in  pack_context() at lib/cmetrics/src/cmt_encode_msgpack.c:434
#2  0x56417ef61f62      in  cmt_encode_msgpack_create() at lib/cmetrics/src/cmt_encode_msgpack.c:529
#3  0x56417eed8dc3      in  input_metrics_append() at src/flb_input_metric.c:63
#4  0x56417eed8ef8      in  flb_input_metrics_append() at src/flb_input_metric.c:84
#5  0x56417ebd0c11      in  fw_prot_process() at plugins/in_forward/fw_prot.c:787
#6  0x56417ebca18d      in  fw_conn_event() at plugins/in_forward/fw_conn.c:92
#7  0x56417e8b5244      in  flb_engine_start() at src/flb_engine.c:1009
#8  0x56417e84e35e      in  flb_lib_worker() at src/flb_lib.c:638
#9  0x7f6bf07d5b42      in  ???() at ???:0
#10 0x7f6bf08679ff      in  ???() at ???:0
#11 0xffffffffffffffff  in  ???() at ???:0
Aborted (core dumped)

Config for machine forwarding (Ubuntu 18.04 arm64):

[INPUT]
    Name tail
    Path /var/log/foobar.log
    Tag logs.foobar
    Mem_Buf_Limit 5MB
    Parser foobar

[INPUT]
    name prometheus_scrape
    tag metrics.foobar
    host 0.0.0.0
    port 8080
    scrape_interval 15s

[FILTER]
    Name record_modifier
    Match logs.*
    Record hostname ${HOSTNAME}

[OUTPUT]
    Name forward
    Match *
    Host 123.123.123.123
    Port 24224
    Compress gzip

Config on other machine that crash (Ubuntu 22.04 amd64):

[INPUT]
    Name forward
    Listen 0.0.0.0
    Port 24224

[OUTPUT]
    Name loki
    Match logs.*
    Host example.com

[OUTPUT]
    Name prometheus_remote_write
    Match metrics.*
    Host example.com

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0