From: Elena Zannoni <ezannoni@redhat.com>
To: David Carlton <carlton@math.stanford.edu>
Cc: Daniel Jacobowitz <drow@mvista.com>, gdb-patches@sources.redhat.com
Subject: Re: [RFA] Relocate debug information in object files (e.g. add-symbol-file) [take 2]
Date: Sat, 01 Feb 2003 00:43:00 -0000 [thread overview]
Message-ID: <15931.6461.240936.968974@localhost.redhat.com> (raw)
In-Reply-To: <ro1k7gkdfq4.fsf@jackfruit.Stanford.EDU>
David Carlton writes:
> On Fri, 31 Jan 2003 14:27:07 -0500, Daniel Jacobowitz <drow@mvista.com> said:
>
> > Much thanks; checked in with better comments.
>
> I think there are problems here: my test runs are failing. E.g. when
> I run GDB on gdb.c++/misc and run to main, I get a crash with a
> backtrace starting with this:
>
> #0 symfile_relocate_debug_section (abfd=0x82e4718, sectp=0x0,
> buf=0x830e6f8 "x°\f@¬°\f@à°\f@\024±\f@H±\f@|±\f@°±\f@ä±\f@\030²\f@L²\f@\200²\f@´²\f@è²\f@\034³\f@P³\f@\204³\f@¸³\f@ì³\f@ ´\f@T´\f@\210´\f@¼´\f@ð´\f@$µ\f@Xµ\f@\214µ\f@Àµ\f@ôµ\f@(¶\f@\\¶\f@\220¶\f@Ķ\f@ø¶\f@,·\f@`·\f@\224·\f@È·\f@ü·\f@0¸\f@d¸\f@\230¸\f@̸\f@") at symfile.c:3594
> #1 0x0813e488 in dwarf2_read_section (objfile=0x830e6f8, offset=0,
> size=137422584, sectp=0x0) at dwarf2read.c:3627
> #2 0x0813a6ae in dwarf2_build_psymtabs (objfile=0x0, mainline=137250584)
> at dwarf2read.c:1050
>
> I haven't looked at it at all closely; but dwarf2_read_section (and
> hence symfile_relocate_debug_section) is getting passed a NULL
> section from this part of dwarf2_build_psymtabs:
>
> if (dwarf_ranges_offset)
> dwarf_ranges_buffer = dwarf2_read_section (objfile,
> dwarf_ranges_offset,
> dwarf_ranges_size,
> dwarf_ranges_section);
> else
> dwarf_ranges_buffer = NULL;
>
It's odd, if the dwarf_ranges_offset is zero, the call shouldn't be made.
Maybe something is trashing the stack?
What gcc did you use? I tried with 2.96 (from RHL 7.2) and didn't see
the error.
> It's been long enough since I looked at this code that I have no idea
> if a NULL section is allowed here or not.
Definitely there doesn't have to be a ranges section.
elena
>
> David Carlton
> carlton@math.stanford.edu
next prev parent reply other threads:[~2003-02-01 0:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-04 14:06 [RFA] Relocate debug information in object files (e.g. add-symbol-file) Daniel Jacobowitz
2002-04-15 14:11 ` Elena Zannoni
2002-04-15 14:26 ` Daniel Jacobowitz
2002-10-11 7:44 ` [RFA] Relocate debug information in object files (e.g. add-symbol-file) [take 2] Daniel Jacobowitz
2003-01-30 23:35 ` Elena Zannoni
2003-01-31 19:26 ` Daniel Jacobowitz
2003-02-01 0:09 ` David Carlton
2003-02-01 0:43 ` Elena Zannoni [this message]
2003-02-01 0:59 ` David Carlton
2003-02-01 1:08 ` Elena Zannoni
2003-02-01 1:13 ` David Carlton
2003-02-01 2:41 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15931.6461.240936.968974@localhost.redhat.com \
--to=ezannoni@redhat.com \
--cc=carlton@math.stanford.edu \
--cc=drow@mvista.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox