Thread View: news.software.nntp
9 messages
9 total messages
Started by Stephen L. Ulmer
Tue, 29 May 2001 15:52
INN 2.2.2 -> 2.3.3 behavior differences
Author: Stephen L. Ulmer
Date: Tue, 29 May 2001 15:52
Date: Tue, 29 May 2001 15:52
49 lines
3313 bytes
3313 bytes
I am trying to re-deploy my INN server starting with: INN 2.2.2 AIX 4.2.1 upgrading to: INN 2.3.3 AIX 4.3.3 I'm having problems and have noticed a difference in the article tokens in the history file (sorry this is so ugly): ,----[ INN 2.2.2 ] | [BCBCFE6B56F60628BC17D40A6D151C4F] 991151171~-~991148684 @03044255463430300000000239280000002004000657734F015F0000@ | [4A14DE90542106565B90DB13CE268D18] 991151171~-~991146399 @03024255463230350000000D24630000000B0200392EF4E7034F0000@ | [1D186970CC88AB8414061D85863E4BCC] 991151172~-~991150942 @030442554634303100000002EC96000000200400065774AF01330000@ | [C34B75609A72FBF88583407B9FB7DA12] 991151176~-~991148858 @0304425546343032000000035905000000200400065775E3016D0000@ | [FA1CDAA4DF855A2843222DEE2FD4FA38] 991151176~-~991150336 @03024255463230360000000DC7660000000B0200392EF83703600000@ `---- ,----[ INN 2.3.3 ] | [6B6BB5100F1EF9D5C37FD5E228367BD9] 991151029~-~991153629 @030342554631303000000000000000000000@ | [D76D9DBAC47EB829FA4ADBBF391DED55] 991151044~-~991143933 @030342554631303100000000000000000000@ | [A2F0CE29BA3F94A6DFF63E39BD69FA0A] 991151044~-~991150748 @030342554631303200000000000000000000@ | [EE8CD2A9D8A29C1C03C02483EF788BE5] 991151044~-~991148090 @030342554631303000000000000000000000@ | [8EE02DC981FF0576DEF3888BA97D3C0F] 991151105~-~991146284 @030342554631303100000000000000000000@ `---- The main difference is that on my INN 2.2.2 server I can use sm to fetch an article with the token, on INN 2.3.3 I can't. MWAG is that the INN 2.3.3 article token contains only the pointer to the container, not the article offset (or whatever is supposed to indicate the article within that mechanism). I know that there are supposed to be differences between the history files, but I'm not familiar with what to expect. Help. Thanks, -- Stephen L. Ulmer ulmer@nersp.nerdc.ufl.edu Senior Systems Programmer http://www.ulmer.org/ Northeast Regional Data Center VOX: (352) 392-2061 University of Florida FAX: (352) 392-9440
Re: INN 2.2.2 -> 2.3.3 behavior differences
Author: those who know me have no need o...
Date: Tue, 29 May 2001 16:44
Date: Tue, 29 May 2001 16:44
15 lines
1465 bytes
1465 bytes
<wjhwv70qhjm.fsf@spnode33.nerdc.ufl.edu> divulged: >,----[ INN 2.3.3 ] >| [6B6BB5100F1EF9D5C37FD5E228367BD9] 991151029~-~991153629 @030342554631303000000000000000000000@ >The main difference is that on my INN 2.2.2 server I can use sm to >fetch an article with the token, on INN 2.3.3 I can't. you should be able to, sm's purpose remains to access articles via the storage manager. the token contains everything necessary to locate the associated article. -- okay, have a sig then
Re: INN 2.2.2 -> 2.3.3 behavior differences
Author: Stephen L. Ulmer
Date: Tue, 29 May 2001 17:52
Date: Tue, 29 May 2001 17:52
27 lines
2292 bytes
2292 bytes
<wjhwv70qhjm.fsf@spnode33.nerdc.ufl.edu> divulged:
>> ,----[ INN 2.3.3 ]
>> | [6B6BB5100F1EF9D5C37FD5E228367BD9] 991151029~-~991153629 @030342554631303000000000000000000000@
>> The main difference is that on my INN 2.2.2 server I can use sm to
>> fetch an article with the token, on INN 2.3.3 I can't.
"nomailguy" == those who know me have no need of my name
<not-a-real-address@usa.net> writes:
nomailguy> you should be able to, sm's purpose remains to access
nomailguy> articles via the storage manager. the token contains
nomailguy> everything necessary to locate the associated article.
You are saying that sm should have behaved like I expect.
You are not saying that you decoded this particular token and it had
all its parts -- right?
--
Stephen L. Ulmer ulmer@nersp.nerdc.ufl.edu
Senior Systems Programmer http://www.ulmer.org/
Northeast Regional Data Center VOX: (352) 392-2061
University of Florida FAX: (352) 392-9440
Re: INN 2.2.2 -> 2.3.3 behavior differences
Author: those who know me have no need o...
Date: Tue, 29 May 2001 20:52
Date: Tue, 29 May 2001 20:52
24 lines
1734 bytes
1734 bytes
<wjhelt8qcac.fsf@spnode33.nerdc.ufl.edu> divulged: > >> | [6B6BB5100F1EF9D5C37FD5E228367BD9] 991151029~-~991153629 @030342554631303000000000000000000000@ >You are saying that sm should have behaved like I expect. > >You are not saying that you decoded this particular token and it had >all its parts -- right? yes and yes. i see that the one i quoted is a cnfs token for class 3 in BUF100 at offset 0. what appears to be the problem is that the offsets of all the tokens you posted are 0. i don't know what would cause this, but it's definitely borked. fyi: the 2.2 the token structure is much larger than in 2.3, and as a result the token is much shorter. (there's no overview data in them.) -- okay, have a sig then
Re: INN 2.2.2 -> 2.3.3 behavior differences
Author: Stephen L. Ulmer
Date: Wed, 30 May 2001 02:07
Date: Wed, 30 May 2001 02:07
33 lines
2652 bytes
2652 bytes
>> | [6B6BB5100F1EF9D5C37FD5E228367BD9] 991151029~-~991153629 @030342554631303000000000000000000000@
nomailguy> yes and yes.
"nomailguy" == those who know me have no need of my name
<not-a-real-address@usa.net> writes:
nomailguy> i see that the one i quoted is a cnfs token for class 3
nomailguy> in BUF100 at offset 0.
nomailguy> what appears to be the problem is that the offsets of all
nomailguy> the tokens you posted are 0. i don't know what would
nomailguy> cause this, but it's definitely borked.
Cool, that's what I had guessed. I just wanted to make sure that the
offset info didn't get stored somewhere else with this version. As it
stands I've got exactly as many unique tokens as I've got containers.
Any suggestions? I'd like to be able to look deeper for stupid
administrator tricks before I submit a bug report. This behavior
seems to be unique to me and it's been there since INN 2.3.0 -- so I'd
guess if it's a bug it isn't shallow.
Hmmm... I guess it's off to read more of the source.
--
Stephen L. Ulmer ulmer@nersp.nerdc.ufl.edu
Senior Systems Programmer http://www.ulmer.org/
Northeast Regional Data Center VOX: (352) 392-2061
University of Florida FAX: (352) 392-9440
that's 2.3.2 Duh. (was Re: INN 2.2.2 -> 2.3.3 behavior differences)
Author: Stephen L. Ulmer
Date: Wed, 30 May 2001 03:07
Date: Wed, 30 May 2001 03:07
18 lines
2091 bytes
2091 bytes
"ulmer" == Stephen L Ulmer <ulmer@ufl.edu> writes: ulmer> Any suggestions? I'd like to be able to look deeper for ulmer> stupid administrator tricks before I submit a bug report. ulmer> This behavior seems to be unique to me and it's been there ulmer> since INN 2.3.0 -- so I'd guess if it's a bug it isn't ulmer> shallow. Okay, I'm a moron. INN 2.3.3 isn't released yet, I'm using INN 2.3.2. So much for credibility in error reporting... -- Stephen L. Ulmer ulmer@nersp.nerdc.ufl.edu Senior Systems Programmer http://www.ulmer.org/ Northeast Regional Data Center VOX: (352) 392-2061 University of Florida FAX: (352) 392-9440
[SOLVED] Re: INN 2.2.2 -> 2.3.3 behavior differences
Author: Stephen L. Ulmer
Date: Fri, 01 Jun 2001 20:33
Date: Fri, 01 Jun 2001 20:33
59 lines
3506 bytes
3506 bytes
"nomailguy" == those who know me have no need of my name
<not-a-real-address@usa.net> writes:
nomailguy> i see that the one i quoted is a cnfs token for class 3
nomailguy> in BUF100 at offset 0.
nomailguy> what appears to be the problem is that the offsets of all
nomailguy> the tokens you posted are 0. i don't know what would
nomailguy> cause this, but it's definitely borked.
This was actually a compiler bug in gcc 2.95.2, I'm building gcc
2.95.3 to see if the gcc bug has been fixed.
The problem arises from '-O2' optimization of this function:
,----[ from cnfs.c ]
| STATIC TOKEN CNFSMakeToken(char *cycbuffname, CYCBUFF_OFF_T offset,
| U_INT32_T cycnum, STORAGECLASS class, TOKEN *oldtoken) {
| TOKEN token;
| INT32_T int32;
| INT32_T foo;
|
| if (oldtoken == (TOKEN *)NULL)
| memset(&token, '\0', sizeof(token));
| else
| memcpy(&token, oldtoken, sizeof(token));
| /*
| ** XXX We'll assume that TOKENSIZE is 16 bytes and that we divvy it
| ** up as: 8 bytes for cycbuffname, 4 bytes for offset, 4 bytes
| ** for cycnum. See also: CNFSBreakToken() for hard-coded constants.
| */
| token.type = TOKEN_CNFS;
| token.class = class;
| memcpy(token.token, cycbuffname, CNFSMAXCYCBUFFNAME);
| int32 = htonl(offset / CNFS_BLOCKSIZE);
| memcpy(&token.token[8], &int32, sizeof(int32));
| int32 = htonl(cycnum);
| memcpy(&token.token[12], &int32, sizeof(int32));
| return token;
| }
`----
The variable 'int32' is only ever referenced by address, the (broken)
optimizer took out the assignments...
If I modify this to _use_ 'int32' (pass it to a function, say syslog())
the problem goes away. If I compile this file without optimizations,
the problem goes away.
Regards,
--
Stephen L. Ulmer ulmer@nersp.nerdc.ufl.edu
Senior Systems Programmer http://www.ulmer.org/
Northeast Regional Data Center VOX: (352) 392-2061
University of Florida FAX: (352) 392-9440
Re: [SOLVED] Re: INN 2.2.2 -> 2.3.3 behavior differences
Author: those who know me have no need o...
Date: Sat, 02 Jun 2001 22:03
Date: Sat, 02 Jun 2001 22:03
17 lines
1480 bytes
1480 bytes
<wjh8zjc0x06.fsf@spnode33.nerdc.ufl.edu> divulged:
>This was actually a compiler bug in gcc 2.95.2, I'm building gcc
>2.95.3 to see if the gcc bug has been fixed.
>
>The problem arises from '-O2' optimization of this function:
>
>,----[ from cnfs.c ]
>| STATIC TOKEN CNFSMakeToken(char *cycbuffname, CYCBUFF_OFF_T offset,
>| U_INT32_T cycnum, STORAGECLASS class, TOKEN *oldtoken) {
ah. good to see that you've found it. i seem to remember that 2.95.3
is good, so hopefully you'll be rockin' by now.
--
okay, have a sig then
Re: [SOLVED] Re: INN 2.2.2 -> 2.3.3 behavior differences
Author: Stephen L. Ulmer
Date: Sun, 03 Jun 2001 03:39
Date: Sun, 03 Jun 2001 03:39
32 lines
2541 bytes
2541 bytes
me> This was actually a compiler bug in gcc 2.95.2, I'm building gcc
me> 2.95.3 to see if the gcc bug has been fixed.
"nomailguy" == those who know me have no need of my name
<not-a-real-address@usa.net> writes:
nomailguy> ah. good to see that you've found it. i seem to
nomailguy> remember that 2.95.3 is good, so hopefully you'll be
nomailguy> rockin' by now.
gcc 2.95.3 has the same problem, though the Changelog does indicate
lots of bug fixes to the optimizer.
I've patched the INN storage/cnfs/Makefile to just avoid optimization
for cnfs.c. I'm working on a minimal case to report the bug to the
GCC maintainers. I should really send this info to the INN FAQ
maintainer...
This seems to be my month for finding bugs (I'm running 3 differnet
emergency fixes on my SP right now). <sigh>
At any rate, thanks for your help!
--
Stephen L. Ulmer ulmer@nersp.nerdc.ufl.edu
Senior Systems Programmer http://www.ulmer.org/
Northeast Regional Data Center VOX: (352) 392-2061
University of Florida FAX: (352) 392-9440
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