From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16984 invoked by alias); 18 Mar 2008 23:18:10 -0000 Received: (qmail 16975 invoked by uid 22791); 18 Mar 2008 23:18:06 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 18 Mar 2008 23:17:41 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id C15EC983BF; Tue, 18 Mar 2008 23:17:39 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id A50909802B; Tue, 18 Mar 2008 23:17:39 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Jbl3q-0005so-Gr; Tue, 18 Mar 2008 19:17:38 -0400 Date: Tue, 18 Mar 2008 23:18:00 -0000 From: Daniel Jacobowitz To: Jan Kratochvil Cc: gdb-patches@sourceware.org Subject: Re: [patch] Fix testsuite annotate-quit race (PR 544) Message-ID: <20080318231738.GA22432@caradoc.them.org> Mail-Followup-To: Jan Kratochvil , gdb-patches@sourceware.org References: <20080318225436.GA27374@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080318225436.GA27374@host0.dyn.jankratochvil.net> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00263.txt.bz2 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