Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: net.bugs.usg Subject: SVR2 (and older) nroff bug Message-ID: <1068@brl-smoke.ARPA> Date: Tue, 20-May-86 16:49:21 EDT Article-I.D.: brl-smok.1068 Posted: Tue May 20 16:49:21 1986 Date-Received: Sun, 25-May-86 11:53:05 EDT Distribution: net Organization: Ballistic Research Lab (BRL) Lines: 32 Dave Yost found a bug in nroff that can cause a core dump on some machines. In file n1.c, init1() contains a call to mchbits(), which uses device- specific data that has not yet been set up! This file is shared by otroff, which therefore has the same bug. BWK seems to have fixed it in new troff. /* * roff.src - v 2.9 of 9/9/83 ... */ ... #ifdef NROFF char ntversion[] = "@(#)nroff: n1.c 2.9"; #else char ntversion[] = "@(#)otroff: n1.c 2.9"; #endif ... int version = 29; /* nroff/troff version tag */ ... init1(a) /* DAG -- there was a FF at the beginning of this line! */ char a; { ... trtab[UNPAD] = ' '; /* mchbits(); /* DAG -- device info not available here; moved to init2() (fixes bug reported by Dave Yost) */ ... } init2() /* DAG -- FF here too! */ { ... ptinit(); mchbits(); /* DAG -- moved here from init1() */ ...