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.