INN 2.2.1 ARTICLE Problem
Wolfgang Breyha
wbreyha at gmx.net
Mon Nov 15 23:40:50 UTC 1999
Ok guys!
I think I've a problem;-) Or probably INN 2.2.1 has one.
I've debugged now till 00:15 AM *snorr*.....
I've done the following:
First of all I've done a
grephistory '<80oar8$13f1n$2 at fu-berlin.de>'
and the result was...
/news/spool/articles/at/test/7190
So my history and dbz files seem to be ok.
Then I've compared sources of article.c and grephistory.c.
both did the same till dbzfetch, but the "key"-value was not the same for
the same Message-ID.
So I begun to debug into
HashMessageID(); -->lib/hash.c
Again everything seems fine except the result of Hash(); That means that
the MessageID is right till it gets copied to "new". "new" is ok, too. Even
exactly before it jumps to hash();
So I changed Hash() to:
HASH Hash(const void *value, const size_t len) {
MD5_CTX context;
HASH hash;
MD5Init(&context);
printf("%x\n",context.buf[0]);
MD5Update(&context, value, len);
printf("%x\n",context.buf[0]);
MD5COUNT(&context, len);
printf("%x\n",context.buf[0]);
MD5Final(&context);
printf("%x\n",context.buf[0]);
memcpy(&hash,
&context.digest,
(sizeof(hash) < sizeof(context.digest)) ? sizeof(hash) :
sizeof(context.digest));
return hash;
}
Note that context.buf[0] is initialized in MD5Init with:
md5Ctx->buf[0] = (U_INT32_T)0x67452301;
Since both grephistory and nnrpd use the same funtions of lib/md5.c and
lib/hash.c I was able to compare them perfectly.
And the output of grephistory was (as i expected):
[news at news expire]$ ./grephistory '<80oar8$13f1n$2 at fu-berlin.de>'
67452301
67452301
67452301
896190b6
/news/spool/articles/at/test/7190
but the output of nnrpd was:
stat <80oar8$13f1n$2 at fu-berlin.de>
<80oar8$13f1n$2 at fu-berlin.de>i
1d
1d
1d
Segmentation fault (core dumped)
The coredump doesn't disturb me really much, because i think that's the
result of the wrong values in context.buf[0]..1..2..3.
But what the hell is going on???
MD5Init reads like:
void
MD5Init(md5Ctx)
MD5_CTX *md5Ctx;
{
/* load magic initialization constants */
md5Ctx->buf[0] = (U_INT32_T)0x67452301;
md5Ctx->buf[1] = (U_INT32_T)0xefcdab89;
md5Ctx->buf[2] = (U_INT32_T)0x98badcfe;
md5Ctx->buf[3] = (U_INT32_T)0x10325476;
/* Initialise bit count */
md5Ctx->countLo = 0L;
md5Ctx->countHi = 0L;
md5Ctx->datalen = 0L;
}
and both grephistory and nnrpd are using the same routine. One works, the
other does not.
I'm totaly mad. Ok it's late, but I can't imagine what's wrong there. The
code looks fine for me.
Please, please, help! {%o/
Greetings from Vienna, Austria,
Wolfgang Breyha
At 10:59 15.11.99 +0100, Wolfgang Breyha wrote:
>Hi!
>
>We're currently using INN 2.2.1 and I've troubles of the following kind:
>
>I connect to our server (telnet news 119) and type:
>
>group at.test
>211 2 7189 7190 at.test
>head 7190
>221 7190 <80oar8$13f1n$2 at fu-berlin.de> head
>P..........
>
>Ok, so far everything is fine. But if I type now:
>
>head <80oar8$13f1n$2 at fu-berlin.de>
>430 No such article
>
>And last but not least if i do a:
>[news at news db]$ grep "at.test/7190" history
><80oar8$13f1n$2 at fu-berlin.de> 942649002~-~942649001 at.test/7190
>
>Yes it's in there!
>
>Expiration runs fine every night without any errors.
>Unfortunatly 99% of the articles can't be retrieved by message-id. And the
>really bad news is that Netscape uses this command to synchronize news for
>offline-mode.
>
>This machine is a RedHat 6.0/2.2.13/dual p3-500/1GB RAM with all security
>patches from RedHat available.
>
>INN 2.2.1 is configured with
>./configure --with-perl --prefix=/opt/inn
>
>Everything (really everything) else works pretty fine. Only NNRP can't get
>Articles by Message-ID.
>
>Any ideas?
>
>Greetings from Vienna, Austria,
>Wolfgang Breyha
>--
> / Aberglaube kann mich erst dann wirklich beeindrucken,\
>/ wenn jemand seinen 13. Monatsgehalt ablehnt. \
>\ Wolfgang Breyha <wbreyha at gmx.net> - http://mash.nwy.at /
> \ Operations Center - NETWAY AG - Vienna - Austria /
>
--
/ Aberglaube kann mich erst dann wirklich beeindrucken,\
/ wenn jemand seinen 13. Monatsgehalt ablehnt. \
\ Wolfgang Breyha <wbreyha at gmx.net> - http://mash.nwy.at /
\ Operations Center - NETWAY AG - Vienna - Austria /
More information about the inn-workers
mailing list