Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!eagle!harpo!seismo!hao!hplabs!sri-unix!whaley@lbl-csam From: whaley%lbl-csam@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: none Message-ID: <122@sri-arpa.UUCP> Date: Mon, 19-Mar-84 19:05:18 EST Article-I.D.: sri-arpa.122 Posted: Mon Mar 19 19:05:18 1984 Date-Received: Wed, 21-Mar-84 05:13:49 EST Lines: 26 From: (Ken Whaley [cc])whaley@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@lbl-csam.ARPA ...ucbvax!lbl-csam!whaley