From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26307 invoked by alias); 12 Sep 2014 10:14:34 -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 26297 invoked by uid 89); 12 Sep 2014 10:14:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPAM_SUBJECT1,SPF_HELO_PASS,SPF_PASS autolearn=no 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; Fri, 12 Sep 2014 10:14:31 +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 s8CAEKix009410 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 12 Sep 2014 06:14:21 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s8CAEI5F009329; Fri, 12 Sep 2014 06:14:19 -0400 Message-ID: <5412C77A.3070200@redhat.com> Date: Fri, 12 Sep 2014 10:14:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: Jan Kratochvil CC: Doug Evans , Mark Wielaard , gdb-patches@sourceware.org Subject: Re: [testsuite patch] runaway attach processes [Re: Regression: GDB stopped on run with attached process (PR 17347)] References: <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> <20140903075858.GA23492@host2.jankratochvil.net> <540775D7.7040003@redhat.com> <20140907192818.GA17035@host2.jankratochvil.net> <540DD8CF.5050200@redhat.com> <20140909182518.GA3320@host2.jankratochvil.net> <54119729.5050206@redhat.com> <20140912073402.GA4134@host2.jankratochvil.net> In-Reply-To: <20140912073402.GA4134@host2.jankratochvil.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2014-09/txt/msg00390.txt.bz2 On 09/12/2014 08:34 AM, Jan Kratochvil wrote: > On Thu, 11 Sep 2014 14:35:53 +0200, Pedro Alves wrote: >> > Thanks, pushed to both master and 7.8. > I have started seeing occasional runaway 'attach' processes these days. > I cannot be certain it is really caused by this patch, for example > grep 'FAIL.*cmdline attach run' does not show anything in my logs. > > But as I remember this 'attach' runaway process always happened in GDB (but > I do not remember it in the past months) I think it would be most safe to just > solve it forever by [attached]. Agreed. OK. > gdb/testsuite/ > 2014-09-12 Jan Kratochvil > > * gdb.base/attach.c: Include unistd.h. > (main): Call alarm. Add label postloop. > * gdb.base/attach.exp (do_attach_tests): Use gdb_get_line_number, > gdb_breakpoint, gdb_continue_to_breakpoint. > (test_command_line_attach_run): Kill ${testpid} in one exit path. Thanks, Pedro Alves