Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewrite_tag causing segmentation fault #10031

Open
TaskDead opened this issue Mar 2, 2025 · 0 comments
Open

rewrite_tag causing segmentation fault #10031

TaskDead opened this issue Mar 2, 2025 · 0 comments

Comments

@TaskDead
Copy link

TaskDead commented Mar 2, 2025

Bug Report

Describe the bug
I am trying to tag records incoming from syslog via rewrite tag . I m running fluentbit mode via command line (not daemon) . when stopping the process it crashes

To Reproduce

Fluentbit version=3.2.7,
cmd - /opt/fluent-bit/bin/fluent-bit -c source.conf -R parsers/parsers.conf
Config
[INPUT]
Name syslog
Listen 0.0.0.0
Port 5140
Mode udp
Source_Address_Key DeviceIP

[FILTER]
Name rewrite_tag
Emitter_Name ddd
Match *
Rule $message ^.kernel.$ linux-lua false
Rule $message ^.EventID.$ windows-lua false

[OUTPUT]
Name stdout
Match linux-lua

[OUTPUT]
Name stdout
Match windows-lua

[OUTPUT]
Name stdout
Match *

Initial logs
[2025/03/02 08:11:38] [ info] Configuration:
[2025/03/02 08:11:38] [ info] flush time | 3.000000 seconds
[2025/03/02 08:11:38] [ info] grace | 5 seconds
[2025/03/02 08:11:38] [ info] daemon | 0
[2025/03/02 08:11:38] [ info] ___________
[2025/03/02 08:11:38] [ info] inputs:
[2025/03/02 08:11:38] [ info] syslog
[2025/03/02 08:11:38] [ info] ___________
[2025/03/02 08:11:38] [ info] filters:
[2025/03/02 08:11:38] [ info] rewrite_tag.0
[2025/03/02 08:11:38] [ info] ___________
[2025/03/02 08:11:38] [ info] outputs:
[2025/03/02 08:11:38] [ info] stdout.0
[2025/03/02 08:11:38] [ info] stdout.1
[2025/03/02 08:11:38] [ info] stdout.2
[2025/03/02 08:11:38] [ info] stdout.3
[2025/03/02 08:11:38] [ info] ___________
[2025/03/02 08:11:38] [ info] collectors:
[2025/03/02 08:11:38] [ info] [fluent bit] version=3.2.7, commit=, pid=33930
[2025/03/02 08:11:38] [debug] [engine] coroutine stack size: 196608 bytes (192.0K)
[2025/03/02 08:11:38] [ info] [storage] ver=1.5.2, type=memory, sync=normal, checksum=off, max_chunks_up=128
[2025/03/02 08:11:38] [ info] [simd ] disabled
[2025/03/02 08:11:38] [ info] [cmetrics] version=0.9.9
[2025/03/02 08:11:38] [ info] [ctraces ] version=0.6.0
[2025/03/02 08:11:38] [ info] [input:syslog:syslog.0] initializing
[2025/03/02 08:11:38] [ info] [input:syslog:syslog.0] storage_strategy='memory' (memory only)
[2025/03/02 08:11:38] [debug] [syslog:syslog.0] created event channels: read=25 write=26
[2025/03/02 08:11:38] [debug] [downstream] listening on 0.0.0.0:5140
[2025/03/02 08:11:38] [ info] [in_syslog] UDP server binding 0.0.0.0:5140
[2025/03/02 08:11:38] [ warn] [filter:rewrite_tag:rewrite_tag.0] 'Match' may cause infinite loop.
[2025/03/02 08:11:38] [ info] [input:emitter:ddd] initializing
[2025/03/02 08:11:38] [ info] [input:emitter:ddd] storage_strategy='memory' (memory only)
[2025/03/02 08:11:38] [debug] [emitter:ddd] created event channels: read=28 write=29
[2025/03/02 08:11:38] [debug] [stdout:stdout.0] created event channels: read=30 write=31
[2025/03/02 08:11:38] [debug] [stdout:stdout.1] created event channels: read=39 write=40
[2025/03/02 08:11:38] [debug] [stdout:stdout.2] created event channels: read=48 write=49
[2025/03/02 08:11:38] [ info] [output:stdout:stdout.0] worker #0 started
[2025/03/02 08:11:38] [debug] [stdout:stdout.3] created event channels: read=63 write=64
[2025/03/02 08:11:38] [ info] [output:stdout:stdout.1] worker #0 started
[2025/03/02 08:11:38] [debug] [router] match rule syslog.0:stdout.3
[2025/03/02 08:11:38] [debug] [router] match rule emitter.1:stdout.3
[2025/03/02 08:11:38] [ info] [sp] stream processor started
[2025/03/02 08:11:38] [ info] [output:stdout:stdout.2] worker #0 started
[2025/03/02 08:11:38] [ info] [output:stdout:stdout.3] worker #0 started

Error logs
[2025/03/02 08:12:40] [ info] [input] pausing ddd
[2025/03/02 08:12:40] [ info] [input] pausing ddd
[2025/03/02 08:12:40] [ info] [input] pausing ddd
[2025/03/02 08:12:40] [ info] [input] pausing ddd
[2025/03/02 08:12:40] [ info] [input] pausing ddd
[2025/03/02 08:12:40] [ info] [input] pausing ddd
[2025/03/02 08:12:40] [ info] [input] pausing ddd
[2025/03/02 08:12:40] [ info] [input] pausing ddd
[2025/03/02 08:12:40] [ info] [input] pausing ddd
Segmentation fault (core dumped)

  • Steps to reproduce the problem:
    send some logs - logger -n 127.0.0.1 -P 5140 "<34>2025-02-26 10:00:00 linux-host kernel: process started"
    stop the fluentbit process
    Expected behavior

Screenshots

Your Environment
Amazon linux 2023

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant