[net.sources] bug fix to XLISP

jcw@cvl.UUCP (Jay C. Weber) (07/25/84)

Russ <Smith@nrl-aic> has pointed out a bug in XLISP that others
may be running across.  It seems that the XLISP code, "xldmem.c"
in particular, counts on statics being initialized to NULL.
Although that may be a problem in other parts, he has pointed
out two places where it is can be fatal (Segmentation fault):

$ diff xldmem.c xldmem.old
49,50c49,50
< static struct segment *segs = NULL;
< static struct node *fnodes = NULL;
---
> static struct segment *segs;
> static struct node *fnodes;


If others find bugs, I would be glad to hear about them and then
post a bug fix.  I asked before not to address questions to me
because I knew little about the internals of the program; I wouldn't
mind being in charge of bug fixes you report.

Jay Weber
..!seismo!rlgvax!cvl!jcw
..!seismo!rochester!jay
jay@rochester.arpa

jcw@cvl.UUCP (Jay C. Weber) (07/31/84)

I got a bug fix to the previously posted XLISP sources from
ihuxt!paulson.  The source file concerned is xlisp.h, and here
is a diff of the fix:

% diff xlisp.old xlisp.c
6a7
> typedef int jmp_buf[10];
35c36
< static char ljmp[6];
---
> jmp_buf ljmp;

It seems that the previous jump buffer was not sufficient for some
systems, notably system 5 Unix.

Jay Weber
..!seismo!rlgvax!cvl!jcw
..!seismo!rochester!jay
jay@rochester.arpa