[comp.windows.news] Getting framebuffer's colormap twice fails

dhb@maths.qmw.ac.UK (David Burgess) (03/22/90)

Subject: Another way to crash X/NeWS 1.0
here's a cute way to crash X/NeWS 1.0 (aka NeWS2.0). Any explanations?
-----------
  psh
  executive
  Welcome to X11/NeWS Version 1.0
  framebuffer /Colormap get /Entries get
  pstack
  [colormapentry(255, 255, 255 @ 0) colormapentry(0, 0, 0 @ 1) etc etc ... ]
-----------
 ie. get the colormapentries for the root canvas
 This works as expected.
Now .. clear the stack and repeat the same operations
----------
  pop pstack
  Empty stack
  framebuffer /Colormap get /Entries get
  pstack
[**obj/corpus type mismatch** colormapentry( colormapentry( colormapentry(
  ... same wierd garbage ... ]
-----------
 And the neat thing is that when you leave psh with ^D
  the server comes down with a "X11 closing" message. And you are
  left with a login prompt.

Maybe I'm being stupid (I am a NeWSnovice)... Is there an explanation?

David Burgess ++++++++ Astronomy Unit, Queen Mary College, London UK