public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@palves.net>
To: Kevin Buettner <kevinb@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH v5 0/8] Fix gdb.base/gdb-sigterm.exp failure/error
Date: Thu, 23 Feb 2023 13:01:07 +0000	[thread overview]
Message-ID: <44a9cd21-b40e-30d8-b9b2-4502e1905526@palves.net> (raw)
In-Reply-To: <20230222234613.29662-1-kevinb@redhat.com>

Hi!

On 2023-02-22 11:46 p.m., Kevin Buettner wrote:
> This series fixes the failure in gdb.base/gdb-sigterm.exp when
> running in environments with glibc-2.34 or later.
> 
> It contains only a few changes from the v4 series posted in
> January:
> 
> https://sourceware.org/pipermail/gdb-patches/2023-January/195579.html
> 
> This series drops part 6 from v4, "Call quit_force for
> gdb_exception_forced_quit in safe_execute_command", in favor of
> Pedros's already committed/pushed "Simplify interp::exec / interp_exec
> - let exceptions propagate".
> 
> In his review of the v4 series, Pedro asked for a new function,
> set_force_quit_flag() which sets sync_quit_force_run and also calls
> set_quit_flag().  This is done in v5's part 7, "Introduce
> set_force_quit_flag and change type of sync_quit_force_run".
> 
> This series also makes several other minor changes that Pedro had
> asked for.
> 
> I've added Tested-by tags for Tom de Vries for all parts except
> for the new part 7 mentioned above.
> 
> Pedro has approved parts 1, 2, and 3; I added Approved-by lines
> referencing Pedro to those parts.
> 

Thank you!

> Pedro gave a sort of half-hearted approval for part 4, "Python QUIT
> processing updates".  I haven't marked this commit with an Approved-by
> line yet.  I would, however, like to commit this one as is.  I think
> that implementing Pedro's suggestion of throwing a Python exception
> corresponding to the forced-quit and then calling set_force_quit_flag()
> when returning out of the Python interpreter is doable, but probably
> also somewhat tricky/involved.  Rather than going a few more rounds on
> this series in an attempt to get those details correct, I'd prefer to
> push the Python and Guile portions of the current series and then
> work on a separate series implementing Pedro's suggestion.  The Python
> and Guile portions of this series will cause GDB to exit on receipt of
> a SIGTERM, but might not be safe for future GDB in which Python (or
> Guile) might be called from GDB from very low level code in which
> certain data structures are not in sync.  If this should happen, we
> might run into other problems anyway if those low-level invocations of
> Python from GDB want be able to call arbitrary methods in GDB's Python
> API.  (We would need to make sure that all of GDB's Python API is safe
> to use with out-of-sync data structures.  I think it's possible that
> some case might trigger the same assert which prompted this series.)

Agreed.

> 
> Kevin Buettner (8):
>   Introduce gdb_exception_forced_quit
>   Handle gdb SIGTERM by throwing / catching gdb_exception_force_quit
>   Catch gdb_exception_error instead of gdb_exception (in many places)
>   Python QUIT processing updates
>   Guile QUIT processing updates
>   QUIT processing w/ explicit throw for gdb_exception_forced_quit
>   Introduce set_force_quit_flag and change type of sync_quit_force_run
>   Forced quit cases handled by resetting sync_quit_force_run

For the whole series:

  Approved-By: Pedro Alves <pedro@palves.net>

Pedro Alves

  parent reply	other threads:[~2023-02-23 13:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-22 23:46 Kevin Buettner
2023-02-22 23:46 ` [PATCH v5 1/8] Introduce gdb_exception_forced_quit Kevin Buettner
2023-02-22 23:46 ` [PATCH v5 2/8] Handle gdb SIGTERM by throwing / catching gdb_exception_force_quit Kevin Buettner
2023-03-02 20:14   ` Simon Marchi
2023-02-22 23:46 ` [PATCH v5 3/8] Catch gdb_exception_error instead of gdb_exception (in many places) Kevin Buettner
2023-02-22 23:46 ` [PATCH v5 4/8] Python QUIT processing updates Kevin Buettner
2023-02-22 23:46 ` [PATCH v5 5/8] Guile " Kevin Buettner
2023-02-22 23:46 ` [PATCH v5 6/8] QUIT processing w/ explicit throw for gdb_exception_forced_quit Kevin Buettner
2023-02-22 23:46 ` [PATCH v5 7/8] Introduce set_force_quit_flag and change type of sync_quit_force_run Kevin Buettner
2023-02-22 23:46 ` [PATCH v5 8/8] Forced quit cases handled by resetting sync_quit_force_run Kevin Buettner
2023-02-23 13:01 ` Pedro Alves [this message]
2023-02-27 23:22   ` [PATCH v5 0/8] Fix gdb.base/gdb-sigterm.exp failure/error Kevin Buettner

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=44a9cd21-b40e-30d8-b9b2-4502e1905526@palves.net \
    --to=pedro@palves.net \
    --cc=gdb-patches@sourceware.org \
    --cc=kevinb@redhat.com \
    /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).