This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix testsuite annotate-quit race (PR 544)
- From: Daniel Jacobowitz <drow at false dot org>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 18 Mar 2008 19:17:38 -0400
- Subject: Re: [patch] Fix testsuite annotate-quit race (PR 544)
- References: <20080318225436.GA27374@host0.dyn.jankratochvil.net>
On Tue, Mar 18, 2008 at 11:54:36PM +0100, Jan Kratochvil wrote:
> Hi,
>
> PR 544 des gdb.cp/annota2.exp and gdb.cp/annota3.exp sometimes FAIL with:
> FAIL: gdb.cp/annota3.exp: annotate-quit (pattern 1)
>
> It gets reliably reproducible for me (Fedora 8 x86_64) if GDB gets straced:
> mv gdb gdb-orig
> wget -O gdb http://cvs.jankratochvil.net/viewcvs/nethome/src/gdb-wrap?rev=HEAD
>
> The problem is that if usually CTRL-C is hit during poll(2) and everything is
> fine. But if CTRL-C is hit inside readline processing its RL_SIGNAL_HANDLER
> gets called which calls RL_FREE_LINE_STATE and $gdb_prompt gets displayed twice
> and GDB_EXPECT or GDB_EXPECT_LIST are not patient enough to see later
> ^Z^Zerror-begin+Quit+^Z^Zquit.
Isn't this a bug in GDB, not a bug in the test?
--
Daniel Jacobowitz
CodeSourcery