[collectd] Segmentation fault using perl plugin
Sebastian Harl
sh at tokkee.org
Wed Oct 17 15:26:11 CEST 2007
Hi Justo,
Sorry, for the delayed reply - I somehow lost sight of your e-mail :-/
On Mon, Oct 01, 2007 at 04:18:28PM +0200, Justo Alonso wrote:
> http://www.capphire.org/collectd/collectd.core.tgz, is a tar-gziped file
> with the collectd.conf file, MyPlugin.pm (is the plugin example), the core
> file and the collectd.out (with enable debug and logfile plugin with debug
> config).
Sorry, I need perl.so and the collectd binary as well - else I cannot debug it
myself.
> #1 0x4020143f in Perl_call_sv () from
> /usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE/libperl.so
[...]
> #4 0x401db516 in perl_log (level=7, msg=0xbfffd1b0 "pagesize_g = 4096;
> CONFIG_HZ = 100;") at perl.c:1025
> #5 0x0804fb38 in plugin_log (level=7, format=0x401c6500 "pagesize_g = %li;
> CONFIG_HZ = %i;") at plugin.c:718
> #6 0x401c5404 in ps_init () at processes.c:396
As you can see from stack frames 1, 4 and 6, the segfault happens when trying
to call the log function of some Perl plugin from ps_init. This might be a
problem related to concurrency...
> I compile it on 2 machines, the first is a Suse 8.2 professional edition
> (perl 5.8.0, kernel 2.4.20) and the second a Suse Enterprises 9.3 SP3 (perl
> 5.8.3 and kernel 2.6.5).
... Did you run collectd on a multi-core machine? Can you reproduce the
segfault any time you run collectd? Does it always happen at the same position
every time?
TIA,
Sebastian
--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20071017/1d1086d4/attachment.pgp
More information about the collectd
mailing list