Your message dated Sat, 27 Oct 2012 19:30:22 +0200
with message-id <[email protected]>
and subject line Re: Bug#613567: processes plugin blocks shutdown and crashes
collectd (kFreeBSD only)
has caused the Debian Bug report #613567,
regarding processes plugin blocks shutdown and crashes collectd (kFreeBSD only)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
613567: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613567
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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
--- End Message ---