🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Frank Durda IV Thu, 10 Jan 2002 04:12
INND dbz error - reserved bit or overflow
#56023
Author: Frank Durda IV
Date: Thu, 10 Jan 2002 04:12
78 lines
3867 bytes
Anyone know what makehistory/dbz is complaining about in the following
example?  (I had to turn debug on to get anything more than "Can't store
<msgid>: No such file or directory" or some other random and completely
bogus errno answer due to bad coding in dbz.)

Deleting the offending and adjacent entries simply causes a failure further
down in the same flat file.

...
store: used count 22015401
tagged value is 0x7ffffe5c
set: incore
dbzstore: (<YVnX7.12046$kK1.87910@rwcrnsc52>)
store: (<YVnX7.12046$kK1.87910@rwcrnsc52>, 2147483327)
hash: returns (2023618469)
tag 0x1b000000
search @ 39117362
search: in core
got 0x42c272c8
tagless
search @ 39117363
search: in core
search: empty slot
store: used count 22015402
tagged value is 0x7ffffebf
set: incore
dbzstore: (<91oX7.15678$mu.7987232@typhoon.neo.rr.com>)
store: (<91oX7.15678$mu.7987232@typhoon.neo.rr.com>, 2147483456)
hash: returns (1495928759)
tag 0x14000000
search @ 25927939
search: in core
search: empty slot
store: used count 22015403
tagged value is 0x7fffff40
set: incore
dbzstore: (<newsw-337086.10310629122001@news>)
store: (<newsw-337086.10310629122001@news>, 2147483569)
hash: returns (1023642964)
tag 0xd000000
search @ 68142431
search: in core
search: empty slot
store: used count 22015404
tagged value is 0x7fffffb1
set: incore
dbzstore: (<29120119.2052@hotmail.com>)
store: (<29120119.2052@hotmail.com>, 2147483653)
store: reserved bit or overflow in 0x80000005


The "reserved bit or overflow" error is consistently the reason makehistory
aborts, while the value shown varies slightly, but always starts with
0x80000...			

Small subsets of a million entries (split output) containing these 
same entries shown in the failure log build without incident.

The full flat file is just over 3.1GB, while the .pag file has been hovering 
around 750Meg.  The offending article shown in the example above has been
in the database without incident since late December, so expire has
successfully rebuilt history containing that item a dozen times until today.
(Removing it and adjacent lines simply moves the failure further down in the
file, and it is only making it about 75% through the flat file when it dies.
Platform is a 64bit Alpha, running OSF-1/Tru64, eg 64bit ints.  First time
in years we have seen anything like this.  (Prior times, it was nulls in the
flat file, which isn't the case now.)

Any ideas as to what dbz is trying to say?


Frank Durda IV - only this address works:|"Parsedate.y updates are found to
   <uhclem.jan02%nemesis.lonestar.org>   | actually convert any string of
				         | numbers or letters into a valid date
This Anti-spam address expires Jan. 31st | in the year 2000, or on randon days,
Copr. 2002, ask before reprinting. | a complete 17th century violin concerto."

Re: INND dbz error - reserved bit or overflow
#56037
Author: Generic INNbot
Date: Thu, 10 Jan 2002 23:52
36 lines
2214 bytes
Moin, moin!
%s wrote on %.3s, %lld Sep 1993

> Anyone know what makehistory/dbz is complaining about in the following

> tagged value is 0x7ffffe5c
> store: (<YVnX7.12046$kK1.87910@rwcrnsc52>, 2147483327)
> [...]
> tagged value is 0x7ffffebf
> store: (<91oX7.15678$mu.7987232@typhoon.neo.rr.com>, 2147483456)
> [...]
> tagged value is 0x7fffff40
> store: (<newsw-337086.10310629122001@news>, 2147483569)
> [...]
> tagged value is 0x7fffffb1
> store: (<29120119.2052@hotmail.com>, 2147483653)
> store: reserved bit or overflow in 0x80000005

> The "reserved bit or overflow" error is consistently the reason makehistory
> aborts, while the value shown varies slightly, but always starts with
> 0x80000...                      

Sounds like there's a signed 32-bit limit in there, when you
are in need of at least an unsigned long or similar, at least
for a little while, after which you'll have to look into 64-bit


> Platform is a 64bit Alpha, running OSF-1/Tru64, eg 64bit ints.

What size longs?  I haven't looked at the k0deZ in years to have
a clue as to what you might be running into and how it's defined


Mahlzeit.

Re: INND dbz error - reserved bit or overflow
#56039
Author: Andrew Gierth
Date: Fri, 11 Jan 2002 00:32
24 lines
2008 bytes
>>>>> "Frank" == Frank Durda IV <uhclem.jan02@nemesis.lonestar.org> writes:

 Frank> Anyone know what makehistory/dbz is complaining about in the
 Frank> following example?  (I had to turn debug on to get anything
 Frank> more than "Can't store <msgid>: No such file or directory" or
 Frank> some other random and completely bogus errno answer due to bad
 Frank> coding in dbz.)

what version of dbz?

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.)

What does the .dir file look like?

-- 
Andrew.
Re: INND dbz error - reserved bit or overflow
#56040
Author: Genetic Meowbot
Date: Fri, 11 Jan 2002 00:50
18 lines
2446 bytes
Frank Durda IV <uhclem.jan02@nemesis.lonestar.org> wrote:

> Anyone know what makehistory/dbz is complaining about in the following
> example?  (I had to turn debug on to get anything more than "Can't store
> <msgid>: No such file or directory" or some other random and completely
> bogus errno answer due to bad coding in dbz.)

[...]

> store: reserved bit or overflow in 0x80000005

You're building values big enough to clobber the tag marker.

You might experiment with recompiling dbz with NOTAGS and see if that
helps for the time being, but what you'll really need to do is look at
the definition of of_t (normally a long in dbz).  of_t's size is tied
to stdio's fseek limits, so fixing this for real could be messy.
Re: INND dbz error - reserved bit or overflow
#56046
Author: 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.

Re: INND dbz error - reserved bit or overflow
#56048
Author: Andrew Gierth
Date: Fri, 11 Jan 2002 03:34
19 lines
1808 bytes
>>>>> "Frank" == Frank Durda IV <uhclem.jan02@nemesis.lonestar.org> writes:

 AG> What does the .dir file look like?

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

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

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

Hrm. exactly what parameters are you giving to makehistory?

-- 
Andrew.
Re: INND dbz error - reserved bit or overflow
#56067
Author: Heretic Meowbot
Date: Sat, 12 Jan 2002 00:56
31 lines
2232 bytes
Serwoas!
%s wrote on %.3s, %lld Sep 1993

>  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.)

It's been many years, and thousands, if not hundreds of thousands
of beers ago, so it is little more than a fuzzy memory for me, but
Joe Greco's 64-bit of_t hacks sound somewhat similar to what is
used here.  Problem is, the only thing I can remember of them is
that they still retain the relative inefficiency of 32-bit value
calculations for something that escapes me now, so it's somewhat an
improvement but nowhere near as much as it could be.

I was running hacked dbz based on this something like half a decade
ago but I can't remember what all gets long-long-ified.  Like if
it has full support for huge files.  So I should just shut up now.


> What does the .dir file look like?

PLZ P0ST THE .PAG & TEXT FILEZ THANK U



Mahlzeit.

Re: INND dbz error - reserved bit or overflow
#56117
Author: Frank Durda IV
Date: Tue, 15 Jan 2002 03:34
15 lines
1934 bytes
Heretic Meowbot <INN-abNOSPAMuser@remove-nospam-to-reply.dastardly.newsbastards.org.72.27.172.in-addr.arpa.netscum.dyndns.dk> wrote:
: 
: PLZ P0ST THE .PAG & TEXT FILEZ THANK U

How about if I just mail the flat file (3.2Gbyte) to you?
The .pag file is about 600Meg should also fit...     :-)


Frank Durda IV - only this address works:| The Gartner Group recommends
   <uhclem.jan02%nemesis.lonestar.org>   | that any site using Microsoft IIS
                                         | immediately seek alternatives until  
This Anti-spam address expires Jan. 31st | IIS can be completely re-written."
Copr. 2002, ask before reprinting.

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