From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: "Maciej W. Rozycki" <macro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] testsuite: Fix "ERROR: no fileid for"
Date: Sun, 16 Feb 2014 18:10:00 -0000 [thread overview]
Message-ID: <20140216181018.GA20118@host2.jankratochvil.net> (raw)
In-Reply-To: <20140207151018.GA20010@host2.jankratochvil.net>
Hi Maciej,
ping: I expect you are fine with this "incomplete" fix so I will check it in.
Jan
On Fri, 07 Feb 2014 16:10:18 +0100, Jan Kratochvil wrote:
> On Thu, 06 Feb 2014 23:09:25 +0100, Maciej W. Rozycki wrote:
> > Can you provide a more elaborate log of your test session?
>
> $ echo 'set gdbserver_reconnect_p 1' >test.exp;runtest test.exp
>
> > What are the exact conditions for this problem to trigger?
>
> If GDB does not run and the testsuite tries to close down it errors.
>
>
> > I'm asking because I fear your change could defeat the purpose of the
> > commit you referred to if there's a catastrophic failure causing GDB to
> > crash while running gdb.base/solib-disc.exp -- in such a case an instance
> > of gdbserver would stay behind running, ruining the remaining part of the
> > test suite in environments where only a single TCP port is available for
> > the RSP connection.
>
> If GDB has crashed then gdb_spawn_id still exists (although it does not work).
> So my patch does not change anything. And also currently it will leave the
> stale gdbserver running anyway.
>
> In general if gdb_spawn_id does not exist then send_gdb + gdb_expect just do
> not make sense anyway. So this patch just prevents the error in such case.
>
> The killing of stale gdbserver could be improved multiple ways (also as
> suggested by Pedro in the original thread) but that is IMO outside of the
> scope of this patch. Apparently if there is no good response from GDB then
> gdb_finish() should try to call gdb_start just to kill that gdbserver, IIUC.
>
>
> Thanks,
> Jan
next prev parent reply other threads:[~2014-02-16 18:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-06 20:58 Jan Kratochvil
2014-02-06 22:09 ` Maciej W. Rozycki
2014-02-07 15:10 ` Jan Kratochvil
2014-02-16 18:10 ` Jan Kratochvil [this message]
2014-02-16 20:45 ` Maciej W. Rozycki
2014-02-16 20:51 ` [commit] " Jan Kratochvil
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=20140216181018.GA20118@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=macro@codesourcery.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