🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #2231

trn 3.3 (NNTP) triggers SunOS optimizer bug

#2231
From: William LeFebvre
Date: Fri, 12 Nov 1993 20:32
31 lines
2206 bytes
I just came across this today.  Our configuration is trn 3.3 running
on SunOS 4.1.1 and 4.1.2 clients using an NNTP server running SunOS
4.1.3.  We use Cnews for our NNTP server.

Every time "trn" was started, it kept asking if I wanted to add the
same list of new groups.  Further study discovered that the second
time value written to the file .rnlast (the one corresponding to
lastnewtime) was way way too low.  It was not getting updated
correctly.

I compiled a version of trn with "CFLAGS=-g -DDEBUG" to help debug it,
but that executable did not exhibit the same symptoms.  Closer
scrutiny reveals that addng.c gets the value via a call to nntp_time,
which is in nntp.c.  I compiled everything with -O optimization, then
recompiled just nntp.c without optimization and the problem went away.

I'm posting this as a warning to others out there in a similar
environment.  We have ben using the same executable successfully since
October 4.  The problem was not seen until today.  This is
understandable since it seems to be related to the decoding of a time
value (i.e.: a value that is never the same).

But in the midst of all this experimentation I saw a value for
lastnewtime that was way way too high as well.  I'm beginning to think
I should compile trn with gcc to see if that works any better......

		William LeFebvre
		Computing Facilities Manager and Analyst
		Department of Electrical Engineering and Computer Science
		Northwestern University
		<phil@eecs.nwu.edu>
Technical Details
Message-ID: <CGEBqG.9so@eecs.nwu.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!news.acns.nwu.edu!news.eecs.nwu.edu!phil

Show Full Headers
Complete Article Headers
Message-ID: <CGEBqG.9so@eecs.nwu.edu>
Subject: trn 3.3 (NNTP) triggers SunOS optimizer bug
Date: Fri, 12 Nov 1993 20:32:40 GMT
From: phil@eecs.nwu.edu (William LeFebvre)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!news.acns.nwu.edu!news.eecs.nwu.edu!phil
Newsgroups: news.software.readers,news.software.nntp
Sender: usenet@eecs.nwu.edu
Organization: EECS Department, Northwestern University
Lines: 31