Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Apr 2008 10:18:58 -0500
From:      Tim Stoddard <tim_stoddard@hotmail.com>
To:        Dan Nelson <dnelson@allantgroup.com>, <freebsd-stable@freebsd.org>
Subject:   RE: auto_nlist failed on cp_time at location 1
Message-ID:  <BAY112-W46FCE6DD0A53179D07B499FFE20@phx.gbl>
In-Reply-To: <BAY112-W14A4215BAA32EA926B6D3BFFE20@phx.gbl>
References:  <BAY112-W393CA2AD5ACD5E09A6AB17FFE30@phx.gbl> <20080424013421.GF99910@dan.emsphone.com>  <BAY112-W14A4215BAA32EA926B6D3BFFE20@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
I applied your patch by hand and recompiled/reinstalled net-snmp, however I=
 am still seeing the same error just on a different memory address now. =20

Apr 24 10:16:41 shaggy snmpd[73273]: kvm_read(*, 1, 0xbf7fe830, 20) =3D -1:=
 kvm_read: Bad address
Apr 24 10:16:41 shaggy snmpd[73273]: auto_nlist failed on cp_time at locati=
on 1
Apr 24 10:16:46 shaggy snmpd[73273]: kvm_read(*, 1, 0xbf7fe830, 20) =3D -1:=
 kvm_read: Bad address
Apr 24 10:16:46 shaggy snmpd[73273]: auto_nlist failed on cp_time at locati=
on 1
Apr 24 10:16:51 shaggy snmpd[73273]: kvm_read(*, 1, 0xbf7fe830, 20) =3D -1:=
 kvm_read: Bad address
Apr 24 10:16:51 shaggy snmpd[73273]: auto_nlist failed on cp_time at locati=
on 1


--
Tim Stoddard

> From: tim_stoddard@hotmail.com
> To: dnelson@allantgroup.com; freebsd-stable@freebsd.org
> Date: Thu, 24 Apr 2008 07:23:21 -0500
> CC:=20
> Subject: RE: auto_nlist failed on cp_time at location 1
>=20
> I cannot get your patch to apply.  Am I doing something wrong?
>=20
> --
> Tim=20
>=20
>=20
> #cp patch-cpu_nlist.c /usr/ports/net-mgmt/net-snmp/files/
> #cd /usr/ports/net-mgmt/net-snmp
> #make clean
> =3D=3D=3D>  Cleaning for net-snmp-5.4.1_2
> #make
>=20
> You may use the following build options:
>=20
> WITH_TKMIB=3Dyes        Install a graphical Perl/Tk/SNMP based mib browse=
r
> WITHOUT_DUMMY_VALUES=3Dyes    Provide 'placeholder' dummy values where
>                 the necessary information is not available.
> WITHOUT_PERL=3Dyes        Do not install the perl modules along with the =
rest
>                 of the net-snmp toolkit.
> WITHOUT_IPV6=3Dyes        Disable IPv6.
>=20
> DEFAULT_SNMP_VERSION=3D"3"    Default version of SNMP to use.
> NET_SNMP_SYS_CONTACT=3D"nobody@nowhere.invalid"
>                 Default system contact.
> NET_SNMP_SYS_LOCATION=3D"somewhere"
>                 Default system location.
> NET_SNMP_LOGFILE=3D"/var/log/snmpd.log"
>                 Default log file location for snmpd.
> NET_SNMP_PERSISTENTDIR=3D"/var/net-snmp"
>                 Default directory for persistent data storage.
> NET_SNMP_MIB_MODULES=3D"host disman/event-mib smux mibII/mta_sendmail mib=
II/tcpTable ucd-snmp/diskio"
>                 Optional mib modules that can be built into the
>                 agent
>=20
> =3D=3D=3D>  Vulnerability check disabled, database not found
> =3D=3D=3D>  Extracting for net-snmp-5.4.1_2
> =3D> MD5 Checksum OK for net-snmp-5.4.1.tar.gz.
> =3D> SHA256 Checksum OK for net-snmp-5.4.1.tar.gz.
> =3D=3D=3D>   net-snmp-5.4.1_2 depends on file: /usr/local/bin/perl5.8.8 -=
 found
> =3D=3D=3D>  Patching for net-snmp-5.4.1_2
> =3D=3D=3D>   net-snmp-5.4.1_2 depends on file: /usr/local/bin/perl5.8.8 -=
 found
> =3D=3D=3D>  Applying extra patch /usr/ports/net-mgmt/net-snmp/files/extra=
-patch-local:Makefile.in
> =3D=3D=3D>  Applying FreeBSD patches for net-snmp-5.4.1_2
> 4 out of 4 hunks failed--saving rejects to agent/mibgroup/hardware/cpu/cp=
u_nlist.c.rej
> =3D> Patch patch-cpu_nlist.c failed to apply cleanly.
> =3D> Patch(es) patch-Makefile.in patch-callback.c applied cleanly.
> *** Error code 1
>=20
> Stop in /usr/ports/net-mgmt/net-snmp.
>=20
>=20
>=20
> > Date: Wed, 23 Apr 2008 20:34:21 -0500
> > From: dnelson@allantgroup.com
> > To: tim_stoddard@hotmail.com
> > CC: freebsd-stable@freebsd.org
> > Subject: Re: auto_nlist failed on cp_time at location 1
> >=20
> > In the last episode (Apr 23), Tim Stoddard said:
> > > I just upgraded from FreeBSD 6.2 ->
> > > 6.3 (using source tree).  I then recompiled my net-snmp port binaries=
 (using
> > > portupgrade).  I am now get error message in my logs every five secs.=
=20
> > > I am sure my libkvm is in sync with my kernel.  I do not know what el=
se
> > > to look at. =20
> >=20
> > You got bit by=20
> >=20
> >  revision 1.178.2.5
> >  date: 2008/04/09 19:47:20;  author: peter;  state: Exp;  lines: +68 -5
> >  MFC: record per-cpu stats for %user/%nice/%system/%idle
> >=20
> > , which removed the kernel variable that net-snmp uses to track CPU
> > usage. Try this patch (put it in /usr/ports/net-mgmt/net-snmp/files and
> > rebuild net-snmp).  I've sent it to the net-snmp port maintainer so
> > hopefully it will be committed soon.
> >=20
> > --=20
> > 	Dan Nelson
> > 	dnelson@allantgroup.com
>=20
> _________________________________________________________________
> Make i'm yours.  Create a custom banner to support your cause.
> http://im.live.com/Messenger/IM/Contribute/Default.aspx?source=3DTXT_TAGH=
M_MSN_Make_IM_Yours_______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"

_________________________________________________________________
Make i'm yours.=A0 Create a custom banner to support your cause.
http://im.live.com/Messenger/IM/Contribute/Default.aspx?source=3DTXT_TAGHM_=
MSN_Make_IM_Yours=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY112-W46FCE6DD0A53179D07B499FFE20>