public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Simon Marchi <simon.marchi@polymtl.ca>
Cc: Simon Marchi <simark@simark.ca>, Tom Tromey <tom@tromey.com>,
	gdb-patches@sourceware.org
Subject: Re: GDB 10.2 Release: Proposing Mar 13-14 for official GDB 10.2 release
Date: Tue, 16 Mar 2021 07:45:51 +0400	[thread overview]
Message-ID: <20210316034551.GE3188@adacore.com> (raw)
In-Reply-To: <17184b08-d7e7-a62c-b689-35ab3f179f06@polymtl.ca>

Hi Simon,

> >> Tom Tromey and I would be good candidates to look a it,
> >> because it's related to the DWARF symbol sharing, which
> >> we've both worked on.  I will try to give it a look in
> >> the following days.
> > 
> > Thanks for the heads up, Simon. I've changed its Target Mileston
> > to 10.2 in Bugzilla.
> > 
> 
> I've been looking at this on and off for the last few days, and I don't
> think I'll be able to come up with a proper fix in a short time frame.
> And even if I did, I think it would be too risky for merging in a stable
> branch right before releasing.

That's what I was fearing already, when I saw the PR and the discussions
that were logged so far.

> The alternative I see to unblock the release is to disable the sharing of
> partial symbols between objfiles for now.  Essentially, a patch that does
> 
>     diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
>     index 704ba9f36655..5d9256bece1e 100644
>     --- a/gdb/dwarf2/read.c
>     +++ b/gdb/dwarf2/read.c
>     @@ -1954,7 +1954,8 @@ dwarf2_has_info (struct objfile *objfile,
>              doesn't require relocations and if there aren't partial symbols
>              from some other reader.  */
>            if (!objfile_has_partial_symbols (objfile)
>     -         && !gdb_bfd_requires_relocations (objfile->obfd))
>     +         && !gdb_bfd_requires_relocations (objfile->obfd)
>     +         && 0)
>             {
>               /* See if one has been created for this BFD yet.  */
>               per_bfd = dwarf2_per_bfd_bfd_data_key.get (objfile->obfd);
> 
> We can then take our time to look at a proper fix for master.

It's quite nice to see that this feature could be disabled with
a one-liner like this.

Unless Tom has other ideas, this seems like the way to go for me.

I also wanted to mention that, in terms of timing, I was planning
on starting the regular updates for the 11.1 releases pretty much
right after the GDB 10.2 is out. We will just have to list this one
right from the beginning.

Procedurally speaking, what would help is if we close the PR about
the crash with the target milestone set to 10.2 right after your patch
is in, and then re-open the PR about the partial symtab sharing to
fix the crash on master (or open a new one if there wasn't one
already). That way, anyone asking for the list of fixes from 10.1
to 10.2 would find this issue (this is something I do when publishing
a .2, for instance).

Thanks Simon!
-- 
Joel

  reply	other threads:[~2021-03-16  3:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-06  6:46 Joel Brobecker
2021-03-06 18:13 ` Kevin Buettner
2021-03-07  5:45   ` Joel Brobecker
2021-03-07  6:25     ` Kevin Buettner
2021-03-09  5:08 ` Simon Marchi
2021-03-10  2:48   ` Joel Brobecker
2021-03-15  3:43     ` Simon Marchi
2021-03-16  3:45       ` Joel Brobecker [this message]
2021-03-30  5:02         ` Tom Tromey
2021-03-30  7:59           ` Joel Brobecker
2021-03-30 17:40             ` Simon Marchi
2021-03-30 15:14           ` Simon Marchi

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=20210316034551.GE3188@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simark@simark.ca \
    --cc=simon.marchi@polymtl.ca \
    --cc=tom@tromey.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).