Skip to content

Getting SIGSEGV when host is restarted #8252

@hilshalom

Description

@hilshalom

Bug Report

Describe the bug
When performing host reboots in a loop, a fluent-bit core dump was created. In the logs we see a SIGSEGV was caught with the following stack:

To Reproduce
Perform host reboots in a loop

[engine] caught signal (SIGSEGV)
0x55c348e6c2f8      in  ???() at ???:0
0x55c348b7a5d7      in  ???() at ???:0
0x55c348b772b5      in  ???() at ???:0
0x7f84cdf2151f      in  ???() at ???:0
0x55c348b771a0      in  ???() at ???:0
0x7f84cdf2151f      in  ???() at ???:0
0x7f84ce004fde      in  ???() at ???:0
0x55c348ecbceb      in  _mk_event_wait_2() at lib/monkey/mk_core/mk_event_epoll.c:439
0x55c348ecc145      in  mk_event_wait() at lib/monkey/mk_core/mk_event.c:194
0x55c348b88f34      in  ???() at ???:0
0x55c348bb2f71      in  ???() at ???:0
0x7f84cdf73b42      in  ???() at ???:0
0x7f84ce004bb3      in  ???() at ???:0
0xffffffffffffffff  in  ???() at ???:0

Core dump

(gdb) bt
#0  0x00007f84cdf75a7c in __pthread_mutex_cond_lock_full (mutex=0x29) at ../nptl/pthread_mutex_lock.c:184
#1  0x0000000000000000 in ?? ()

(gdb) info threads
  Id   Target Id                       Frame
1    Thread 0x7f84cd6da640 (LWP 210) 0x00007f84cdf75a7c in __pthread_mutex_cond_lock_full (mutex=0x29) at ../nptl/pthread_mutex_lock.c:184
  2    Thread 0x7f84cceb1640 (LWP 211) 0x00007f84ce004fde in epoll_wait (epfd=104, events=0x7f84c8240850, maxevents=64, timeout=-1)
    at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
  3    Thread 0x7f84c7fff640 (LWP 212) 0x00007f84ce004fde in epoll_wait (epfd=107, events=0x7f84c8242060, maxevents=64, timeout=-1)
    at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
  4    Thread 0x7f84cdedca00 (LWP 41)  0x00007f84cdfc4868 in _GI__clock_nanosleep (clock_id=0, flags=0, req=0x7ffc913720c0, rem=0xffffffffffffffff)
    at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:65
  5    Thread 0x7f84cdedb640 (LWP 209) 0x00007f84cdff89bf in fallocate64 (fd=147, mode=0, offset=0, len=102400) at ../sysdeps/unix/sysv/linux/fallocate64.c:27

(gdb) thread 1
[Switching to thread 1 (Thread 0x7f84cd6da640 (LWP 210))]
#0  0x00007f84cdf75a7c in __pthread_mutex_cond_lock_full (mutex=0x29) at ../nptl/pthread_mutex_lock.c:184
184     in ../nptl/pthread_mutex_lock.c

(gdb) bt
#0  0x00007f84cdf75a7c in __pthread_mutex_cond_lock_full (mutex=0x29) at ../nptl/pthread_mutex_lock.c:184
#1  0x0000000000000000 in ?? ()

(gdb) thread 2
[Switching to thread 2 (Thread 0x7f84cceb1640 (LWP 211))]
#0  0x00007f84ce004fde in epoll_wait (epfd=104, events=0x7f84c8240850, maxevents=64, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
30      ../sysdeps/unix/sysv/linux/epoll_wait.c: No such file or directory.

(gdb) bt
#0  0x00007f84ce004fde in epoll_wait (epfd=104, events=0x7f84c8240850, maxevents=64, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
#1  0x000055c3492222d0 in ?? ()
#2  0x00000068cdf844d3 in ?? ()
#3  0x00007f84c8240850 in ?? ()
#4  0xffffffff00000040 in ?? ()
#5  0x00007f84c0001050 in ?? ()
#6  0x000055c348ecbcec in _mk_event_wait_2 (loop=0x7f84c8240b60, timeout=-1) at /tmp/fluent-bit-2.0.8/lib/monkey/mk_core/mk_event_epoll.c:439
#7  0x000055c348ecc146 in mk_event_wait (loop=0x7f84c8240b60) at /tmp/fluent-bit-2.0.8/lib/monkey/mk_core/mk_event.c:194
#8  0x000055c348b9a681 in output_thread ()
#9  0x000055c348bb2f72 in step_callback ()
#10 0x00007f84cdf73b43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:470
#11 0x00007f84ce004bb4 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:52
#12 0x0000000000000000 in ?? ()

Your Environment

  • Version used: 2.0.8

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