-
Notifications
You must be signed in to change notification settings - Fork 980
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
RESOLVED: free(): invalid pointer (segmentation fault with systemd plugin and jemalloc) #1517
Comments
ledbettj/systemd-journal#96 will fix this issue. |
systemd-journal 2.0.0 fixes segmentation fault with jemalloc memory allocator. fluent-plugin-systemd 1.1.0 adopts systemd-journal 2.0.0 or later. fluent/fluentd-docker-image#378 fluent/fluentd-docker-image#385 fluent#1517 Signed-off-by: Kentaro Hayashi <[email protected]>
This issue was fixed via fluent-plugin-systemd 1.1.0 (which uses systemd-journal 2.0.0) Now no need to disable jemalloc explicitly. Please use v1.17.1-1.1 or later images which uses fluent-plugin-systemd 1.1.0 or later. ref. Note Keep this issue open for a while to inform you. |
systemd-journal 2.0.0 fixes segmentation fault with jemalloc memory allocator. fluent-plugin-systemd 1.1.0 adopts systemd-journal 2.0.0 or later. fluent/fluentd-docker-image#378 fluent/fluentd-docker-image#385 #1517 Signed-off-by: Kentaro Hayashi <[email protected]>
Describe the bug
There is a known issue that combination with systemd plugin and jemalloc causes a
crash bug.
There are some feedback from users.
free(): invalid pointer
with latest fluent/fluentd-kubernetes-daemonset:v1-debian-forward-arm64 image #1478Related issue:
fluent-plugin-systemd fails with SIGABORT on Ubuntu 21.04 fluent-package-builder#369
Segmentation fault on Ubuntu 22.04 fluent-plugins-nursery/fluent-plugin-systemd#110
Segmentation fault after updating from version 1.16.3 to 1.16.4 fluentd-docker-image#378
fluentd-kubernetes-daemonset segmentation fault #1406
Important
As a workaround, you can avoid a segmentation fault to disable jemalloc memory allocator by specifying empty LD_PRELOAD for each container.
Caution
UPDATE: 2024 Sep 11
fluent-plugin-systemd 1.1.0 (systemd-journal 2.0.0) was shipped to fix this issue.
As v1.17.1-1.1 image bundles fluent-plugin-systemd 1.1.0 or later, please use newer image.
To Reproduce
See above mentioned issues and related bugs.
(Especially fluent/fluentd-docker-image#378 is the simplified to reproduce without k8s)
Expected behavior
Even though jemalloc is enabled, it does not cause a segmentation fault)
Your Environment
- all of v1.16.x or later
Your Configuration
Your Error Log
Additional context
To avoid this issue, jemalloc memory allocator will be disabled by default for v1.17.0-1.3 or later and v1.16.5-1.3 or later.
If you don't use systemd plugin at all, you can enable jemalloc memory allocator explicitly via env: parameter.
The text was updated successfully, but these errors were encountered: