From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9614a64c7ca74691 X-Google-Attributes: gidfee84,public From: "Jeffrey J. Potoff" Subject: Re: "step" in ladebug or gdb causes kernel panic Date: 1998/03/17 Message-ID: <350EC2F5.794B@rhea.umd.edu>#1/1 X-Deja-AN: 334995878 Content-Transfer-Encoding: 7bit References: <6em7m5$7lr$1@hades.csu.net> To: Marc Thomas Content-Type: text/plain; charset=us-ascii Organization: University of Maryland, College Park Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Marc Thomas wrote: > > We have several Alphastation 255's running Digital Unix 4.0 with no problems. Someone > gave us an Alphastation 200 also running Digital Unix 4.0. We added the same software > that we have on the Alphastation 255's and upgraded all licenses. However, use of > either ladebug or gdb (by a non-privileged user) will usually cause a kernel panic > on the Alphastation 200 (invalid instruction). These same debuggers and programs run > fine on the other Alphastation 255's. I compared the kernel config files in /sys/conf > and, allowing for a video board difference, they are essentially the same. > > Before I wipe the disk and rebuild the Alphastation 200 from scratch, does anyone > have any other ideas on what to check? Thanks in advance.. > AKK ! No need for that. What you have is the infamous kernel debugger bug. Here's the fix I got from DEC: The problem you are seeing with the system crashing with an "illegal instruction" when running the debugger is caused by a kernel configuration problem present in Digital UNIX 4.0-4.0b, to work around this problem you must turn off kernel debugging by either rebuilding the kernel using doconfig or by following the procedure outlined below: The workaround - set db_enable to 0. To fix the running kernel # dbx -k /vmunix # assign db_enable = 0 # q To fix the disk copy (so you don't have to redo the live kernel after a reboot) # dbx /vmunix /* Important! No -k here # patch db_enable = 0 # q Of course, if you rebuild your kernel, you should take kdebug out of the options in the config file first, or do the last step to the new /vmunix after the fact.