🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by David Miller Tue, 22 Jun 1999 00:00
CNFSSTAT bombing
#38196
Author: David Miller
Date: Tue, 22 Jun 1999 00:00
29 lines
1672 bytes
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;


I'm assuming it's blowing up because it crossed the 2^32 boundary, but my
perl knowledge is limited enough for this to really be an assumption:)

Is this the expected behavior?  Should I make all the containers < 4GB?  Or 
am I, as usual, doing something stupid?

The particulars: INN2.2 downloaded from isc.org a week ago, bsdi version 4.01.

Thanks,

--- David Miller

Re: CNFSSTAT bombing
#38224
Author: Russ Allbery
Date: Wed, 23 Jun 1999 00:00
60 lines
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/>

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads