Skip to content

Intermittent SIGSEGV during hot reload via SIGHUP(Fluent-bit v4.0.12) #11183

@wangshuai809

Description

@wangshuai809

When sending a SIGHUP signal to trigger a hot reload of Fluent Bit (flb v4.0.12), an intermittent SIGSEGV (segmentation fault) occurs and fluent-bit process stop.
The issue appears sporadically during hot reload. Sometimes hot reload is success via SIGHUP.

cfg:

[INPUT]
    Name tail
    Path /export/kubelet/pods/xxx/volumes/kubernetes.io~lvm/export/Logs/xxxx/log-info.log
    Tag output_xxx_xxx.caf1afdf5e2feceb1e3730c8a729bd99
    Buffer_Chunk_Size 512k
    Buffer_Max_Size 1MB
    DB /opt/export/log-agent-pro/offset/xxx/xxx.db
    Mem_Buf_Limit 10MB
    Exclude_Path *.tar,*.gz,*.tgz,*.bz2,*.bz,*.Z,*.zip,*.rar
    multiline.parser multiline-regex-test
    Read_from_Head Off 
    Rotate_Wait 300
    Path_key path
    Key log
    Skip_Long_Lines On

Debug Log

[2025/11/19 14:21:46] [debug] [input:tail:tail.629] inode=131308 removing file name /export/xxx/common-error.log
[2025/11/19 14:21:46] [ info] [input:tail:tail.629] inotify_fs_remove(): inode=131308 watch_fd=1
[2025/11/19 14:21:46] [debug] [input:tail:tail.624] inode=1441801 removing file name /export/xxx/log-info.log
[2025/11/19 14:21:46] [engine] caught signal (SIGSEGV)
#0  0x48a3cc            in  c() at src/flb_input_chunk.c:1767
#1  0x48a9fa            in  flb_input_chunk_append_raw() at src/flb_input_chunk.c:2016
#2  0x4de7d0            in  input_log_append() at src/flb_input_log.c:71
#3  0x4de85f            in  flb_input_log_append() at src/flb_input_log.c:90
#4  0x52956d            in  ml_stream_buffer_flush() at plugins/in_tail/tail_file.c:414
#5  0x529610            in  ml_flush_callback() at plugins/in_tail/tail_file.c:992
#6  0x4bfc5e            in  flb_ml_flush_stream_group() at src/multiline/flb_ml.c:1519
#7  0x4c03c5            in  flb_ml_flush_parser_instance() at src/multiline/flb_ml.c:117
#8  0x4e9178            in  flb_ml_stream_id_destroy_all() at src/multiline/flb_ml_stream.c:316
#9  0x52a5dc            in  flb_tail_file_remove() at plugins/in_tail/tail_file.c:1329
#10 0x52a8e4            in  flb_tail_file_remove_all() at plugins/in_tail/tail_file.c:1401
#11 0x524448            in  in_tail_exit() at plugins/in_tail/tail.c:514
#12 0x486f19            in  flb_input_exit_all() at src/flb_input.c:1484
#13 0x4a2454            in  flb_engine_shutdown() at src/flb_engine.c:1227
#14 0x4a4793            in  flb_engine_start() at src/flb_engine.c:1107
#15 0x47b0f3            in  flb_lib_worker() at src/flb_lib.c:835
#16 0x7f28e28c3ea4      in  ???() at ???:0
#17 0x7f28e0f73b0c      in  ???() at ???:0
#18 0xffffffffffffffff  in  ???() at ???:0

Do you have any suggestions for me?
Thanks

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