From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8655 invoked by alias); 3 Sep 2014 07:59:08 -0000 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 Received: (qmail 8644 invoked by uid 89); 3 Sep 2014 07:59:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 03 Sep 2014 07:59:06 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s837x2YV006590 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 Sep 2014 03:59:03 -0400 Received: from host2.jankratochvil.net (ovpn-116-92.ams2.redhat.com [10.36.116.92]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s837wwYC022101 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Wed, 3 Sep 2014 03:59:00 -0400 Date: Wed, 03 Sep 2014 07:59:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: Doug Evans , Mark Wielaard , gdb-patches@sourceware.org Subject: Regression: GDB stopped on run with attached process (PR 17347) [Re: [pushed+7.8] Re: [PATCH] Fix "attach" command vs user input race [Re: Regression for attach from stdin [Re: [pushed] Re: [PATCH v6 0/2] enable target-async by default]]] Message-ID: <20140903075858.GA23492@host2.jankratochvil.net> References: <538739A2.2050105@redhat.com> <20140701162830.GA25877@host2.jankratochvil.net> <1404291574.3766.35.camel@bordewijk.wildebeest.org> <53B3CDCC.9050502@redhat.com> <53B57911.10304@redhat.com> <53B6B0B8.2050702@redhat.com> <21434.52532.737427.778289@ruffy.mtv.corp.google.com> <53BC0D0B.7040001@redhat.com> <21437.28600.751354.629884@ruffy.mtv.corp.google.com> <53BD7749.5000800@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53BD7749.5000800@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg00085.txt.bz2 On Wed, 09 Jul 2014 19:09:29 +0200, Pedro Alves wrote: > Here's what I pushed to both master and gdb-7.8-branch. https://sourceware.org/bugzilla/show_bug.cgi?id=17347 sleep 1h&p=$!;sleep 0.1;gdb -batch sleep $p -ex r PASS: [2] 22970 0x0000003fdf8bc780 in __nanosleep_nocancel () at ../sysdeps/unix/syscall-template.S:81 81 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS) /usr/bin/sleep: missing operand Try '/usr/bin/sleep --help' for more information. [Inferior 1 (process 23030) exited with code 01] [2]+ Killed sleep 1h FAIL: [2] Killed sleep 1h [3]+ Stopped ./gdb/gdb -batch sleep $! -ex r 7180e04a36d812bbea2c280f2db33a7e8ce6b07b is the first bad commit commit 7180e04a36d812bbea2c280f2db33a7e8ce6b07b Author: Pedro Alves Date: Wed Jul 9 15:59:02 2014 +0100 Fix "attach" command vs user input race private Red Hat reference: https://bugzilla.redhat.com/show_bug.cgi?id=1136704