[4157] in Athena Bugs

home help back first fref pref prev next nref lref last post

Saber msg: v2.1 (4/24/89 lycus vax Unix 4042 0)

daemon@ATHENA.MIT.EDU (jtkohl@ATHENA.MIT.EDU)
Wed Feb 7 13:52:47 1990

From: jtkohl@ATHENA.MIT.EDU
Date: Wed, 7 Feb 90 13:52:23 -0500
To: bugs@ATHENA.MIT.EDU
Cc: jtkohl@ATHENA.MIT.EDU
Saber sometimes fails to detect infinite #include loops.

Consider the files /tmp/varargs.h and /tmp/foo/foo.c
/tmp/varargs.h contains:
#ifndef __foo__
#include <varargs.h>
#endif

/tmp/foo/foo.c contains:
#include <varargs.h>

If you then do a
72 -> load -I/tmp foo.c

(while cd'ed to /tmp/foo), Saber will loop forever until an interrupt is
received.

More simplistic attempts such as /tmp/foo.h containing:
#include <foo.h>
and typing
load -I/tmp foo.h

are properly detected and an error message mentioning the infinite
#include loop is printed.

home help back first fref pref prev next nref lref last post