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 v2 1/6] Handle recursive internal problem in gdb_internal_error_resync
Date: Mon, 27 Sep 2021 18:38:40 +0100	[thread overview]
Message-ID: <9cce1ee1-7489-6558-9145-211097c1848e@palves.net> (raw)
In-Reply-To: <20210822231959.184061-2-kevinb@redhat.com>

On 2021-08-23 12:19 a.m., Kevin Buettner wrote:
> I came across this problem when testing gdb.base/gdb-sigterm.exp
> on a machine with a pre-release version of glib-2.34 installed:
> 
> A problem internal to GDB has been detected,
> further debugging may prove unreliable.
> Quit this debugging session? (y or n) Recursive internal problem.
> FAIL: gdb.base/gdb-sigterm.exp: expect eof #0 (GDB internal error)
> Resyncing due to internal error.
> ERROR: : spawn id exp11 not open
>     while executing
> "expect {
> -i exp11 -timeout 10
> 	    -re "Quit this debugging session\\? \\(y or n\\) $" {
> 		send_gdb "n\n" answer
> 		incr count
> 	    }
> 	    -re "Create..."
>     ("uplevel" body line 1)
>     invoked from within
> "uplevel $body" NONE : spawn id exp11 not open
> ERROR: Could not resync from internal error (timeout)
> gdb.base/gdb-sigterm.exp: expect eof #0: stepped 9 times
> UNRESOLVED: gdb.base/gdb-sigterm.exp: 50 SIGTERM passes
> 
> I don't have a problem with the latter ERROR nor the UNRESOLVED
> messages.  However the first ERROR regarding the exp11 spawn id
> not being open is not especially useful.
> 
> This commit handles the "Recursive internal problem" case, avoiding
> the problematic ERROR shown above.
> 
> With this commit in place, the log messages look like this instead:
> 
> A problem internal to GDB has been detected,
> further debugging may prove unreliable.
> Quit this debugging session? (y or n) Recursive internal problem.
> FAIL: gdb.base/gdb-sigterm.exp: expect eof #15 (GDB internal error)
> Resyncing due to internal error.
> ERROR: Could not resync from internal error (recursive internal problem)
> gdb.base/gdb-sigterm.exp: expect eof #15: stepped 12 times
> UNRESOLVED: gdb.base/gdb-sigterm.exp: 50 SIGTERM passes
> 
> gdb/testsuite/ChangeLog:
> 
> 	* lib/gdb.exp (gdb_internal_error_resync): Handle "Recursive
> 	internal problem".

LGTM.

  reply	other threads:[~2021-09-27 17:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-22 23:19 [PATCH v2 0/6] glibc-2.34: Fix gdb.base/gdb-sigterm.exp failure/error Kevin Buettner
2021-08-22 23:19 ` [PATCH v2 1/6] Handle recursive internal problem in gdb_internal_error_resync Kevin Buettner
2021-09-27 17:38   ` Pedro Alves [this message]
2022-02-26 20:40     ` Kevin Buettner
2021-08-22 23:19 ` [PATCH v2 2/6] Handle gdb SIGTERM via normal QUIT processing Kevin Buettner
2021-09-27 17:39   ` Pedro Alves
2021-08-22 23:20 ` [PATCH v2 3/6] Catch and (re)throw gdb_exception_quit Kevin Buettner
2021-09-27 18:05   ` Pedro Alves
2021-08-22 23:20 ` [PATCH v2 4/6] Python QUIT processing updates Kevin Buettner
2021-09-27 18:24   ` Pedro Alves
2021-08-22 23:20 ` [PATCH v2 5/6] Guile " Kevin Buettner
2021-09-27 18:26   ` Pedro Alves
2021-08-22 23:20 ` [PATCH v2 6/6] QUIT processing w/ explicit sync_quit_force_run check Kevin Buettner
2021-09-27 18:34   ` Pedro Alves
2021-09-27 17:20 ` [PATCH v2 0/6] glibc-2.34: 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=9cce1ee1-7489-6558-9145-211097c1848e@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).