-
Notifications
You must be signed in to change notification settings - Fork 26
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
fluent-plugin-systemd fails with SIGABORT on Ubuntu 21.04 #369
Comments
This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days |
This issue was automatically closed because of stale in 30 days |
Seems like this problem still exists. Environment
How to Reproduce
<source>
@type systemd
tag debug
path /var/log/journal
read_from_head true
</source>
Result
ETC This doesn't reproduce on Ubuntu 20.04. |
As @scrwr says, we can avoid this issue by commenting out the following line in
Then apply this. $ (sudo) systemctl daemon-reload
$ (sudo) systemctl restart td-agent However, is it correct to comment out this? |
It is not recommended to edit directly
My concern here was the effect of omitting this environment variable, but it seems that if memory usage is not a problem, this environment variable can be omitted. Thus, for now, this seems to be a workaround. |
having the same issue. workaround helped, but I wonder if there is any progress on a permanent fix? |
I think there is no progress. We still need this workaround for @mszabo Could you share your environment information? Are you using Ubuntu? |
@daipom yes, issue surfaced when we started to migrate to the latest ubuntu LTS. (22.04). |
Thanks! |
Hello, Migrated my app from RHEL 8.8 to RHEL 9.2 and started experiencing the same issue:
The workaround with unsetting LD_PRELOAD var helped. Posting my env info in case it may help with the permanent fix.
Thanks, |
There is a known bug that combination with jemalloc and fluent-plugin-systemd causes free(): invalid crash for a long time. The problematic code is identified but the root cause is not fixed yet. There is a workaround for this - disable jemalloc explicitly. LD_PRELOAD= stop to use jemalloc. If you want to use jemalloc, set it via env like this: containers: - name: fluentd image: fluent/fluentd-kubernetes-daemonset:v1-debian-forward env: - name: K8S_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName - name: FLUENT_FORWARD_HOST value: "REMOTE_ENDPOINT" - name: FLUENT_FORWARD_PORT value: "18080" - name: LD_PRELOAD value: "/usr/lib/libjemalloc.so.2" Related issues: fluent/fluentd-docker-image#378 fluent/fluent-package-builder#369 fluent-plugins-nursery/fluent-plugin-systemd#110 ledbettj/systemd-journal#93 fluent#1478 Signed-off-by: Kentaro Hayashi <[email protected]>
There is a known bug that combination with jemalloc and fluent-plugin-systemd causes free(): invalid crash for a long time. The problematic code is identified but the root cause is not fixed yet. There is a workaround for this - disable jemalloc explicitly. LD_PRELOAD= stop to use jemalloc. If you want to use jemalloc, set it via env like this: containers: - name: fluentd image: fluent/fluentd-kubernetes-daemonset:v1-debian-forward env: - name: K8S_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName - name: FLUENT_FORWARD_HOST value: "REMOTE_ENDPOINT" - name: FLUENT_FORWARD_PORT value: "18080" - name: LD_PRELOAD value: "/usr/lib/libjemalloc.so.2" Related issues: fluent/fluentd-docker-image#378 fluent/fluent-package-builder#369 fluent-plugins-nursery/fluent-plugin-systemd#110 ledbettj/systemd-journal#93 fluent#1478 Signed-off-by: Kentaro Hayashi <[email protected]>
There is a known bug that combination with jemalloc and fluent-plugin-systemd causes free(): invalid crash for a long time. The problematic code is identified but the root cause is not fixed yet. There is a workaround for this - disable jemalloc explicitly. LD_PRELOAD= stop to use jemalloc. If you want to use jemalloc, set it via env like this: containers: - name: fluentd image: fluent/fluentd-kubernetes-daemonset:v1-debian-forward env: - name: K8S_NODE_NAME valueFrom: fieldRef: fieldPath: spec.nodeName - name: FLUENT_FORWARD_HOST value: "REMOTE_ENDPOINT" - name: FLUENT_FORWARD_PORT value: "18080" - name: LD_PRELOAD value: "/usr/lib/libjemalloc.so.2" Related issues: fluent/fluentd-docker-image#378 fluent/fluent-package-builder#369 fluent-plugins-nursery/fluent-plugin-systemd#110 ledbettj/systemd-journal#93 #1478 Signed-off-by: Kentaro Hayashi <[email protected]>
ledbettj/systemd-journal#96 will fix this issue. |
NOTE: fluent-package v5.0.4/v5.1.0 still bundles fluent-plugin-systemd 1.0.5, |
When using
fluent-plugin-systemd
the worker crashes hard with a SIGABRT. Initially we assumed it to be a problem with the plugin, but it turned out to be related to libjemalloc. After removingfrom the service, crashes are gone.
See ledbettj/systemd-journal#93 for more details.
We were using td-agent 3 in the above example, but the issue is the same with td-agent 4.
Some more info:
Related config part:
Let me know, in case I can help with further details.
The text was updated successfully, but these errors were encountered: