This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: gdb/725: Crash using debug target and regcaches (in 5.3 branch?)
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 21 Nov 2002 17:18:02 -0000
- Subject: Re: gdb/725: Crash using debug target and regcaches (in 5.3 branch?)
- Reply-to: Daniel Jacobowitz <drow at mvista dot com>
The following reply was made to PR gdb/725; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@mvista.com>
To: Andrew Cagney <ac131313@redhat.com>
Cc: gdb-gnats@sources.redhat.com
Subject: Re: gdb/725: Crash using debug target and regcaches (in 5.3 branch?)
Date: Thu, 21 Nov 2002 12:09:37 -0500
On Thu, Nov 21, 2002 at 12:15:44AM -0500, Andrew Cagney wrote:
> http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=725
> Just FYI, I've so far not been able to reproduce this using an rh 7.2
> system. I was using one of the gdb.threads/* tests. Do you have an
> exact transcript and OS to try it on?
>
> I've a stack of AUUG (shameless plug for Australian Unix/Open-Systems
> Users Group :-) GNU/Linux and *BSD CDs so I'm sure to find the right
> distro somewhere :-).
The OS is Debian GNU/Linux (unstable); 3.0 would probably work just as
well. It really is simple... take a threaded application, I was using
gdb.threads/linux-dp. Do this:
drow@nevyn:/opt/src/gdb/x86-as/gdb/testsuite/gdb.threads% /opt/src/gdb/x86-as/gdb/gdb ./linux-dp
GNU gdb 2002-11-18-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) set debug target 1
(gdb) run
It then spews out a whole lot of data (we read from the target SO MUCH!
I wish there were multiple levels of set target debug and I didn't have
to wathc all the I/O go by. Added to my todo.).
It ends:
target_fetch_registers (eip)target_fetch_registers
(eip)target_fetch_registers (eip)target_fetch_registers
(eip)target_fetch_registers (eip)target_fetch_registers
(eip)target_fetch_registers (eip)target_fetch_registers
(eip)target_fetch_registers (eip)zsh: segmentation fault (core dumped)
/opt/src/gdb/x86-as/gdb/gdb ./linux-dp
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer