Collectd seg faults with python plugin register_flush()

Problems with packages? Post here, using [tags] of the package name.

Collectd seg faults with python plugin register_flush()

Postby FieldOfClay » Wed Oct 16, 2019 7:45 am

I have found when calling collectd.register_flush() within a python plugin, collectd will seg fault. I've tested this on armv7h running on a Raspberry Pi 2 B+ and Cubox-i. Calling the function on Arch Linux x86_64 works as intended.

I have no idea why this happens. I did have a brief look at the core dump, but I don't really know what I'm looking at/for.

To replicate, install collectd & python. Create test.py with the code:
$this->bbcode_second_pass_code('', '
import collectd

def flush(timeout, identifier, Data=None):
collectd.info("flush")

collectd.register_flush(flush)
')
Add the config to load the plugin to /etc/collectd.conf
$this->bbcode_second_pass_code('', '
<LoadPlugin python>
FlushInterval 30
</LoadPlugin>

<Plugin python>
ModulePath "/path/to/folder"
Import "test"
</Plugin>
')
and start collectd.
FieldOfClay
 
Posts: 1
Joined: Wed Oct 16, 2019 2:27 am

Return to Packages

Who is online

Users browsing this forum: No registered users and 31 guests