Article View: news.software.nntp
Article #38224Re: CNFSSTAT bombing
From: Russ Allbery
Date: Wed, 23 Jun 1999 00:00
Date: Wed, 23 Jun 1999 00:00
60 lines
2623 bytes
2623 bytes
David Miller <dmiller@mote.rsn.com> writes:
> cnfsstat is blowing up on me:( Here's the output:
> su-2.02# cnfsstat
> Class BINARIES for groups matching "alt.binaries,alt.binaries.*"
> Integer overflow in hex number at /usr/local/news/bin/cnfsstat line 445, <STOR> chunk 62.
> Buffer BIN1, len: 4882.81 Mbytes, used: 298.44 Mbytes ( 6.1%) 0 cycles
> Newest: 1999-06-22 2:46:29, 0 days, 2:47:33 ago
> Here's the section of code incnfsstat which is doing it:
> my($len) = bhex($lena);
> ==> my($free) = hex($freea);
> my($update) = hex($updatea);
> my($cyclenum) = hex($cyclenuma) - 1;
Fixed in the STABLE branch months ago. It's a one-line change.
revision 1.3.2.3
date: 1999/01/22 15:29:15; author: kondou; state: Exp; lines: +2 -2
samples/cnfsstat.in:
- From: Russ Allbery <rra@stanford.edu>
- write pointer was not printed correctly
Index: cnfsstat.in
===================================================================
RCS file: /afs/ir/dev/cvs/leland/news/inn/samples/cnfsstat.in,v
retrieving revision 1.3.2.2
retrieving revision 1.3.2.3
diff -u -r1.3.2.2 -r1.3.2.3
--- cnfsstat.in 1998/12/25 01:29:41 1.3.2.2
+++ cnfsstat.in 1999/01/22 15:29:15 1.3.2.3
@@ -1,5 +1,5 @@
#!@_PATH_PERL@
-# $Id: cnfsstat.in,v 1.3.2.2 1998/12/25 01:29:41 kondou Exp $
+# $Id: cnfsstat.in,v 1.3.2.3 1999/01/22 15:29:15 kondou Exp $
#
# Copyright Andreas Lamrecht 1998
# <Andreas.Lamprect@siemens.at>
@@ -442,7 +442,7 @@
}
my($len) = bhex($lena);
- my($free) = hex($freea);
+ my($free) = bhex($freea);
my($update) = hex($updatea);
my($cyclenum) = hex($cyclenuma) - 1;
> Is this the expected behavior? Should I make all the containers < 4GB?
2GB is where you have problems, actually, and no, cnfsstat should be able
to cope. You may want to download a more recent STABLE snapshot; there
have been lots of bug fixes. (A 2.2.1 bug fix release is probably
forthcoming.)
--
Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<ylhfnzay3k.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<FELb3.2813$AZ2.3128@newsr2.maine.rr.com>Show Full Headers
Complete Article Headers
Message-ID: <ylhfnzay3k.fsf@windlord.stanford.edu> Subject: Re: CNFSSTAT bombing Date: Wed, 23 Jun 1999 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <FELb3.2813$AZ2.3128@newsr2.maine.rr.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 492920941 Organization: The Eyrie Newsgroups: news.software.nntp