[comp.sources.bugs] perl fails io.tell test 3

lee@uhccux.UUCP (Greg Lee) (02/29/88)

I reported earlier perl's `make test' reported an error
in io.tell, test 3.  I've installed patches through #23 now,
and the problem is still there.  This is Ultrix 1.2.  I got
mail from Paul DuBois that he had encountered this, but
have heard nothing else.  I can now report that the same
source tests out with no error on Sun 3, v. 3.5.  Any
help out there?
	Greg, lee@uhccux.uhcc.hawaii.edu

lwall@devvax.JPL.NASA.GOV (Larry Wall) (03/01/88)

In article <1612@uhccux.UUCP> lee@uhccux.UUCP (Greg Lee) writes:
: I reported earlier perl's `make test' reported an error
: in io.tell, test 3.  I've installed patches through #23 now,
: and the problem is still there.  This is Ultrix 1.2.

There is a known bug in Ultrix 1.2 that second and subsequent filbuf()s on
a file at EOF erroneously advance the file pointer by 1.  This situation
almost never arises in real code.

I'm not currently planning on fixing this in perl, since it is unlikely to
affect anyone.  I suggest that you simply ignore io.tell test 3 (and 12, which
depends on 3).  If you're really worried about it, you can always upgrade your
Ultrix.   1/2 :-)

Larry Wall
lwall@jpl-devvax.jpl.nasa.gov

grr@cbmvax.UUCP (George Robbins) (03/01/88)

In article <1612@uhccux.UUCP> lee@uhccux.UUCP (Greg Lee) writes:
> I reported earlier perl's `make test' reported an error
> in io.tell, test 3.  I've installed patches through #23 now,
> and the problem is still there.  This is Ultrix 1.2.  I got
> mail from Paul DuBois that he had encountered this, but
> have heard nothing else.  I can now report that the same
> source tests out with no error on Sun 3, v. 3.5.  Any
> help out there?
> 	Greg, lee@uhccux.uhcc.hawaii.edu

This is almost surely an Ultrix bug.  Any attempt to "fix" it in perl
would remove some of the flexibility now possible and it's probably
not something the will give you a problem in a normal perl program.

Can anybody report whether the problem exists in Ultrix 2.[012]?  If
so, it would be a good idea to write up an SPR.  I'm still waiting
for my 2.2 upgrade to show up...

-- 
George Robbins - now working for,	uucp: {uunet|ihnp4|rutgers}!cbmvax!grr
but no way officially representing	arpa: cbmvax!grr@uunet.uu.net
Commodore, Engineering Department	fone: 215-431-9255 (only by moonlite)

rep@genrad.UUCP (Pete Peterson) (03/02/88)

In article <3399@cbmvax.UUCP> grr@cbmvax.UUCP (George Robbins) writes:
 >In article <1612@uhccux.UUCP> lee@uhccux.UUCP (Greg Lee) writes:
 >> I reported earlier perl's `make test' reported an error
 >> in io.tell, test 3.  I've installed patches through #23 now,
 >> and the problem is still there.  This is Ultrix 1.2.  I got
 >> mail from Paul DuBois that he had encountered this, but
 >> have heard nothing else.  I can now report that the same
 >> source tests out with no error on Sun 3, v. 3.5.  Any
 >> help out there?
 >> 	Greg, lee@uhccux.uhcc.hawaii.edu
 >
 >This is almost surely an Ultrix bug.  Any attempt to "fix" it in perl
 >would remove some of the flexibility now possible and it's probably
 >not something the will give you a problem in a normal perl program.
 >
 >Can anybody report whether the problem exists in Ultrix 2.[012]?  If
 >so, it would be a good idea to write up an SPR.  I'm still waiting
 >for my 2.2 upgrade to show up...
 >
 
It's broken in Ultrix 1.2 and works in Ultrix 2.0.

	pete peterson
	{decvax,linus,wjh12,mit-eddie,masscomp}!genrad!rep