🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by John Brownie Fri, 12 Oct 1990 01:30
Rubbish in the acct files
#979
Author: John Brownie
Date: Fri, 12 Oct 1990 01:30
26 lines
1647 bytes
Whenever I quit nn, I get a nonsense message like

Time used this session: 0.08   Period total: -2236977.-14

and the acct files seem to contain random binary data.  I've tried
blasting the acct files, but I still get the same sort of garbage.
Below is a hex dump of the acct file after one run of nn:

0000000  f7ff fc92 f7ff fca1 f7ff fcb0 f7ff fcbd
0000020  f7ff fcc6 f7ff fd3e f7ff fd50 2715 1bd8
0000040  f7ff fd99 f7ff ff06 f7ff ff19 f7ff ff59
0000060  f7ff ff81 f7ff ffc1 202d 3133 3432 3138
0000100  3431 3620 3237 3135 3162 6438 202d 3133
0000120  3432 3138 3334 3320 2d31 3334 3231 3739
0000140  3738 0a00

This all worked fine with the first version of nn that I brought up
(whatever was current at the end of May 1990), but broke with one of
the subsequent patches (I am currently running nn 6.4.11 on a Sun 4/60,
SunOS 4.1).

Has anyone else seen this problem?  Have I done something stupid?
--
John Brownie
Pure Mathematics, University of Sydney
Internet: jhb@maths.su.oz.au
Re: Rubbish in the acct files
#1018
Author: John Brownie
Date: Fri, 26 Oct 1990 05:03
29 lines
1877 bytes
In <jhb.656747575@monet> I wrote:

>A couple of weeks ago, I posted the following article.  I haven't had
>any response, and our news system was a bit dodgy at the time, so I'm
>posting it again.

>>Whenever I quit nn, I get a nonsense message like

>>Time used this session: 0.08   Period total: -2236977.-14

>>and the acct files seem to contain random binary data.  I've tried
>>blasting the acct files, but I still get the same sort of garbage.

>>This all worked fine with the first version of nn that I brought up
>>(whatever was current at the end of May 1990), but broke with one of
>>the subsequent patches (I am currently running nn 6.4.11 on a Sun 4/60,
>>SunOS 4.1).

>>Has anyone else seen this problem?  Have I done something stupid?

Obviously no-one else had seen the problem, which surprises me now that
I have fixed it.  It is caused by the Sun 4 C compiler's alignment
rules for structs.  The fix that I used was to specify "-misalign" in
CFLAGS in the Makefile.  There are better solutions, I guess, but this
one doesn't actually involve changing code.
--
John Brownie
Pure Mathematics, University of Sydney
Internet: jhb@maths.su.oz.au
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