[collectd] Segmentation fault using perl plugin

Justo Alonso justo.alonso at gmail.com
Mon Oct 1 15:27:45 CEST 2007


Hi
   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 ??

thanks in advance, and soryy for my english !
;-)
j

On 9/27/07, Sebastian Harl <sh at tokkee.org> wrote:
>
> Hi Justo,
>
> On Thu, Sep 27, 2007 at 05:49:15PM +0200, Justo Alonso wrote:
> >     Two days ago, I wrote to the list about a perl plugin example
> (thanks,
> > again!) but the plugin doesn't  work. When I try the example plugin, the
> > write callback function crashes (segfault) collectd daemon. If I comment
> the
> > plugin_register line of TYPE_WRITE, it doesn't crash, but the data is
> not
> > sent to the server. I try
>
> The plugin works fine for me. This is most probably a bug (or yet another
> strange system dependent behavior of perl) in the perl plugin (as in
> perl.so)
> but not MyPlugin.pm. Debugging the perl plugin is somewhat awkward. Can
> you
> please generate a core dump and send in the core file, the collectd
> binary,
> perl.so, collectd.conf, MyPlugin.pm (in case you changed anything) and the
> output generated by collectd. To generate the core file, you probably have
> to
> do something like the following:
>
>   % ulimit -c unlimited
>   % collectd -f > collectd.out 2>&1
>
> It would be very helpful if you recompile collectd with --enable-debug,
> enable
> the logfile plugin and configure it to write to stdout and set the debug
> level
> to "debug".
>
> Thanks in advance.
>
> HTH,
> 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
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFG+9ZUEFEKc4UBx/wRAmuPAJ9iMqKZuYmQ7NsRq/nM/R1nliGSdACgi7HN
> MUn+YVDQRXwKW4de34ACQyM=
> =TsoE
> -----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/44b701e3/attachment.htm 


More information about the collectd mailing list