[rrd-users] How-to compile RRDs thread safe

Frank Heckes f.heckes at fz-juelich.de
Wed May 30 19:39:06 CEST 2012

Hi all,

sorry if this has been answered already before, but I couldn't find
anything in the archive nor by googling several combinations of

I'm trying to use the RRDs module (version 1.4.7 on SLES 11 SP1) within
a multithreaded boss/worker + messages queue model. I'm using the PERL
modules threads, threads::shared, Thread::Queue, Thread::Semaphore to
implement the parsing and store machine. After some time the scripts
crashes with SEGV according to the caveats mentioned on the Webpage
(programming->rrdthreads) concerning thread usage.

As described in the Programming Section of the web-page the linker
should use librrd_th instead of librrd.

Does anyone know:

- How-to force (enable) linking with librrd_th, especially the RRDs
  (ldd indicates that RRDs is linked with librrd only)
- whether update,...  will be replaced with update_r, ?
- or whether usage of from threads doesn't work at all?

Many thanks in advance.


-Frank Heckes

Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt

Kennen Sie schon unseren neuen Film? http://www.fz-juelich.de/film
Kennen Sie schon unsere app? http://www.fz-juelich.de/app

More information about the rrd-users mailing list