From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,3a9170c4dcaca952 X-Google-Attributes: gid1164f8,public From: John Stoffel Subject: Re: DBX crashed DUX 4.0B - Fixes? Date: 1997/05/01 Message-ID: #1/1 X-Deja-AN: 238750905 Sender: jfs@jfs X-Nntp-Posting-Host: jfs.fluent.com References: Organization: Fluent Inc., Lebanon NH Newsgroups: comp.sys.dec campbejr@phu989.mms.sbphrd.com (John R. Campbell) writes: > We've got a problem where DBX (in the hands of a normal user) is > capable of crashing the DEC Unix 4.0B O/S. > > I'm told there are workarounds that will reduce the system's > sensitivity to dbx (other than deleting dbx, OK?) involving the > system's configuration file. > > Can anyone make suggestions? This is the fix I've been told about: Hello, As promised, here is a quick description of the so-called 'dbx-crash' problem as it was originally described, the probable cause, a workaround, and the solution. This information is from a database of recent problem announcements and fixes from the Digital Unix Engineering group. Comment #1: "[there is a problem of the] kernel crashing with illegal instruction crash while debugging a pascal program. It does not appear to happen all the time, but is frequent enough to reproduce and verify. This appears to be the "db_enable" problem... Setting db_enable = 0 in either the live kernel, or patching the disk file and rebooting that seems to work. This problem ... exists in [a field-test release of [Unix V4.2]. Apparently it only manifests itself when KDEBUG is set in the config file. And then when one tries to use the debugger. This problem was fixed in [a later release of Unix V4.2]." Comment #2: Do this to determine if this is the 'dbx-crash' problem: % su % dbx -k /vmunix dbx> p db_enable If you see that 'db_enable' is set to 1, then you have most likely built the kernel with KDEBUG set. This in turn sets [the internal kernel variable] db_enable to 1. Somewhere in the kernel, db_enable is causing the system to crash as it takes a path it would not take if db_enable were 0. The workaround: set 'db_enable' to 0. To fix the running kernel, do this: % dbx -k /vmunix dbx> assign db_enable = 0 To fix the disk copy of /vmunix (so you don't have to redo the live kernel after the next reboot), do this: % dbx /vmunix /* Important! No -k here dbx> patch db_enable = 0 The problem has been fixed in the upcoming release of Unix V4.2. I would guess that patches for earlier versions of Unix will also be available shortly. Steve Sheppard Digital Unix / Ultrix Applications Support Team Digital Equipment Corporation Alpharetta, Georgia 800.354.9000 sheppard@decatl.alf.dec.com