[6197] in Athena Bugs
dxpsview
daemon@ATHENA.MIT.EDU (amgreene@ATHENA.MIT.EDU)
Wed Oct 10 18:58:52 1990
From: amgreene@ATHENA.MIT.EDU
Date: Wed, 10 Oct 90 18:58:35 EDT
To: bugs@ATHENA.MIT.EDU
It keeps seg-faulting on me.
>dxpsview
Fixed up unaligned data access for pid 2287 (dxpsview) at pc 0x4d2200
Segmentation violation
Here's my PS input file:
%!
%
% Let's play with the setscreen operator...
%
/MyDict 10 dict def
MyDict begin /n 0 def end
/cs 36 def
1 % frequency (cels per true inch)
0 % angle
% what follows is a procedure that is passed x y coordinates.
% each is a number from -1 to 1 giving the position in the square cel.
% it returns a number between -1 and 1 that gives the pixel's relative
% order in the cel.
{
MyDict begin
/y exch def
/x exch def
/n n 1 add def
n 20 eq
{
/s 10 string def
x 1 add cs mul s cvs print
( ) print
y 1 add cs mul s cvs print
(\n) print
/n 0 def
}
if
x
end
}
setscreen
% Now we'll test it....
0 0 moveto
0 40 lineto
stroke
showpage