From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3b889a32bdfc4e26 X-Google-Attributes: gidfee84,public From: Peter Thompson Subject: Re: Help for DEC dbx Date: 1998/05/08 Message-ID: <355353DB.656095D7@zk3.dec.com>#1/1 X-Deja-AN: 351516734 Content-Transfer-Encoding: 7bit References: <6itkqn$est$1@nnrp1.dejanews.com> Content-Type: text/plain; charset=us-ascii Organization: Digital Unix Development Environment Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 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