Skip to content

Segmentation fault during shutdown. #613

@m15o

Description

@m15o

Describe the question/issue

Multiple output configuration cause SIGSEGV during shutdown.

Configuration

[SERVICE]
    Daemon             off

[OUTPUT]
    Name               cloudwatch
    log_group_name     /test-1
    log_stream_name    o1
    region             us-west-2

[OUTPUT]
    Name               cloudwatch
    log_group_name     /test-2
    log_stream_name    o2
    region             us-west-2

Fluent Bit Log Output

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

[2023/03/28 05:30:16] [ info] Configuration:
[2023/03/28 05:30:16] [ info]  flush time     | 1.000000 seconds
[2023/03/28 05:30:16] [ info]  grace          | 5 seconds
[2023/03/28 05:30:16] [ info]  daemon         | 0
[2023/03/28 05:30:16] [ info] ___________
[2023/03/28 05:30:16] [ info]  inputs:
[2023/03/28 05:30:16] [ info] ___________
[2023/03/28 05:30:16] [ info]  filters:
[2023/03/28 05:30:16] [ info] ___________
[2023/03/28 05:30:16] [ info]  outputs:
[2023/03/28 05:30:16] [ info]      cloudwatch.0
[2023/03/28 05:30:16] [ info]      cloudwatch.1
[2023/03/28 05:30:16] [ info] ___________
[2023/03/28 05:30:16] [ info]  collectors:
[2023/03/28 05:30:16] [ info] [fluent bit] version=1.9.10, commit=6d654b0570, pid=16

...

[2023/03/28 05:30:41] [engine] caught signal (SIGTERM)
[2023/03/28 05:30:41] [ warn] [engine] service will shutdown in max 5 seconds
[2023/03/28 05:30:42] [ info] [engine] service has stopped (0 pending tasks)
[2023/03/28 05:30:42] [debug] [GO] running exit callback
[2023/03/28 05:30:42] [engine] caught signal (SIGSEGV)
Aborted (core dumped)

Fluent Bit Version Info

I tried v2.31.7

  • public.ecr.aws/aws-observability/aws-for-fluent-bit:2.31.7
  • Fluent Bit v1.9.10

Cluster Details

It can be reproduced with docker run

Application Details

Steps to reproduce issue

  1. docker run --rm --name fluent-bit -it public.ecr.aws/aws-observability/aws-for-fluent-bit:2.31.7 bash
  2. /fluent-bit/bin/fluent-bit -e /fluent-bit/cloudwatch.so \
         -o cloudwatch -p region=us-west-2 -p log_group_name=/test-1 -p log_stream_name=o1 \
         -o cloudwatch -p region=us-west-2 -p log_group_name=/test-2 -p log_stream_name=o2
  3. kill -TERM <pid> or CTRL-C

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions