From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28712 invoked by alias); 20 Jun 2013 21:35:09 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 28702 invoked by uid 89); 20 Jun 2013 21:35:09 -0000 X-Spam-SWARE-Status: No, score=-5.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from e35.co.us.ibm.com (HELO e35.co.us.ibm.com) (32.97.110.153) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 20 Jun 2013 21:35:08 +0000 Received: from /spool/local by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 20 Jun 2013 14:24:29 -0600 Received: from d03dlp02.boulder.ibm.com (9.17.202.178) by e35.co.us.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 20 Jun 2013 14:24:25 -0600 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id A01383E4004F for ; Thu, 20 Jun 2013 14:24:04 -0600 (MDT) Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay05.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r5KKOJCH103794 for ; Thu, 20 Jun 2013 14:24:19 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r5KKOIVR014598 for ; Thu, 20 Jun 2013 14:24:19 -0600 Received: from [9.70.82.124] ([9.70.82.124]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r5KKOHK8014577 for ; Thu, 20 Jun 2013 14:24:18 -0600 Message-ID: <51C364F1.9070801@linux.vnet.ibm.com> Date: Thu, 20 Jun 2013 21:35:00 -0000 From: Hien Nguyen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 MIME-Version: 1.0 To: systemtap@sourceware.org Subject: Re: [Bug testsuite/13977] rlimit tests fail as-root portions References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13062020-4834-0000-0000-000008472066 X-SW-Source: 2013-q2/txt/msg00331.txt.bz2 I modified the test case to run the rlimit-stack=1 as non-root - and got the correct behavior. --- systemtap.base/rlimit.exp.orig 2013-06-20 20:15:26.641001019 -0400 +++ systemtap.base/rlimit.exp 2013-06-20 20:12:36.795000227 -0400 @@ -127,7 +127,7 @@ # Small STACK limit set test "rlimit STACK small" -if {[catch { exec stap --rlimit-stack=1 -p4 $srcdir/$subdir/rlimit.stp} res ]} { +if {[as_non_root "stap --rlimit-stack=1 -p4 $srcdir/$subdir/rlimit.stp" ]} { pass $test } else { fail $test On 06/20/2013 10:30 AM, fche at redhat dot com wrote: > http://sourceware.org/bugzilla/show_bug.cgi?id=13977 > > Frank Ch. Eigler changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |fche at redhat dot com > > --- Comment #2 from Frank Ch. Eigler --- > Perhaps we should simply disable the as-root variants of the tests, given that > some of the rlimits are not enforced against root by the kernel. >