* Re: Help for DEC dbx
1998-05-08 4:00 Help for DEC dbx wuqb
@ 1998-05-08 4:00 ` Peter Thompson
0 siblings, 0 replies; 2+ messages in thread
From: Peter Thompson @ 1998-05-08 4:00 UTC (permalink / raw)
wuqb@nudt.edu.cn wrote:
> Hi, all, I meet some problems about DEC dbx. When I debug a very simple
> program, the system core dump. Why? If somebody knows, please reply to me.
> Thanks in advance.
>
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/ Now offering spam-free web-based newsreading
This is not a dbx problem, but a kernel problem. (Any time the system
crashes, it's
a kernel problem. ) Let me take a wild guess and venture that you are
running
V4.0b. There's a nasty bug that went out in that release that only affects
certain
machines (which is why I think this bug was missed originally). Certainly it
used to crash my Alphastation 600 all the time, as well as other
Alphastations.
Basically ANY debugger (dbx, ladebug, or gdb) will crash the system.
There is a patch available (the number of which I don't recall, but you can
ask your local support contact.) There is also a simple workaround.
First, this problem will only show up if the kernel option KDEBUG is built
into the kernel.
You can rebuild the kernel without this and you should be all right.
Alternatively, you can quickly patch the running kernel and you should be ok.
The way to do this is to become super user, and bring up the debugger on
the kernel. These steps should work for you:
su
Password:
# dbx -k /vmunix
dbx version 3.11.10
Type 'help' for help.
stopped at [thread_block:2260 ,0xfffffc00002ae90c] Source not available
warning: Files compiled -g3: parameter values probably wrong
(dbx) p db_enable
1
(dbx) patch db_enable = 0
0
(dbx) q
#
After this you should be all set. The patch command will write to the copy
of vmunix on
disk, as well as the in memory copy, so that this fix will stay in place even
after a reboot.
But it might be prudent to follow this up with the official patch.
If the above workaround does NOT work, then we'll need a little bit more
information
to narrow this down.
PeterT
^ permalink raw reply [flat|nested] 2+ messages in thread