From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16666 invoked by alias); 14 Oct 2011 21:25:38 -0000 Received: (qmail 16647 invoked by uid 22791); 14 Oct 2011 21:25:35 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 14 Oct 2011 21:25:18 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9ELPEsZ006011 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 14 Oct 2011 17:25:14 -0400 Received: from host1.jankratochvil.net (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p9ELPBEN021110 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 14 Oct 2011 17:25:13 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p9ELPBcF020839; Fri, 14 Oct 2011 23:25:11 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p9ELPARA020838; Fri, 14 Oct 2011 23:25:10 +0200 Date: Fri, 14 Oct 2011 21:25:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: gdb-patches@sourceware.org, Tom Tromey Subject: Re: FYI: fix 2 tests when glibc debuginfo is installed Message-ID: <20111014212510.GA20587@host1.jankratochvil.net> References: <20111014193705.GA14009@host1.jankratochvil.net> <201110142219.10084.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201110142219.10084.pedro@codesourcery.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2011-10/txt/msg00428.txt.bz2 On Fri, 14 Oct 2011 23:19:09 +0200, Pedro Alves wrote: > On Friday 14 October 2011 20:37:05, Jan Kratochvil wrote: > > thanks; although these testcases are broken anyway, they should be updated for > > Linux kernels 3.1.x which always keep inferior stopped if it was stopped > > during PTRACE_ATTACH; probably to XFAIL older kernels. > > Urgh. Even if you SIGCONT the process before PTRACE_DETACH? Yes. But I do not think it is problem, one can SIGCONT it safely after PTRACE_DETACH. Just it may be (T)-stopped for a moment but why not. The opposite - the upstream 2.6.x kernel state - was IMO worse, it was resumed and one could not safely keep it stopped. > Why was the behavior changed incompatibly if we're having the all new > PTRACE_SEIZE? Do you have a lkml reference to the change? I do not have anything specific, AFAIK it just happened as part of all the changes incl. PTRACE_SEIZE. I have updated the behavior into two new *-3x.c tests with Oleg Nesterov ~review/check/approval in: http://sourceware.org/systemtap/wiki/utrace/tests Regards, Jan