public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug dap/31434] New: [gdb/dap, testsuite] Test race of cancellation with end of request
Date: Thu, 29 Feb 2024 11:34:06 +0000	[thread overview]
Message-ID: <bug-31434-4717@http.sourceware.org/bugzilla/> (raw)

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

            Bug ID: 31434
           Summary: [gdb/dap, testsuite] Test race of cancellation with
                    end of request
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: dap
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

The test-case pause.exp is the only dap test-case that tests cancellation.

There are three requests cancelled:
- a continue
- a loop in gdb
- a loop in python

For all three, I think the race between cancellation and start of request is
excercised.

For the first one, the cancellation is caught by _on_stop, so the end of
request is only reached via normal return.

For the last two, since both of them hang, the end of request is only reached
through cancellation.

Consequently, the race between cancellation and end of request is currently
untested.

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

                 reply	other threads:[~2024-02-29 11:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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-31434-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).