Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: "Strasuns, Mihails" <mihails.strasuns@intel.com>,
	Joel Brobecker <brobecker@adacore.com>,
	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: GDB 10.1 release -- 2020-09-26 Update
Date: Tue, 29 Sep 2020 09:41:51 -0400	[thread overview]
Message-ID: <068b8d52-591f-4f1e-258a-cbd522585fe7@simark.ca> (raw)
In-Reply-To: <BN6PR11MB185888B0E65970274F29858A95320@BN6PR11MB1858.namprd11.prod.outlook.com>

On 2020-09-29 8:14 a.m., Strasuns, Mihails wrote:
> Hello,
>
> FYI: I am currently investigating a regression caused by 7188ed02d2a7e3fce00a0214e70457c5ef56df6b (Replace dwarf2_per_cu_data::cu backlink with per-objfile map).
> With my program it causes GDB to crash with the following backtrace:
>
> #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
> #1  0x00007fe4e871c8b1 in __GI_abort () at abort.c:79
> #2  0x000055e6b5a17333 in handle_sigsegv (sig=11) at /users/mstrasun/sources/gdb/gdb/event-top.c:885
> #3  <signal handler called>
> #4  0x000055e6b5f08f9e in htab_find_with_hash (htab=0x0, element=0x7ffcd1f58440, hash=3394)
>     at /users/mstrasun/sources/gdb/libiberty/hashtab.c:591
> #5  0x000055e6b59d0b9b in follow_die_offset (sect_off=(unknown: 3394), offset_in_dwz=0,
>     ref_cu=0x7ffcd1f58528) at /users/mstrasun/sources/gdb/gdb/dwarf2/read.c:22273
> #6  0x000055e6b59d0c2e in follow_die_ref (src_die=0x0, attr=0x7ffcd1f58540, ref_cu=0x7ffcd1f58528)
>     at /users/mstrasun/sources/gdb/gdb/dwarf2/read.c:22288
> #7  0x000055e6b59ac51a in partial_die_full_name (pdi=0x55e6b87f02a0, cu=0x55e6b7811510)
>     at /users/mstrasun/sources/gdb/gdb/dwarf2/read.c:8296
> #8  0x000055e6b59ac65c in add_partial_symbol (pdi=0x55e6b87f02a0, cu=0x55e6b7811510)
>     at /users/mstrasun/sources/gdb/gdb/dwarf2/read.c:8323
> #9  0x000055e6b59ad040 in add_partial_subprogram (pdi=0x55e6b87f02a0, lowpc=0x7ffcd1f58760,
>     highpc=0x7ffcd1f58768, set_addrmap=0, cu=0x55e6b7811510)
>     at /users/mstrasun/sources/gdb/gdb/dwarf2/read.c:8591
> <...>
>
> After this patch die_hash ends up being null in this context.

If you can send a reproducer, I can take a look.

Simon

      reply	other threads:[~2020-09-29 13:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-26 18:35 Joel Brobecker
2020-09-29 12:14 ` Strasuns, Mihails via Gdb-patches
2020-09-29 13:41   ` Simon Marchi [this message]

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=068b8d52-591f-4f1e-258a-cbd522585fe7@simark.ca \
    --to=simark@simark.ca \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=mihails.strasuns@intel.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