Debian Bug report logs - #613567
processes plugin blocks shutdown and crashes collectd (kFreeBSD only)

version graph

Package: collectd; Maintainer for collectd is Sebastian Harl <tokkee@debian.org>; Source for collectd is src:collectd.

Reported by: Marc Fournier <bz@bl.uem.li>

Date: Tue, 15 Feb 2011 18:15:05 UTC

Severity: important

Tags: moreinfo, unreproducible

Found in version collectd/4.10.1-1+squeeze2

Done: Marc Fournier <bz@bl.uem.li>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, bz@bl.uem.li, Sebastian Harl <tokkee@debian.org>:
Bug#613567; Package collectd. (Tue, 15 Feb 2011 18:15:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Marc Fournier <bz@bl.uem.li>:
New Bug report received and forwarded. Copy sent to bz@bl.uem.li, Sebastian Harl <tokkee@debian.org>. (Tue, 15 Feb 2011 18:15:08 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Marc Fournier <bz@bl.uem.li>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: processes plugin blocks shutdown and crashes collectd (kFreeBSD only)
Date: Tue, 15 Feb 2011 14:11:01 -0500
Package: collectd
Version: 4.10.1-1+squeeze2
Severity: important


When running collectd with the "processes" plugin on a kFreeBSD kernel, I
noticed that it complains about a "double free or corruption" and then fails
to stop properly after hitting Ctrl-C. I am forced to use kill -9.

root@debian:~# egrep -v '^$|^#' /etc/collectd/collectd.conf
FQDNLookup true
LoadPlugin processes
Include "/etc/collectd/filters.conf"
Include "/etc/collectd/thresholds.conf"

root@debian:~# collectd -f
*** glibc detected *** collectd: double free or corruption (top): 0x00000000006390b0 ***
Initialization complete, entering read-loop.
^CExiting normally.
collectd: Stopping 5 read threads.
^C
Killed

When running in test mode (-T), collectd dumps a core file:

root@debian:~# collectd -T
*** glibc detected *** collectd: double free or corruption (top): 0x0000000000634be0 ***
Aborted (core dumped)

root@debian:~# gdb /usr/sbin/collectd /var/lib/collectd/collectd.core
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-kfreebsd-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/collectd...(no debugging symbols found)...done.
Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/libltdl.so.7...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libltdl.so.7
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libc.so.0.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.0.1
Reading symbols from /lib/ld-kfreebsd-x86-64.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-kfreebsd-x86-64.so.1
Reading symbols from /usr/lib/collectd/processes.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/collectd/processes.so
Reading symbols from /lib/libkvm.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libkvm.so.0
Reading symbols from /lib/libbsd.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libbsd.so.0
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_files.so.2
Core was generated by `collectd'.
Program terminated with signal 6, Aborted.
#0  0x0000000800e9da77 in kill () from /lib/libc.so.0.1
(gdb) bt
#0  0x0000000800e9da77 in kill () from /lib/libc.so.0.1
#1  0x000000080084ab20 in pthread_kill () from /lib/libpthread.so.0
#2  0x000000080084ab52 in raise () from /lib/libpthread.so.0
#3  0x0000000800ea0413 in abort () from /lib/libc.so.0.1
#4  0x0000000800ed0d5e in ?? () from /lib/libc.so.0.1
#5  0x0000000800ed97d6 in ?? () from /lib/libc.so.0.1
#6  0x0000000800ede71a in free () from /lib/libc.so.0.1
#7  0x00000008013b4a70 in _kvm_realloc () from /lib/libkvm.so.0
#8  0x00000008013b5334 in kvm_getprocs () from /lib/libkvm.so.0
#9  0x00000008011b0093 in ?? () from /usr/lib/collectd/processes.so
#10 0x000000000040baf2 in plugin_read_all_once ()
#11 0x0000000000406085 in main ()
(gdb)

This problem doesn't occur on squeeze's Linux (amd64) kernel. I didn't test
any other architecture.

Thanks !
Marc

-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages collectd depends on:
ii  collectd-core          4.10.1-1+squeeze2 statistics collection and monitori
ii  libc0.1                2.11.2-10         Embedded GNU C Library: Shared lib
ii  librrd4                1.4.3-1           time-series data storage and displ

Versions of packages collectd recommends:
ii  libatk1.0-0            1.30.0-1          The ATK accessibility toolkit
ii  libc0.1                2.11.2-10         Embedded GNU C Library: Shared lib
ii  libcairo2              1.8.10-6          The Cairo 2D vector graphics libra
ii  libcurl3-gnutls        7.21.0-1          Multi-protocol file transfer libra
ii  libdbi0                0.8.2-3           Database Independent Abstraction L
ii  libdbus-1-3            1.2.24-4          simple interprocess messaging syst
ii  libdbus-glib-1-2       0.88-2.1          simple interprocess messaging syst
ii  libesmtp5              1.0.4-5           LibESMTP SMTP client library
ii  libfontconfig1         2.8.0-2.1         generic font configuration library
ii  libfreetype6           2.4.2-2.1         FreeType 2 font engine, shared lib
ii  libgcrypt11            1.4.5-2           LGPL Crypto library - runtime libr
ii  libglib2.0-0           2.24.2-1          The GLib library of C routines
ii  libgtk2.0-0            2.20.1-2          The GTK+ graphical user interface 
ii  libhal1                0.5.14-3          Hardware Abstraction Layer - share
ii  libkvm0                8.1-5             FreeBSD kvm (kernel memory interfa
ii  libmemcached5          0.40-1            A C and C++ client library to the 
ii  libmysqlclient16       5.1.49-3          MySQL database client library
ii  libnotify1 [libnotify1 0.5.0-2           sends desktop notifications to a n
ii  libopenipmi0           2.0.16-1.2        Intelligent Platform Management In
ii  liboping0              1.4.0-1           C/C++ library to generate ICMP ECH
ii  libpango1.0-0          1.28.3-1+squeeze1 Layout and rendering of internatio
ii  libpcap0.8             1.1.1-2           system interface for user-level pa
ii  libperl5.10            5.10.1-17         shared Perl library
ii  libpq5                 8.4.7-0squeeze2   PostgreSQL C client library
ii  libprotobuf-c0         0.12-3+b1         Protocol Buffers C library
ii  libpython2.6           2.6.6-8+b1        Shared Python runtime library (ver
ii  librrd4                1.4.3-1           time-series data storage and displ
ii  libsnmp15              5.4.3~dfsg-2      SNMP (Simple Network Management Pr
ii  libssl0.9.8            0.9.8o-4squeeze1  SSL shared libraries
ii  libupsclient1          2.4.3-1.1squeeze1 network UPS tools - client library
ii  libxml2                2.7.8.dfsg-2      GNOME XML library
ii  libyajl1               1.0.8-1           Yet Another JSON Library

collectd suggests no packages.

-- Configuration Files:
/etc/collectd/collectd.conf changed [not included]

-- no debconf information




Added tag(s) unreproducible. Request was from Sebastian Harl <tokkee@debian.org> to control@bugs.debian.org. (Sat, 19 May 2012 18:21:08 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#613567; Package collectd. (Sat, 19 May 2012 18:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sebastian Harl <tokkee@debian.org>:
Extra info received and forwarded to list. (Sat, 19 May 2012 18:30:02 GMT) Full text and rfc822 format available.

Message #12 received at 613567@bugs.debian.org (full text, mbox):

From: Sebastian Harl <tokkee@debian.org>
To: Marc Fournier <bz@bl.uem.li>, 613567@bugs.debian.org
Subject: Re: Bug#613567: processes plugin blocks shutdown and crashes collectd (kFreeBSD only)
Date: Sat, 19 May 2012 20:18:13 +0200
[Message part 1 (text/plain, inline)]
tags 613567 + unreproducible
thanks

Hi,

On Tue, Feb 15, 2011 at 02:11:01PM -0500, Marc Fournier wrote:
> When running collectd with the "processes" plugin on a kFreeBSD kernel, I
> noticed that it complains about a "double free or corruption" and then fails
> to stop properly after hitting Ctrl-C. I am forced to use kill -9.

I cannot reproduce that with version 4.10.1-2.1 (and 4.10.7-1 just
uploaded today). So, I suppose that's fixed post-Squeeze. Can you verify
that on your system as well?

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

[signature.asc (application/pgp-signature, inline)]

Added tag(s) moreinfo. Request was from Sebastian Harl <tokkee@debian.org> to control@bugs.debian.org. (Sun, 10 Jun 2012 11:19:32 GMT) Full text and rfc822 format available.

Reply sent to Marc Fournier <bz@bl.uem.li>:
You have taken responsibility. (Sat, 27 Oct 2012 17:33:03 GMT) Full text and rfc822 format available.

Notification sent to Marc Fournier <bz@bl.uem.li>:
Bug acknowledged by developer. (Sat, 27 Oct 2012 17:33:03 GMT) Full text and rfc822 format available.

Message #19 received at 613567-done@bugs.debian.org (full text, mbox):

From: Marc Fournier <bz@bl.uem.li>
To: Sebastian Harl <tokkee@debian.org>
Cc: 613567-done@bugs.debian.org
Subject: Re: Bug#613567: processes plugin blocks shutdown and crashes collectd (kFreeBSD only)
Date: Sat, 27 Oct 2012 19:30:22 +0200
Hello,

On Sat, May 19, 2012 at 08:18:13PM +0200, Sebastian Harl wrote:
> On Tue, Feb 15, 2011 at 02:11:01PM -0500, Marc Fournier wrote:
> > When running collectd with the "processes" plugin on a kFreeBSD kernel, I
> > noticed that it complains about a "double free or corruption" and then fails
> > to stop properly after hitting Ctrl-C. I am forced to use kill -9.
> 
> I cannot reproduce that with version 4.10.1-2.1 (and 4.10.7-1 just
> uploaded today). So, I suppose that's fixed post-Squeeze. Can you verify
> that on your system as well?

I tested collectd 5.1.0-3 as well as 4.10.1-1+squeeze2 on a freshly
installed debian-kfreebsd (kernel version 9.0-2). I also was unable to
reproduce this issue. I believe you are right: this problem was related to
kfreebsd itself, not collectd. I'm closing this bug. Thanks !

Cheers,
Marc




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 25 Nov 2012 07:28:28 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 25 09:36:49 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.