This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: stap --rlimit-stack=1 does not behave as expected in RHEL6.4
- From: David Smith <dsmith at redhat dot com>
- To: Hien Nguyen <hien at linux dot vnet dot ibm dot com>
- Cc: systemtap at sourceware dot org
- Date: Mon, 24 Jun 2013 11:14:26 -0500
- Subject: Re: stap --rlimit-stack=1 does not behave as expected in RHEL6.4
- References: <51C236F6 dot 8080306 at linux dot vnet dot ibm dot com>
On 06/19/2013 05:55 PM, Hien Nguyen wrote:
> Under RHEL6.4 and systemtap-1.8x, I run the rlimit.exp testcase, it
> failed this test
>
> FAIL: rlimit STACK small
>
>
> Upon looking under the hood, it looks like the test doing this and
> expecting stap to crash or fail.
>
> exec stap --rlimit-stack=1 -p4 systemtap.base/rlimit.stp
>
> However, stap did not crash and successfully built the stap-xxx.ko.
>
> I saw a bug filed on this, but there is no follow up
>
> http://sourceware.org/bugzilla/show_bug.cgi?id=13977
>
> I wonder if anyone run into this same issue.
>
> Thanks, Hien.
After looking at this one for awhile, I decided to just remove the
"STACK small" test. I verified that the stap executable is calling
setrlimit() correctly, and the new stack limit is getting set correctly
on the process. However, the RHEL6 kernel ignores that limit (perhaps
because the stack is already larger than that?). Since there is no point
in fighting the kernel here, I just removed that test.
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)