🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #25112

dbz "can't tag" errors

#25112
From: System Operator
Date: Mon, 12 Jan 1998 00:00
79 lines
3118 bytes

Hi.  Has anyone seen errors like this in the news errlog?

  can't tag value 0x12d2c2e tagboth = 0xff000000
  can't tag value 0x12d2c58 tagboth = 0xff000000
  can't tag value 0x12d2c7c tagboth = 0xff000000

We have thousands of them this morning after starting inn from
scratch on two new stripe sets yesterday.  We started with empty
history and spool and a new full active file to reset.  We didn't
see errors like this when we first upgraded to inn 1.7.2 a couple
of weeks ago, however.

I found where the message is printed, in dbz.c.  dbz 3.3 prints this
message, and looking at dbz 3.2 I see that that one can fail in the
same way but it does so silently, without complaining to errlog.
Unfortunately, I'm extremely green at C, so don't understand it well.
Our history* files have news owner and group permissions, and appear
to be updating ok today.  Here's the dbz.c code:

dbz3.3:
--------------------------------
[...]
#define CANTAG(o)       (((o)&tagboth) == 0)
[...]

/*
 - set - store a value into a location previously found by search
 */
static int                      /* 0 success, -1 failure */
set(sp, value)
register struct searcher *sp;
of_t value;
{
        register of_t place = sp->place;
        register of_t v = value;

        if (sp->aborted)
                return(-1);

        if (CANTAG(v) && !conf.olddbz) {
                v |= sp->tag | taghere;
                if (v != UNBIAS(VACANT))        /* BIAS(v) won't look VACANT */
#ifdef OVERFLOW
                        if (v != LONG_MAX)      /* and it won't overflow */
#endif
                        value = v;
        } else {
                fprintf(stderr, "can't tag value 0x%lx", v);
                fprintf(stderr, " tagboth = 0x%lx\n", tagboth);
        }
        DEBUG(("tagged value is 0x%lx\n", value));
        value = BIAS(value);
        value = MAPOUT(value);

        /* If we have the index file in memory, use it */
        if (corepag != NULL && place < conf.tsize) {
                corepag[place] = value;
                DEBUG(("set: incore\n"));
#ifdef MMAP
                return(0);
#else
                if (!writethrough)
                        return(0);
#endif
------------------------------------------

(dbz 3.2 omits the fprintf(stderr...) else clause.)

We don't have MMAP enabled for dbz.  We are on DEC DU 4.0b.

Many thanks in advance for any advice.

-Ann Cantelow
 cantelow@athena.csdco.com
 sysop@atlas.csd.net

Technical Details
Message-ID: <69dfeo$qn0$1@apollo.csd.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!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <69dfeo$qn0$1@apollo.csd.net>
Subject: dbz "can't tag" errors
Date: Mon, 12 Jan 1998 00:00:00 +0000
From: sysop@atlas.csd.net (System Operator)
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: 315255605
Summary: dbz producing thousands of "can't tag" errs
Keywords: dbz tag nntp errors
Distribution: inet
Organization: Computer Systems Design Company
Newsgroups: news.software.nntp