Article View: net.bugs.usg
Article #312SVR2 (and older) nroff bug
From: Doug Gwyn
Date: Tue, 20 May 1986 20:49
Date: Tue, 20 May 1986 20:49
32 lines
1384 bytes
1384 bytes
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() */
...
Technical Details
Message-ID:
<1068@brl-smoke.ARPA>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-adm!brl-smoke!gwynShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!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