public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "simark at simark dot ca" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/29128] "internal-error: find_pc_sect_compunit_symtab: Assertion `result != nullptr' failed" while debugging asm program
Date: Sat, 07 May 2022 20:45:22 +0000 [thread overview]
Message-ID: <bug-29128-4717-aBit4fDQvy@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-29128-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=29128
--- Comment #3 from Simon Marchi <simark at simark dot ca> ---
(In reply to Tom Tromey from comment #2)
> gdb shouldn't crash here, but also this file is weird.
>
> The .debug_info says:
>
> <0><b>: Abbrev Number: 1 (DW_TAG_compile_unit)
> <c> DW_AT_low_pc : 0x4000b0
> <14> DW_AT_high_pc : 0x4000b0
>
> and
>
> <1><3c>: Abbrev Number: 2 (DW_TAG_subprogram)
> <3d> DW_AT_low_pc : 0x4000b0
>
> (no high PC for the function)
Agreed, looks like bad debug info.
On Ubuntu 20.04, with NASM version 2.14.02, at least the CU's high pc is right:
0x0000000b: DW_TAG_compile_unit
DW_AT_low_pc [DW_FORM_addr] (0x0000000000401000)
DW_AT_high_pc [DW_FORM_addr] (0x000000000040101e)
The original report on IRC was about GDB not showing the lines when stepping.
The root cause must be this NASM bug. I think it's ok to not produce good
results when working with the bad debug info, but ideally we wouldn't crash.
--
You are receiving this mail because:
You are on the CC list for the bug.
next prev parent reply other threads:[~2022-05-07 20:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-07 11:49 [Bug gdb/29128] New: " simark at simark dot ca
2022-05-07 12:07 ` [Bug gdb/29128] " simark at simark dot ca
2022-05-07 15:06 ` tromey at sourceware dot org
2022-05-07 15:25 ` tromey at sourceware dot org
2022-05-07 20:45 ` simark at simark dot ca [this message]
2022-05-21 14:57 ` tromey at sourceware dot org
2022-05-26 17:50 ` cvs-commit at gcc dot gnu.org
2022-05-26 17:51 ` tromey at sourceware dot org
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=bug-29128-4717-aBit4fDQvy@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=gdb-prs@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).