🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #56046

Re: INND dbz error - reserved bit or overflow

#56046
From: Frank Durda IV
Date: Fri, 11 Jan 2002 02:55
114 lines
6086 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:
: what version of dbz?

Ah, an interesting point.  Supposedly it is the one that came in INN 1.5.1,
(3.2) BUT, it has been re-worked somewhat by David Butler (you'll find his
name in the dbz credits for some fixes from way way back in 1988 and who used
to work here) to deal with the 64bit processor environment, as the stock
1.5.1 dbz apparently "behaved poorly" on the Alpha out of the box, expecting
long==int and both be 32 bit in some shifts, masks and things.     These
changes were made prior to me arriving, but I suspect the bulk of the work
was liberal use of casts and being more accurate in selecting long vs int,
unsigned vs signed, etc.

Although I assume later versions of dbz handle this 64bit environment better
out of the box, we are somewhat stuck and can't easily migrate even to just
that newer module, because its interfaces to the rest of innd/nnrpd/backends
changed too much, and we are pretty-much chained to the nnrpd we have now.
(Innd, expire, and makehistory we could upgrade without major grief.  If
the .pag files were truly compatible between old and new, that might be a way
out, but the dbz documentation is hazy at best about what it is doing.)

For the other person asking, this is the alpha world, long==64 bits:
(From /usr/include/sys/machine/machlimits.h - if I said int==32 in the base
post, I meant to say long was 64)

#define CHAR_BIT        8               /* number of bits in a char */

#define SCHAR_MIN       (-128)          /* min value for a signed char */
#define SCHAR_MAX        127            /* max value for a signed char */

#define CHAR_MAX         127            /* max value for a char */
#define CHAR_MIN        (-128)          /* min value for a char */

#define SHRT_MAX         32767          /* max value for a short */
#define SHRT_MIN        (-32768)        /* min value for a short */

#define INT_MAX          2147483647     /* max value for an int */
#define INT_MIN         (-INT_MAX-1)    /* min value for an int -- define in */
                                        /* sneaky way so result type is int */

#define LONG_MAX         9223372036854775807 /* max value for a long */
#define LONG_MIN        (-LONG_MAX-1)   /* min value for a long -- define in */
                                        /* sneaky way so restul type is long */

#define UCHAR_MAX       255U          /* max value for an unsigned char */
#define USHRT_MAX       65535U        /* max value for an unsigned short */
#define UINT_MAX        4294967295U   /* max value for an unsigned int */
#define ULONG_MAX       18446744073709551615U   /* max value for an unsigned lon
g */


: The errors you're getting suggest that either you're using a version
: that has tagged-hash but not 'offset fuzzy', or alternatively (if you
: _do_ have offset fuzzy) that the number of drop bits isn't being
: calculated correctly. As a result, it's dying when it gets to an
: offset of 2GB, because the top bit (of 32) is reserved for indicating
: whether or not the tag is present. (None of the dbz versions I've
: looked at in any detail have anything like functional support for
: 64-bit platforms.)

Not that it matters, but the alpha fseek is 64bits:

  int fseek(
          FILE *stream,
          long int offset,
          int whence);


: 
: What does the .dir file look like?
: 

dbz 3 49527551 9 C 2147483648 2147483647 32 8 7 6 5 4 3 2 1 0
32142688 32963747 32887444 33018367 32710724 32147282 32160779 32127315 32074949
 32010527 31950873

That's from the last expire that was successful.   Subsequent attempts with
the same flat file all abort as shown, and only leave a zero-length .pag
file and this .dir file:

dbz 3 74291333 9 C 128 127 24 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0

which is likely incomplete.



A snippet of history.pag from an operational file looks like:
0122620  0000 0000 0000 0000 eb71 2c9e 0002 8000
0122640  0000 0000 0000 0000 0000 0000 0000 0000
0122660  0df3 a529 0002 8000 c1b0 32f7 0001 8000
0122700  0000 0000 0000 0000 0000 0000 0000 0000
*
0122740  0000 0000 0000 0000 6f16 b41e 0000 8000
0122760  0000 0000 0000 0000 b618 94c5 0001 8000
0123000  0000 0000 0000 0000 0000 0000 0000 0000
*
0123340  0000 0000 0000 0000 fc59 086c 0002 8000
0123360  0000 0000 0000 0000 0000 0000 0000 0000
0123400  0000 0000 0000 0000 38e4 89e7 0003 8000
0123420  e091 393e 0001 8000 0000 0000 0000 0000
0123440  0000 0000 0000 0000 0000 0000 0000 0000
*

Alpha word order:  (original string 1234567890\n\n)
0000000  34333231 38373635 0a0a3039


Frank Durda IV - only this address works:|
   <uhclem.jan02%nemesis.lonestar.org>   |
This Anti-spam address expires Jan. 31st |
Copr. 2002, ask before reprinting.

Technical Details
Message-ID: <F841EE9CD8FE82F6.224B176533E89059.DF5C6077B2B98EC5@lp.airnews.net>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!netnews.com!xfer02.netnews.com!newsfeed1.cidera.com!Cidera!cyclone.socal.rr.com!cyclone.hawaii.rr.com!news-west.rr.com!news.airnews.net!cabal10.airnews.net!cabal1.airnews.net!news-f.iadfw.net!not-for-mail
References: <1CA5B26ADEFC3A80.29739C3546338F71.3F7F288F625DB01E@lp.airnews.net> <87lmf5afrd.fsf@erlenstar.demon.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <F841EE9CD8FE82F6.224B176533E89059.DF5C6077B2B98EC5@lp.airnews.net>
Subject: Re: INND dbz error - reserved bit or overflow
Date: Fri, 11 Jan 2002 02:55:41 +0000
From: Frank Durda IV <uhclem.jan02@nemesis.lonestar.org>
References: <1CA5B26ADEFC3A80.29739C3546338F71.3F7F288F625DB01E@lp.airnews.net> <87lmf5afrd.fsf@erlenstar.demon.co.uk>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!netnews.com!xfer02.netnews.com!newsfeed1.cidera.com!Cidera!cyclone.socal.rr.com!cyclone.hawaii.rr.com!news-west.rr.com!news.airnews.net!cabal10.airnews.net!cabal1.airnews.net!news-f.iadfw.net!not-for-mail
Newsgroups: news.software.nntp
Organization: The Big Blue Box
Lines: 113
X-Orig-Message-ID: <a1lk7d$gnv@library1.airnews.net>
Abuse-Reports-To: abuse at airmail.net to report improper postings
NNTP-Proxy-Relay: library1-aux.airnews.net
NNTP-Posting-Time: Thu Jan 10 20:55:41 2002
NNTP-Posting-Host: !^co;0d(nNrPPf= (Encoded at Airnews!)
X-P-Persistent-Headers: are a bad idea.