Re: [patch] Fix testsuite annotate-quit race (PR 544)

Daniel Jacobowitz
2008-03-18T23:18:10Z

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