public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* GDB and Java
@ 2003-06-11 23:36 David Carlton
  2003-06-12  3:47 ` Tom Tromey
  2003-07-18 16:08 ` Tom Tromey
  0 siblings, 2 replies; 13+ messages in thread
From: David Carlton @ 2003-06-11 23:36 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb

Tom, I just committed a large GDB patch that, among other things,
touches the dynamic class symbol part of jv-lang.c.  Can you give
current mainline a whirl to make sure that I didn't screw anything up?
These changes should make that code more stable in the long term, but
there's always the possibility that I missed something in the short
term.

David Carlton
carlton@math.stanford.edu

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GDB and Java
  2003-06-11 23:36 GDB and Java David Carlton
@ 2003-06-12  3:47 ` Tom Tromey
  2003-07-18 16:08 ` Tom Tromey
  1 sibling, 0 replies; 13+ messages in thread
From: Tom Tromey @ 2003-06-12  3:47 UTC (permalink / raw)
  To: David Carlton; +Cc: gdb

>>>>> "David" == David Carlton <carlton@math.stanford.edu> writes:

David> Tom, I just committed a large GDB patch that, among other
David> things, touches the dynamic class symbol part of jv-lang.c.
David> Can you give current mainline a whirl to make sure that I
David> didn't screw anything up?

I'll probably have to do a fair amount of java debugging next week.
I'll try it out then.

Tom

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GDB and Java
  2003-06-11 23:36 GDB and Java David Carlton
  2003-06-12  3:47 ` Tom Tromey
@ 2003-07-18 16:08 ` Tom Tromey
  2003-07-18 16:12   ` Daniel Jacobowitz
  2003-07-18 16:38   ` Tom Tromey
  1 sibling, 2 replies; 13+ messages in thread
From: Tom Tromey @ 2003-07-18 16:08 UTC (permalink / raw)
  To: David Carlton; +Cc: gdb

>>>>> "David" == David Carlton <carlton@math.stanford.edu> writes:

David> Tom, I just committed a large GDB patch that, among other things,
David> touches the dynamic class symbol part of jv-lang.c.  Can you give
David> current mainline a whirl to make sure that I didn't screw anything up?

I said I'd do this a while back, and I wanted to let you know I didn't
forget -- but also that I can't easily do it.  I'm using RHL 9, and my
understanding is that the NPTL patches aren't in main line gdb yet.
At least, when I tried debugging with the cvs gdb a couple weeks back,
I had no end of troubles.  So, sorry about that.

Tom

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GDB and Java
  2003-07-18 16:08 ` Tom Tromey
@ 2003-07-18 16:12   ` Daniel Jacobowitz
  2003-07-18 16:14     ` Tom Tromey
  2003-07-18 16:36     ` Elena Zannoni
  2003-07-18 16:38   ` Tom Tromey
  1 sibling, 2 replies; 13+ messages in thread
From: Daniel Jacobowitz @ 2003-07-18 16:12 UTC (permalink / raw)
  To: Tom Tromey; +Cc: David Carlton, gdb

On Fri, Jul 18, 2003 at 09:59:13AM -0600, Tom Tromey wrote:
> >>>>> "David" == David Carlton <carlton@math.stanford.edu> writes:
> 
> David> Tom, I just committed a large GDB patch that, among other things,
> David> touches the dynamic class symbol part of jv-lang.c.  Can you give
> David> current mainline a whirl to make sure that I didn't screw anything up?
> 
> I said I'd do this a while back, and I wanted to let you know I didn't
> forget -- but also that I can't easily do it.  I'm using RHL 9, and my
> understanding is that the NPTL patches aren't in main line gdb yet.
> At least, when I tried debugging with the cvs gdb a couple weeks back,
> I had no end of troubles.  So, sorry about that.

It should, mostly, work now.  I'm not sure what the remaining issues
are, but the NPTL patches were added.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GDB and Java
  2003-07-18 16:12   ` Daniel Jacobowitz
@ 2003-07-18 16:14     ` Tom Tromey
  2003-07-18 16:36     ` Elena Zannoni
  1 sibling, 0 replies; 13+ messages in thread
From: Tom Tromey @ 2003-07-18 16:14 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: David Carlton, gdb

>>>>> "Daniel" == Daniel Jacobowitz <drow@mvista.com> writes:

Daniel> It should, mostly, work now.  I'm not sure what the remaining issues
Daniel> are, but the NPTL patches were added.

Ok, bad info on my part.  Thanks.  I'm updating and rebuilding cvs
now; I'll report problems if I find them.

Tom

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GDB and Java
  2003-07-18 16:12   ` Daniel Jacobowitz
  2003-07-18 16:14     ` Tom Tromey
@ 2003-07-18 16:36     ` Elena Zannoni
  1 sibling, 0 replies; 13+ messages in thread
From: Elena Zannoni @ 2003-07-18 16:36 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: Tom Tromey, David Carlton, gdb

Daniel Jacobowitz writes:
 > On Fri, Jul 18, 2003 at 09:59:13AM -0600, Tom Tromey wrote:
 > > >>>>> "David" == David Carlton <carlton@math.stanford.edu> writes:
 > > 
 > > David> Tom, I just committed a large GDB patch that, among other things,
 > > David> touches the dynamic class symbol part of jv-lang.c.  Can you give
 > > David> current mainline a whirl to make sure that I didn't screw anything up?
 > > 
 > > I said I'd do this a while back, and I wanted to let you know I didn't
 > > forget -- but also that I can't easily do it.  I'm using RHL 9, and my
 > > understanding is that the NPTL patches aren't in main line gdb yet.
 > > At least, when I tried debugging with the cvs gdb a couple weeks back,
 > > I had no end of troubles.  So, sorry about that.
 > 
 > It should, mostly, work now.  I'm not sure what the remaining issues
 > are, but the NPTL patches were added.
 > 

Yes it works fine. I am using it now on RHL.

elena


 > -- 
 > Daniel Jacobowitz
 > MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GDB and Java
  2003-07-18 16:08 ` Tom Tromey
  2003-07-18 16:12   ` Daniel Jacobowitz
@ 2003-07-18 16:38   ` Tom Tromey
  2003-07-18 16:43     ` David Carlton
  1 sibling, 1 reply; 13+ messages in thread
From: Tom Tromey @ 2003-07-18 16:38 UTC (permalink / raw)
  To: David Carlton; +Cc: gdb

>>>>> "David" == David Carlton <carlton@math.stanford.edu> writes:
David> Tom, I just committed a large GDB patch that, among other things,
David> touches the dynamic class symbol part of jv-lang.c.  Can you give
David> current mainline a whirl to make sure that I didn't screw anything up?

Ok, I've tried cvs head today.  I'm debugging a large java application
that consists of about 90 shared libraries (not including libgcj).

I can consistently make gdb crash like this:

../../src/gdb/dwarf2-frame.c:1032: internal-error: sect_index_text not initialized
A problem internal to GDB has been detected,
further debugging may prove unreliable.


This happens in response to fairly innocuous things like "next" or
"bt".  It doesn't happen in response to every "next" or "bt" command,
and I don't know how to trigger it.  Still, I haven't managed to have
a non-crashing "real" debugging session.  I see this same crash with
an internal gdb I've been using for the last couple days, frequently
right when I've finally gotten to the point I'm actually interested in
(of course :-).


My theory is that the objfile created in jv-lang.c never has
sect_index_text set to a value other than -1.  I haven't tried to
verify this yet.

If anybody has a suggestion for a fix, no matter how hacky, I'd love
to hear it.  Debugging this application -- and hence, fixing gdb if
necessary -- is a priority for me right now.

Tom

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GDB and Java
  2003-07-18 16:38   ` Tom Tromey
@ 2003-07-18 16:43     ` David Carlton
  2003-07-18 16:46       ` Daniel Jacobowitz
  2003-07-18 17:14       ` Tom Tromey
  0 siblings, 2 replies; 13+ messages in thread
From: David Carlton @ 2003-07-18 16:43 UTC (permalink / raw)
  To: tromey; +Cc: gdb, Mark Kettenis, Daniel Jacobowitz

On 18 Jul 2003 10:28:54 -0600, Tom Tromey <tromey@redhat.com> said:

> Ok, I've tried cvs head today.  I'm debugging a large java application
> that consists of about 90 shared libraries (not including libgcj).

> I can consistently make gdb crash like this:

> ../../src/gdb/dwarf2-frame.c:1032: internal-error: sect_index_text not initialized
> A problem internal to GDB has been detected,
> further debugging may prove unreliable.

This is probably the same unfortunate interaction between anonymous
objfiles and the new DWARF 2 frame stuff that Daniel noted in
conjunction with another patch of mine.  I think
<http://sources.redhat.com/ml/gdb-patches/2003-07/msg00264.html> is
supposed to cure it, so give that a try.  Is that patch, or a variant,
supposed to go into 6.0?  This argues that it had better go in.

David Carlton
carlton@kealia.com

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GDB and Java
  2003-07-18 16:43     ` David Carlton
@ 2003-07-18 16:46       ` Daniel Jacobowitz
  2003-07-18 17:03         ` Andrew Cagney
  2003-07-18 17:14       ` Tom Tromey
  1 sibling, 1 reply; 13+ messages in thread
From: Daniel Jacobowitz @ 2003-07-18 16:46 UTC (permalink / raw)
  To: David Carlton; +Cc: tromey, gdb, Mark Kettenis

On Fri, Jul 18, 2003 at 09:43:48AM -0700, David Carlton wrote:
> On 18 Jul 2003 10:28:54 -0600, Tom Tromey <tromey@redhat.com> said:
> 
> > Ok, I've tried cvs head today.  I'm debugging a large java application
> > that consists of about 90 shared libraries (not including libgcj).
> 
> > I can consistently make gdb crash like this:
> 
> > ../../src/gdb/dwarf2-frame.c:1032: internal-error: sect_index_text not initialized
> > A problem internal to GDB has been detected,
> > further debugging may prove unreliable.
> 
> This is probably the same unfortunate interaction between anonymous
> objfiles and the new DWARF 2 frame stuff that Daniel noted in
> conjunction with another patch of mine.  I think
> <http://sources.redhat.com/ml/gdb-patches/2003-07/msg00264.html> is
> supposed to cure it, so give that a try.  Is that patch, or a variant,
> supposed to go into 6.0?  This argues that it had better go in.

I'm not sure if it's for the same issue or not, but that patch
definitely fixes Cygwin.  Mark, everyone seems happy with that patch;
would you check it in on both branches?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GDB and Java
  2003-07-18 16:46       ` Daniel Jacobowitz
@ 2003-07-18 17:03         ` Andrew Cagney
  0 siblings, 0 replies; 13+ messages in thread
From: Andrew Cagney @ 2003-07-18 17:03 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: David Carlton, tromey, gdb, Mark Kettenis

> 
> I'm not sure if it's for the same issue or not, but that patch
> definitely fixes Cygwin.  Mark, everyone seems happy with that patch;
> would you check it in on both branches?

Might want to start with the mainline then do a pullup once the 
`damange' is known.



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GDB and Java
  2003-07-18 16:43     ` David Carlton
  2003-07-18 16:46       ` Daniel Jacobowitz
@ 2003-07-18 17:14       ` Tom Tromey
  2003-07-18 18:38         ` Tom Tromey
  1 sibling, 1 reply; 13+ messages in thread
From: Tom Tromey @ 2003-07-18 17:14 UTC (permalink / raw)
  To: David Carlton; +Cc: gdb, Mark Kettenis, Daniel Jacobowitz

>>>>> "David" == David Carlton <carlton@kealia.com> writes:

David> I think
David> <http://sources.redhat.com/ml/gdb-patches/2003-07/msg00264.html>
David> is supposed to cure it, so give that a try.

I tried this patch but I still get the same crash.
It might have delayed the crash a little, but it is hard to tell.

I'll send more info after I debug gdb a bit.

Tom

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GDB and Java
  2003-07-18 17:14       ` Tom Tromey
@ 2003-07-18 18:38         ` Tom Tromey
  2003-07-18 18:48           ` Kevin Buettner
  0 siblings, 1 reply; 13+ messages in thread
From: Tom Tromey @ 2003-07-18 18:38 UTC (permalink / raw)
  To: David Carlton; +Cc: gdb, Mark Kettenis, Daniel Jacobowitz

Tom> I'll send more info after I debug gdb a bit.

It is definitely an anonymous objfile causing the crash.

I added this just before the use of SECT_OFF_TEXT in
dwarf2_frame_find_fde:

      if (objfile->sect_index_text == -1)
	continue;

With this gdb stops crashing.  It still isn't all that usable --
sometimes "next" will act like "cont".  I'm sure this change is pretty
bogus...

I can debug ok if I just remember to set a breakpoint whenever I
would usually type "n".  Pretty painful though.

Tom

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: GDB and Java
  2003-07-18 18:38         ` Tom Tromey
@ 2003-07-18 18:48           ` Kevin Buettner
  0 siblings, 0 replies; 13+ messages in thread
From: Kevin Buettner @ 2003-07-18 18:48 UTC (permalink / raw)
  To: tromey, David Carlton; +Cc: gdb, Mark Kettenis, Daniel Jacobowitz

On Jul 18, 12:28pm, Tom Tromey wrote:

> With this gdb stops crashing.  It still isn't all that usable --
> sometimes "next" will act like "cont".  I'm sure this change is pretty
> bogus...
> 
> I can debug ok if I just remember to set a breakpoint whenever I
> would usually type "n".  Pretty painful though.

I think this might be a different bug.  See PR1237.

Kevin

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-07-18 18:48 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-11 23:36 GDB and Java David Carlton
2003-06-12  3:47 ` Tom Tromey
2003-07-18 16:08 ` Tom Tromey
2003-07-18 16:12   ` Daniel Jacobowitz
2003-07-18 16:14     ` Tom Tromey
2003-07-18 16:36     ` Elena Zannoni
2003-07-18 16:38   ` Tom Tromey
2003-07-18 16:43     ` David Carlton
2003-07-18 16:46       ` Daniel Jacobowitz
2003-07-18 17:03         ` Andrew Cagney
2003-07-18 17:14       ` Tom Tromey
2003-07-18 18:38         ` Tom Tromey
2003-07-18 18:48           ` Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).