NetBSD Problem Report #51549
From www@NetBSD.org Mon Oct 10 09:00:23 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 6B3017A211
for <gnats-bugs@gnats.NetBSD.org>; Mon, 10 Oct 2016 09:00:23 +0000 (UTC)
Message-Id: <20161010090022.2F6C17A2F0@mollari.NetBSD.org>
Date: Mon, 10 Oct 2016 09:00:22 +0000 (UTC)
From: iradu@unix-world.org
Reply-To: iradu@unix-world.org
To: gnats-bugs@NetBSD.org
Subject: Changes in NetBSD 7 kernel break all apps in PKGSRC using Network Statistics
X-Send-Pr-Version: www-1.0
>Number: 51549
>Category: kern
>Synopsis: Changes in NetBSD 7 kernel break all apps in PKGSRC using Network Statistics
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 10 09:05:00 +0000 2016
>Last-Modified: Tue Oct 11 12:50:00 +0000 2016
>Originator: Radu
>Release: 7.0 / 7.0.1 with pkgsrc 2016-Q3
>Organization:
Unix-World.org
>Environment:
NetBSD uxm 7.0.1 NetBSD 7.0.1 (GENERIC.201605221355Z) amd64
>Description:
All applications from PKGSRC using network statistics are broken due recent changes in NetBSD 7.
After some investigations I presume this particular change was breaking all the apps:
* Change mii_statchg to take "struct ifnet *" instead of "device_t". [matt 20120722]
Affected apps from pkgsrc 2014-Q2 up to 2016-Q3, includding current.
I know that the only affected OS is NetBSD 7.0 and 7.0.1.
Under the NetBSD 6.1.5 all works great !!
1. xosview, works but reports that no network interface was found
Reports errors:
xosview: !!! The kernel does not seem to have the symbols needed for the NetMeter.
xosview: !!! The NetMeter has been disabled.
2. libgtop, tested with mate-system-monitor or gnome-system-monitor
Reports errors:
LibGTop-Server: kvm_read (ifnet): Bad address
glibtop: read 2160 bytes: Undefined error: 0
The network statistics applet is broken in either Mate Desktop or Gnome Desktop because of this error and the Mate System Monitor or Gnome System Monitor can't start at all !!
>How-To-Repeat:
compile sysutils/xosview from pkgsrc (any pkgsrc current or in the last 2 years).
under NetBSD 6.1.5 will show the correct network interface statistics
under NetBSD 7.0 / 7.1.0 the network interface statistics will not be displayed, and reports that Network is DISABLED.
the same with libgtop + mate-system-monitor / gnome-system-monitor
I tested on the same hardware computer all 3 situations:
NetBSD 6.1.5, 6.0, 5.0 all work correctly
NetBSD 7.0, 7.0.1 fail
>Fix:
I don't know, either fix code in kernel, or need to patch a lot of apps in PKGSRC which now have broken their support for NetBSD NetStat ...
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->kern-bug-people
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Tue, 11 Oct 2016 07:52:00 +0000
Responsible-Changed-Why:
Probably a kernel COMPAT_60 related problem...
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: leot@NetBSD.org, iradu@unix-world.org
Subject: Re: kern/51549 (Changes in NetBSD 7 kernel break all apps in PKGSRC using Network Statistics)
Date: Tue, 11 Oct 2016 10:07:20 +0200
We do not provide compat for kvm groveling apps, they have to be recompiled.
Apps should avoid that as hard as they can and use sysctl based interfaces
instead.
Martin
From: "iradu@unix-world.org" <iradu@unix-world.org>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: kern/51549 (Changes in NetBSD 7 kernel break all apps in PKGSRC using Network Statistics)
Date: Tue, 11 Oct 2016 13:31:38 +0300
I compiled the reported apps from source using pkgsrc current, pkgsrc 2016Q3=
and also older versions of pkgsrc.
By the way libgtop and xosview are standard apps and nobody can change them a=
s this, they are too complex.
But they are working OK in versions prior to NetBSD 7 !!
By example they work ok in NetBSD 6.1, 6.0, 5.2, 5.1, 5.0, 4.x
Radu
> On 11 Oct 2016, at 11:10, Martin Husemann <martin@duskware.de> wrote:
>=20
> The following reply was made to PR kern/51549; it has been noted by GNATS.=
>=20
> From: Martin Husemann <martin@duskware.de>
> To: gnats-bugs@NetBSD.org
> Cc: leot@NetBSD.org, iradu@unix-world.org
> Subject: Re: kern/51549 (Changes in NetBSD 7 kernel break all apps in PKGS=
RC using Network Statistics)
> Date: Tue, 11 Oct 2016 10:07:20 +0200
>=20
> We do not provide compat for kvm groveling apps, they have to be recompile=
d.
>=20
> Apps should avoid that as hard as they can and use sysctl based interfaces=
> instead.
>=20
> Martin
>=20
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/51549 (Changes in NetBSD 7 kernel break all apps in PKGSRC
using Network Statistics)
Date: Tue, 11 Oct 2016 12:46:03 +0000
On Tue, Oct 11, 2016 at 11:40:01AM +0000, iradu@unix-world.org wrote:
> I compiled the reported apps from source using pkgsrc current,
> pkgsrc 2016Q3 and also older versions of pkgsrc.
> By the way libgtop and xosview are standard apps and nobody can
> change them as this, they are too complex.
On the contrary, this is exactly the kind of situation that the
patches in pkgsrc are for.
> But they are working OK in versions prior to NetBSD 7 !!
> By example they work ok in NetBSD 6.1, 6.0, 5.2, 5.1, 5.0, 4.x
If they are using /dev/kmem (or equivalently, libkvm) that is purely
an accident.
However, if so they ought to work when recompiled for NetBSD 7.x, so
probably something else is going on.
--
David A. Holland
dholland@netbsd.org
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.