Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Avoid race when reading dwz file
Date: Fri, 08 Mar 2024 07:09:46 -0700	[thread overview]
Message-ID: <877ciczufp.fsf@tromey.com> (raw)
In-Reply-To: <20240125135129.977108-1-tom@tromey.com> (Tom Tromey's message of "Thu, 25 Jan 2024 06:51:29 -0700")

>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:

Tom> PR gdb/31260 points out a race introduced by the background reading
Tom> changes.  If a given objfile is re-opened when it is already being
Tom> read, dwarf2_initialize_objfile will call dwarf2_read_dwz_file again,
Tom> causing the 'dwz_file' to be reset.

Tom> This patch fixes the problem by arranging to open the dwz just once:
Tom> when the dwarf2_per_bfd object is created.

Tom> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31260

I'm checking this in.

Tom

  reply	other threads:[~2024-03-08 14:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-25 13:51 Tom Tromey
2024-03-08 14:09 ` Tom Tromey [this message]
2024-03-28 10:37   ` Lancelot SIX
2024-03-28 23:03     ` Tom Tromey
2024-03-30 16:47       ` Six, Lancelot

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=877ciczufp.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=gdb-patches@sourceware.org \
    /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