[collectd] Segmentation fault using perl plugin

Justo Alonso justo.alonso at gmail.com
Mon Oct 1 16:18:28 CEST 2007


On 10/1/07, Sebastian Harl <sh at tokkee.org> wrote:
>
> Hi,


    Hi again !  ;-)

On Mon, Oct 01, 2007 at 03:27:45PM +0200, Justo Alonso wrote:
> >    I try all your recomendations, and I get a 12Mb core dump file. Do
> you
> > want that I send it ? Private email or to the maillist ??
>
> Can you upload it somewhere and provide a link to it? If not, please send
> it
> to me in private and I will make it publicly available (if you don't
> mind).
> However, please try to keep everything else on the mailing list.


    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).

    I try to debug it and this is the gdb backtrace

#0  0x402668ab in Perl_pp_entersub () from
/usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE/libperl.so
#1  0x4020143f in Perl_call_sv () from
/usr/lib/perl5/5.8.0/i586-linux-thread-multi/CORE/libperl.so
#2  0x401d8c6f in pplugin_call (type=4, name=0x80adf48 "myplugin",
sub=0x80ae250, ap=0xbfffd188 "°Ñÿ¿") at perl.c:646
#3  0x401d9260 in pplugin_call_all (type=4) at perl.c:700
#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
#7  0x0804f84a in plugin_init_all () at plugin.c:559
#8  0x0804b970 in do_init () at collectd.c:218
#9  0x0804becb in main (argc=2, argv=0xbfffd8c0) at collectd.c:477
#10 0x400958ae in __libc_start_main () from /lib/libc.so.6

  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).


Cheers,
> Sebastian
>
> PS: Please don't forget to provide all the other files - debugging is
> impossible without at least the collectd/plugin binary files.
>
> PPS: Please try to avoid top-posting (see [1])


Sorry

[1] http://en.wikipedia.org/wiki/Posting_style
>
> --
> 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
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFHAPzQEFEKc4UBx/wRArugAJ0foJ+IofDT4kxDExx8YnsVrpK20wCfUx8D
> rRfx3Zzzxc7VYE3cSVQmxGc=
> =P7Y1
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20071001/1556143b/attachment.htm 


More information about the collectd mailing list