none

whaley%lbl-csam at sri-unix.UUCP whaley%lbl-csam at sri-unix.UUCP
Tue Mar 20 10:05:18 AEST 1984


From:  (Ken Whaley [cc])whaley at lbl-csam

:ditroff infinite loop bug.

DITROFF has an infinite looping bug.  It goes crazy on the following input:

			.fs
			this is a footnote.
			[End of File]

	In other words, a footnote start without a footnote end causes an 
infinite loop.   The footnote diversion just can't handle the EOF.  We have 
the feeling that any diversion that has to deal with EOF before finding the 
end-diversion makes DITROFF blow up.  The section of looping code has been 
pinned down (by means of dbx on 4.2 BSD), but those with any knowledge of what 
the (di)troff source is like can imagine that it's no small task to debug.
So if anyone has solved, or is interested in solving, this riddle, please let 
us know!


					Kenneth Whaley
					Systems Group, Computer Services
					Lawrence Berkeley Laboratory
					Berkeley, CA.
whaley at lbl-csam.ARPA
...ucbvax!lbl-csam!whaley



More information about the Comp.unix.wizards mailing list