longjmp botch

Robert Stone stone at elbereth.rutgers.edu
Tue May 14 01:26:13 AEST 1991


I had the same problem with PawX11 on a DECstation running Ultrix 4.1,
using the Cern library version cnl200.  Since the dbx tool bombs 
running pawX11, I have over the last few days debbuged using the
old-fashioned TYPE statement.  What I uncovered was a problem with the
lenght of a varialble used to hold the "host-name".

There is a routine called 'ixopnwin' inside of higzx11c.c which looks up
the client hostname and makes calls with this string to two Xlib system
routines which put this hostname in the window title.  Hence, two longjmp
botch messages.  This string is too small for most hostnames here at 
rutgers but probably ok for some hostnames at LANL.  The change  in 
the file higzx11c.c is:

 old ->	  char host_name[16];
 new ->	  char host_name[20];       <--probably should be made even larger!

Then compile and put it back into the library:

   cc -c -O higzx11c.c
   mv       higzx11c.o   x11int.o
   ar -vr  libgrafX11.a  x11int.o
   ar -ts  libgrafX11.a


	     					B.Stone
						Stone at ruthep.rutgers.edu
						Rutgers High Energy Physics



More information about the Comp.unix.ultrix mailing list