Bug#829634: collectd: Please rebuild with linux-libc-dev >= 4.6

2016-07-05 Thread Sebastian Harl
Hi,

On Mon, Jul 04, 2016 at 10:52:51PM +0200, Gábor Gombás wrote:
> The size of the rtnl_link_stats64 structure changed in Linux 4.6 by
> commit 6e7333d315a768170a59ac771297ee0551bdddbf, which causes the
> netlink plugin to fail:

Thanks for reporting this!

Ftr, this is a link to the commit:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6e7333d315a768170a59ac771297ee0551bdddbf

> Jul  4 22:14:28 host collectd[3022]: netlink plugin: link_filter_cb: 
> IFLA_STATS64 mnl_attr_validate2 failed.
> Jul  4 22:14:28 host collectd[3022]: netlink plugin: ir_read: 
> mnl_socket_recvfrom failed.
> Jul  4 22:14:28 host collectd[3022]: read-function of plugin `netlink' 
> failed. Will suspend it for 120.000 seconds.
> 
> Recompiling with headers from 4.6 should fix this (and would make the
> plugin fail with older kernels). The right fix would be to handle such
> structure extensions gracefully, but after a quick look, the libmnl
> library which the netlink plugin uses does not seem to have built-in
> support for that.

I think this will continue to work with older kernels after recompiling
it. The change to the struct is backward-compatible since the new field
is appended to the end and (from skimming over some of the code) it
seems like other places handle this fine. The problem we encountered
here is that the size we provided was smaller than expected.

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x2F1FFCC7 +++ 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
Description: Digital signature


Bug#829634: collectd: Please rebuild with linux-libc-dev >= 4.6

2016-07-04 Thread Gábor Gombás
Package: collectd
Version: 5.5.1-4
Severity: normal

Hi,

The size of the rtnl_link_stats64 structure changed in Linux 4.6 by
commit 6e7333d315a768170a59ac771297ee0551bdddbf, which causes the
netlink plugin to fail:

Jul  4 22:14:28 host collectd[3022]: netlink plugin: link_filter_cb: 
IFLA_STATS64 mnl_attr_validate2 failed.
Jul  4 22:14:28 host collectd[3022]: netlink plugin: ir_read: 
mnl_socket_recvfrom failed.
Jul  4 22:14:28 host collectd[3022]: read-function of plugin `netlink' failed. 
Will suspend it for 120.000 seconds.

Recompiling with headers from 4.6 should fix this (and would make the
plugin fail with older kernels). The right fix would be to handle such
structure extensions gracefully, but after a quick look, the libmnl
library which the netlink plugin uses does not seem to have built-in
support for that.

Gabor

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (102, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.3 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages collectd depends on:
ii  collectd-core  5.5.1-4
ii  libc6  2.22-13
ii  librrd81.6.0-1

Versions of packages collectd recommends:
pn  default-jre-headless  
ii  iptables  1.6.0-2
ii  libatasmart4  0.19-4
ii  libcurl3-gnutls   7.47.0-1
ii  libdbi1   0.9.0-4
pn  libesmtp6 
pn  libganglia1   
ii  libgcrypt20   1.7.1-2
ii  libgdk-pixbuf2.0-02.34.0-1
ii  libglib2.0-0  2.48.1-1
pn  libhiredis0.13
ii  libldap-2.4-2 2.4.42+dfsg-2+b2
ii  liblvm2app2.2 2.02.156-1
pn  libmemcached11
ii  libmnl0   1.0.3-5
pn  libmodbus5
ii  libmysqlclient18  5.6.30-1
ii  libnotify40.7.6-2
ii  libnspr4  2:4.12-2
ii  libnss3   2:3.23-2
pn  libopenipmi0  
pn  liboping0 
pn  libowcapi-3.1-1   
ii  libpcap0.81.7.4-2
ii  libperl5.22   5.22.2-1
ii  libpq59.5.3-1
ii  libprotobuf-c11.2.1-1
ii  libpython2.7  2.7.12-1
pn  librabbitmq4  
pn  librdkafka1   
ii  librrd8   1.6.0-1
ii  libsensors4   1:3.4.0-3
pn  libsigrok2
ii  libsnmp30 5.7.3+dfsg-1.4
ii  libssl1.0.2   1.0.2h-1
pn  libtokyotyrant3   
ii  libudev1  230-2
pn  libupsclient4 
pn  libvarnishapi1
ii  libvirt0  2.0.0-1
ii  libxml2   2.9.3+dfsg1-1.2
ii  libyajl2  2.1.0-2
ii  zlib1g1:1.2.8.dfsg-2+b1

collectd suggests no packages.

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

-- no debconf information