Bug 2226978 - collectd-write_riemann segfaults due to upstream bug
Summary: collectd-write_riemann segfaults due to upstream bug
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: collectd
Version: epel9
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jonathan Wright
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-27 09:08 UTC by Ade Rixon
Modified: 2024-05-17 12:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ade Rixon 2023-07-27 09:08:57 UTC
Description of problem:
collectd-write_riemann-5.12.0 causes repeated segfaults on RHEL 9.2 due to upstream bug #4050 (https://github.com/collectd/collectd/issues/4050)

Version-Release number of selected component (if applicable):
5.12.0-24

How reproducible:
Install collectd & collectd-write_riemann, configure write_riemann plugin to send metrics to remote Riemann host via TCP.

Steps to Reproduce:
1. Install collectd & collectd-write_riemann
2. Add config for write_riemann plugin, e.g.:
LoadPlugin write_riemann
<Plugin write_riemann>
       <Node "central">
               Host "riemann.server"
               Port 5555
               Protocol TCP
               Batch true
               BatchMaxSize 8192
               StoreRates true
               AlwaysAppendDS false
               TTLFactor 2.0
               Notifications true
               CheckThresholds false
       </Node>
</Plugin>
3.Start collectd

Actual results:
Occurrences in syslog for three processes of:
Jul 27 09:57:01 my.client kernel: writer#3[33525]: segfault at 20 ip 00
007f98c48ce2fc sp 00007f98c2030088 error 4 in libc.so.6[7f98c4828000+175000]
Jul 27 09:57:01 pidmapp03.cf.ac.uk kernel: Code: c3 66 2e 0f 1f 84 00 00 00 00 0
0 0f 1f 00 f3 0f 1e fa 89 f8 62 a1 fd 00 ef c0 25 ff 0f 00 00 3d e0 0f 00 00 0f 
87 34 01 00 00 <62> f3 7d 20 3f 07 00 c5 fb 93 c0 85 c0 74 55 f3 0f bc c0 c3 f3 
0f
Followed by:
Jul 27 09:57:01 my.client systemd[1]: Started Process Core Dump (PID 33535/UID 0).
Jul 27 09:57:01 my.client systemd-coredump[33536]: Resource limits disable core dumping for process 33521 (collectd).
Jul 27 09:57:01 my.client systemd-coredump[33536]: Process 33521 (collectd) of user 0 dumped core.
Jul 27 09:57:01 my.client systemd[1]: collectd.service: Main process exited, code=dumped, status=11/SEGV
Jul 27 09:57:01 my.client systemd[1]: collectd.service: Failed with result 'core-dump'.

Expected results:
collectd continues to run normally, sending metrics to Riemann (per previous releases).

Additional info:
Does not occur on EL7/8. See upstream bug for workarounds or reversions.

Comment 1 Ade Rixon 2024-01-11 09:44:28 UTC
Please see upstream bug report https://github.com/collectd/collectd/issues/4050 for updated findings: it's possible the underlying problem lies in riemann-c-client. At a minimum, collectd-write_riemann needs rebuilding with a patch to revert the changes in https://github.com/collectd/collectd/commit/b3955dc6a43b82df550e521738a4da7398ec97a5 until this is resolved, otherwise it won't function.

Comment 2 Fedora Admin user for bugzilla script actions 2024-05-17 00:14:16 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Fedora Admin user for bugzilla script actions 2024-05-17 12:33:18 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.


Note You need to log in before you can comment on or make changes to this bug.