public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "jonah at kichwacoders dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug mi/28077] New: -exec-interrupt in non-stop mode causes internal-error / assertion in target_stop
Date: Sun, 11 Jul 2021 19:05:54 +0000	[thread overview]
Message-ID: <bug-28077-4717@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=28077

            Bug ID: 28077
           Summary: -exec-interrupt in non-stop mode causes internal-error
                    / assertion in target_stop
           Product: gdb
           Version: 11.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: mi
          Assignee: unassigned at sourceware dot org
          Reporter: jonah at kichwacoders dot com
  Target Milestone: ---

This is a regression in GDB 11 pre-release and current HEAD that worked in GDB
10.

For a simple program like this loop.c.

volatile int i;
int main() {
  while (1) {
    i += 2;
    i *= 2;
  }
}

gcc -g -o loop loop.c

causes an internal error like this when doing -exec-interrupt in MI mode, it
does not fail in CLI mode.

target.c:3768: internal-error: void target_stop(ptid_t): Assertion
`!proc_target->commit_resumed_state' failed.

MI commands to reproduce:

$ gdb --interpreter=mi3 # or mi2
-gdb-set non-stop on
-gdb-set mi-async on
-file-exec-and-symbols --thread-group i1  loop
-exec-run
-exec-interrupt --thread-group i1

This was done on Ubuntu 20.04 on x86_64 hardware:
$ lsb_release 
LSB Version:    core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
$ uname -a
Linux ditto 5.4.0-77-generic #86-Ubuntu SMP Thu Jun 17 02:35:03 UTC 2021 x86_64
x86_64 x86_64 GNU/Linux
$ gcc --version
gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0

I am running a git bisect now and will report back if that provides something
useful.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2021-07-11 19:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-11 19:05 jonah at kichwacoders dot com [this message]
2021-07-11 19:42 ` [Bug mi/28077] " jonah at kichwacoders dot com
2021-07-12  0:22 ` simark at simark dot ca
2021-07-12  0:39 ` simark at simark dot ca
2021-07-12  1:04 ` jonah at kichwacoders dot com
2021-07-12  2:10 ` jonah at kichwacoders dot com
2021-07-12  2:17 ` simark at simark dot ca
2021-07-12  2:17 ` simark at simark dot ca
2021-07-12  2:17 ` simark at simark dot ca
2021-07-12  2:17 ` simark at simark dot ca
2021-07-13 13:26 ` cvs-commit at gcc dot gnu.org
2021-07-13 13:27 ` cvs-commit at gcc dot gnu.org
2021-07-13 13:37 ` 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-28077-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).