test: stream_processor: Plug a SEGV for macOS - #10404
Merged
edsiper merged 1 commit intoMay 30, 2025
Merged
Conversation
Without TLS initialization, we got the following error on macOS: ``` * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x0000000100b0defc flb-it-stream_processor`_mk_event_timeout_create(ctx=0x0000000000000000, sec=0, nsec=500000000, data=0x0000600001608460) at mk_event_kqueue.c:222:23 219 EV_SET(&ke, fd, EVFILT_TIMER, EV_ADD, 0, (sec * 1000) + (nsec / 1000000) , event); 220 #endif 221 -> 222 ret = kevent(ctx->kfd, &ke, 1, NULL, 0, NULL); 223 if (ret < 0) { 224 close(fd); 225 mk_libc_error("kevent"); Target 0: (flb-it-stream_processor) stopped. ``` This can be plugged by TLS initialization for eventloop. Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
cosmo0920
requested review from
edsiper,
fujimotos,
koleini and
leonardo-albertovich
as code owners
May 30, 2025 03:08
edsiper
deleted the
cosmo0920-plug-internal-test-of-stream_processor-segv-on-macos
branch
May 30, 2025 12:39
rghouzra
pushed a commit
to rghouzra/fluent-bit_oracle
that referenced
this pull request
Jun 14, 2025
Without TLS initialization, we got the following error on macOS: ``` * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x0000000100b0defc flb-it-stream_processor`_mk_event_timeout_create(ctx=0x0000000000000000, sec=0, nsec=500000000, data=0x0000600001608460) at mk_event_kqueue.c:222:23 219 EV_SET(&ke, fd, EVFILT_TIMER, EV_ADD, 0, (sec * 1000) + (nsec / 1000000) , event); 220 #endif 221 -> 222 ret = kevent(ctx->kfd, &ke, 1, NULL, 0, NULL); 223 if (ret < 0) { 224 close(fd); 225 mk_libc_error("kevent"); Target 0: (flb-it-stream_processor) stopped. ``` This can be plugged by TLS initialization for eventloop. Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
nourdouf
pushed a commit
to seveas/fluent-bit
that referenced
this pull request
Sep 23, 2025
Without TLS initialization, we got the following error on macOS: ``` * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x0000000100b0defc flb-it-stream_processor`_mk_event_timeout_create(ctx=0x0000000000000000, sec=0, nsec=500000000, data=0x0000600001608460) at mk_event_kqueue.c:222:23 219 EV_SET(&ke, fd, EVFILT_TIMER, EV_ADD, 0, (sec * 1000) + (nsec / 1000000) , event); 220 #endif 221 -> 222 ret = kevent(ctx->kfd, &ke, 1, NULL, 0, NULL); 223 if (ret < 0) { 224 close(fd); 225 mk_libc_error("kevent"); Target 0: (flb-it-stream_processor) stopped. ``` This can be plugged by TLS initialization for eventloop. Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Without TLS initialization, we got the following error on macOS:
This can be plugged by TLS initialization for eventloop.
Enter
[N/A]in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-testlabel to test for all targets (requires maintainer to do).Documentation
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.