public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "pedro at palves dot net" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug remote/15297] CTRL-C with set debug remote often crashes GDB
Date: Wed, 15 Feb 2023 21:34:25 +0000	[thread overview]
Message-ID: <bug-15297-4717-RvBujlKoJ3@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-15297-4717@http.sourceware.org/bugzilla/>

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

Pedro Alves <pedro at palves dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.1
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Pedro Alves <pedro at palves dot net> ---
> However, running Jan's test, on current master reveals we still have problems 
> with a Ctrl-c coming in while Python code is running:
> ...
>
> That "^CPython Exception <class 'KeyboardInterrupt'> <class 
> 'KeyboardInterrupt'>: " is probably from the Python frame unwinder machinery.
> At that point the target has the terminal, and since 
> 2f99e8fc9cb84ca80cfca6c119f1f22bbfd2a314 this should not have happened (Change 
> SIGINT handler for extension languages only when target terminal is ours), but 
> something's still not right over there.  I suspect that it's because now 
> remote.c uses the standard SIGINT handler, which calls set_quit_flag, which 
> calls active_ext_lang->ops->set_quit_flag.

So I think this issue is finally fixed by this series:

https://inbox.sourceware.org/gdb-patches/20230210233604.2228450-1-pedro@palves.net/T/#m79098ae4ed85a49c9693a47a0ad7a139f63d47dd

There's a separate PR about Ctrl-C and Python unwinder during execution:

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

which is really the same thing, and I'm leaving that open, hoping for a
testcase.  So we can close this one.

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

      parent reply	other threads:[~2023-02-15 21:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-22 18:08 [Bug remote/15297] New: CTRl-C " jan.kratochvil at redhat dot com
2013-03-25 16:10 ` [Bug remote/15297] " tromey at redhat dot com
2013-03-27 16:36 ` [Bug remote/15297] CTRL-C " jan.kratochvil at redhat dot com
2013-04-12  8:35 ` jan.kratochvil at redhat dot com
2013-04-12  8:36 ` jan.kratochvil at redhat dot com
2013-06-25  7:31 ` jan.kratochvil at redhat dot com
2013-06-25 11:45 ` jan.kratochvil at redhat dot com
2013-07-01 20:37 ` jan.kratochvil at redhat dot com
2013-07-03  5:31 ` jan.kratochvil at redhat dot com
2023-02-15 21:34 ` pedro at palves dot net [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=bug-15297-4717-RvBujlKoJ3@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).