public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "sandra at codesourcery dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/18810] New: internal error in inline_frame_this_id
Date: Wed, 12 Aug 2015 03:10:00 -0000 [thread overview]
Message-ID: <bug-18810-4717@http.sourceware.org/bugzilla/> (raw)
https://sourceware.org/bugzilla/show_bug.cgi?id=18810
Bug ID: 18810
Summary: internal error in inline_frame_this_id
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: sandra at codesourcery dot com
Target Milestone: ---
We have a debug stub that speaks RSP that we use on various bare-metal targets.
To start running a program from GDB, we typically use a sequence of commands
like:
file a.out
target remote ...
load
continue
But, sometimes the "target remote" command gives an error:
/path/to/gdb/inline-frame.c:168: internal-error: inline_frame_this_id:
Assertion `frame_id_p (*this_id)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
What's happening here is that GDB is trying to interpret the target state
reported by the stub in response to the '?' request, in order to print
something about the current stack frame. But, the stub is reporting whatever
the target was doing when the connection was made, and GDB is interpreting the
reported PC and stack contents against a program that hasn't been loaded or
started to execute yet, and getting quite confused.
Looking at the code for inline_frame_this_id, I think all the assertions it
contains are incorrect. I think the corresponding sniffer ought to be testing
all those situations up front and rejecting the unwinder as not applicable. If
that isn't possible, maybe something can catch the error and print some
user-friendly message about a mismatch between the program file and target
state?
--
You are receiving this mail because:
You are on the CC list for the bug.
next reply other threads:[~2015-08-12 3:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-12 3:10 sandra at codesourcery dot com [this message]
2021-09-10 15:43 ` [Bug gdb/18810] " sean.anderson at seco dot com
2021-09-19 2:52 ` simark at simark dot ca
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-18810-4717@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).